Package io.scanbot.sdk.ui.view.base
Interface PermissionAware
-
- All Implemented Interfaces:
public interface PermissionAware
Activity's permission delegate. Also see PermissionAwareDelegate.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
PermissionAware.Companion
-
Method Summary
Modifier and Type Method Description abstract Unit
init(Activity activity)
As this is meant to be a delegate part of activity - it needs activity to call methods on. abstract Unit
openPermissionSettings()
Open system UI - permission settings for current application. abstract Unit
activateCameraPermission()
Will ask for permission OR show rationale - if permission was already turned down. abstract Unit
tryAskCameraPermission()
Will only ask for permission if it is a first time app asking - no rationale will be shown. -
-
Method Detail
-
init
abstract 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
abstract Unit openPermissionSettings()
Open system UI - permission settings for current application.
-
activateCameraPermission
abstract Unit activateCameraPermission()
Will ask for permission OR show rationale - if permission was already turned down.
-
tryAskCameraPermission
abstract Unit tryAskCameraPermission()
Will only ask for permission if it is a first time app asking - no rationale will be shown.
-
-
-
-