public class

CameraFrameView

extends View
java.lang.Object
   ↳ android.view.View
     ↳ com.sap.cloud.mobile.fiori.camera.CameraFrameView

Class Overview

This class is used for showing the guiding rectangle to user when Camera preview is shown. CameraFrame acts as guiding tool for end user to place the image correctly within the crop bounded box. This class uses CameraFrameCropController class for getting desired rectangle size and position. User can set CameraFrameCropController using ERROR(/#setCropRectCreator(CameraFrameCropController)) method. In case noCameraFrameCropController is provided no guiding rectangle will be presented to user.

Summary

[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
CameraFrameView(Context context, AttributeSet attrs)
Public Methods
void onDraw(Canvas canvas)
Protected Methods
void onLayout(boolean changed, int left, int top, int right, int bottom)
[Expand]
Inherited Methods
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public CameraFrameView (Context context, AttributeSet attrs)

Public Methods

public void onDraw (Canvas canvas)

Protected Methods

protected void onLayout (boolean changed, int left, int top, int right, int bottom)