CameraFragmentImpl

class CameraFragmentImpl implements CameraFragmentInterface, PaymentQRCodeReader.Listener

Constructors

CameraFragmentImpl
Link copied to clipboard
void CameraFragmentImpl(FragmentImplCallback fragment)
CameraFragmentImpl
Link copied to clipboard
void CameraFragmentImpl(FragmentImplCallback fragment, GiniVisionFeatureConfiguration giniVisionFeatureConfiguration)

Functions

analyzeQRCode
Link copied to clipboard
void analyzeQRCode(QRCodeDocument qrCodeDocument)
getDifferentQRCodeDetectedPopupDelayMs
Link copied to clipboard
long getDifferentQRCodeDetectedPopupDelayMs()
getHideQRCodeDetectedPopupDelayMs
Link copied to clipboard
long getHideQRCodeDetectedPopupDelayMs()
getPaymentQRCodeReader
Link copied to clipboard
PaymentQRCodeReader getPaymentQRCodeReader()
hideActivityIndicatorAndEnableInteraction
Link copied to clipboard

Call this method to hide the activity indicator and enable user interaction.

void hideActivityIndicatorAndEnableInteraction()
hideCameraTriggerButton
Link copied to clipboard

Call this method to hide the camera trigger button.

Note: the camera trigger button is shown by default.

void hideCameraTriggerButton()
hideDocumentCornerGuides
Link copied to clipboard

Call this method to hide the document corner guides.

Note: the document corner guides are shown by default.

void hideDocumentCornerGuides()
hideInterface
Link copied to clipboard

Call this method to hide the interface elements. The camera preview remains visible.

Note: the interface elements are shown by default.

void hideInterface()
initCameraController
Link copied to clipboard
void initCameraController(Activity activity)
onActivityResult
Link copied to clipboard
boolean onActivityResult(int requestCode, int resultCode, Intent data)
onCameraTriggerClicked
Link copied to clipboard
void onCameraTriggerClicked()
onCreate
Link copied to clipboard
void onCreate(Bundle savedInstanceState)
onCreateView
Link copied to clipboard
onDestroy
Link copied to clipboard
void onDestroy()
onNonPaymentQRCodeDetected
Link copied to clipboard

Called when a QRCode was found without a supported payment data format.

void onNonPaymentQRCodeDetected(String qrCodeContent)
abstract void onNonPaymentQRCodeDetected(String qrCodeContent)
onPaymentQRCodeDataAvailable
Link copied to clipboard

Called when a QRCode was found containing a supported payment data format.

void onPaymentQRCodeDataAvailable(PaymentQRCodeData paymentQRCodeData)
onResume
Link copied to clipboard
void onResume()
onSaveInstanceState
Link copied to clipboard
void onSaveInstanceState(Bundle outState)
onStart
Link copied to clipboard
void onStart()
onStop
Link copied to clipboard
void onStop()
setListener
Link copied to clipboard

Set a listener for camera events.

By default the hosting Activity is expected to implement the CameraFragmentListener . In case that is not feasible you may set the listener using this method.

Note: the listener is expected to be available until the fragment is attached to an activity. Make sure to set the listener before that.

void setListener(CameraFragmentListener listener)
showActivityIndicatorAndDisableInteraction
Link copied to clipboard

Call this method to show an activity indicator and disable user interaction. The camera preview remains visible.

void showActivityIndicatorAndDisableInteraction()
showCameraTriggerButton
Link copied to clipboard

Call this method to show the camera trigger button.

Note: the camera trigger button is shown by default.

void showCameraTriggerButton()
showDocumentCornerGuides
Link copied to clipboard

Call this method to show the document corner guides.

Note: the document corner guides are shown by default.

void showDocumentCornerGuides()
showError
Link copied to clipboard

Call this method to show an error message to the user in the Camera Screen.

void showError(String message, int duration)
abstract void showError(String message, int duration)
showInterface
Link copied to clipboard

Call this method to show the interface elements. The camera preview is always visible.

Note: the interface elements are shown by default.

void showInterface()
showUploadHintPopUp
Link copied to clipboard
void showUploadHintPopUp()

Properties

DEFAULT_ANIMATION_DURATION
Link copied to clipboard
final static int DEFAULT_ANIMATION_DURATION
mButtonCameraTrigger
Link copied to clipboard
ImageButton mButtonCameraTrigger
mPaymentQRCodePopup
Link copied to clipboard
QRCodePopup<PaymentQRCodeDatamPaymentQRCodePopup