Package io.scanbot.sdk.ui.view.base
Class PermissionAwareDelegate
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.view.base.PermissionAware
public final class PermissionAwareDelegate implements PermissionAware
Implementation delegate for PermissionAware.
-
-
Constructor Summary
Constructors Constructor Description PermissionAwareDelegate()
-
Method Summary
Modifier and Type Method Description Unit
init(Activity activity)
As this is meant to be a delegate part of activity - it needs activity to call methods on. Unit
openPermissionSettings()
Open system UI - permission settings for current application. Unit
activateCameraPermission()
Will ask for permission OR show rationale - if permission was already turned down. Unit
tryAskCameraPermission()
Will only ask for permission if it is a first time app asking - no rationale will be shown. -
-
Method Detail
-
init
Unit init(Activity activity)
As this is meant to be a delegate part of activity - it needs activity to call methods on.
Call
(this as PermissionAware).init(this)
inonCreate
.
-
openPermissionSettings
Unit openPermissionSettings()
Open system UI - permission settings for current application.
-
activateCameraPermission
Unit activateCameraPermission()
Will ask for permission OR show rationale - if permission was already turned down.
-
tryAskCameraPermission
Unit tryAskCameraPermission()
Will only ask for permission if it is a first time app asking - no rationale will be shown.
-
-
-
-