CameraFragmentImpl

class CameraFragmentImpl implements CameraFragmentInterface, PaymentQRCodeReader.Listener

Constructors

CameraFragmentImpl
Link copied to clipboard
void CameraFragmentImpl(FragmentImplCallback fragment)

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()
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()
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()
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()
showQRCodeDetectedPopup
Link copied to clipboard
void showQRCodeDetectedPopup(long startDelay)
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