Class BlinkIdUISettings

    • Constructor Detail

      • BlinkIdUISettings

        public BlinkIdUISettings​(@Nullable
                                 RecognizerBundle recognizerBundle)
      • BlinkIdUISettings

        public BlinkIdUISettings​(@NonNull
                                 android.content.Intent intent)
    • Method Detail

      • setOverlayViewStyle

        public void setOverlayViewStyle​(@StyleRes
                                        int styleResourceID)
        Provide your own style to replace default icons and colors. Supports attributes from R.styleable.BlinkIdReticleOverlay
        Specified by:
        setOverlayViewStyle in interface StyleUIOptions
        Parameters:
        styleResourceID - your style
      • getStyle

        @StyleRes
        protected int getStyle()
      • setShowFlashlightWarning

        public void setShowFlashlightWarning​(boolean showFlashlightWarning)
        Description copied from interface: FlashlightWarningUIOptions
        Defines whether flashlight warning will be displayed in UI, when flashlight is turned ON. Default is true.
        Specified by:
        setShowFlashlightWarning in interface FlashlightWarningUIOptions
        Parameters:
        showFlashlightWarning - whether flashlight warning will be displayed in UI.
      • getShowFlashlightWarning

        protected boolean getShowFlashlightWarning()
      • getTargetActivity

        @NonNull
        public java.lang.Class<?> getTargetActivity()
        Description copied from class: UISettings
        Returns target activity. Concrete settings can be used only with the corresponding activity. This method is public for convenience when you are not able to use ActivityRunner. DO NOT USE THIS METHOD UNLESS YOU KNOW WHAT YOU ARE DOING. Improper usage will crash your app.
        Specified by:
        getTargetActivity in class UISettings<BlinkIdOverlayController>
        Returns:
        target activity.