interface IBearHandler
This class provides ability to handle BEAR SDK features.
interface ScreenshotCallback
Interface for screenshot task callback. |
abstract fun addFlashListener(listener: FlashStatusListener): Unit
Add listener for FlashStatus. removeFlashListener should be called when activity/fragment is destroyed. |
|
abstract fun addScanListener(listener: ScanStatusListener): Unit
Add listener for ScanStatus. removeScanListener should be called when activity/fragment is destroyed. |
|
abstract fun cancelScreenshot(): Unit
Cancel screenshot task if running. |
|
abstract fun cleanView(): Unit
Remove marker and assets from the view. |
|
abstract fun disableFlash(): Unit
Disable flash. |
|
abstract fun enableFlash(): Unit
Enable flash. |
|
abstract fun getScanStatus(): ScanStatus
Get current scan status. |
|
abstract fun isFlashEnabled(): Boolean
Get current flash status. |
|
abstract fun
Check if scan is running. |
|
abstract fun registerBearCallback(callback: BearCallback): Unit
Register callback for BEAR SDK. unregisterBearCallback should be called when activity/fragment is destroyed. |
|
abstract fun removeFlashListener(listener: FlashStatusListener): Unit
Remove listener for FlashStatus. |
|
abstract fun removeScanListener(listener: ScanStatusListener): Unit
Remove listener for ScanStatus. |
|
abstract fun startScan(): Unit
Start scan. |
|
abstract fun stopScan(): Unit
Stop scan. |
|
abstract fun takeScreenshot(callback: IBearHandler.ScreenshotCallback): Unit
Take a screenshot of the augmented reality view. This will initiate the creation of screenshot. cancelScreenshot should be called when activity/fragment is paused. Result can be handled in the ScreenshotCallback.onComplete. |
|
abstract fun triggerFocus(): Unit
Trigger focus and switch to continuous focus after 3 seconds delay. |
|
abstract fun unregisterBearCallback(callback: BearCallback): Unit
Unregister callback for BEAR SDK. |