Package io.scanbot.sdk.ui.view.base
Class PermissionViewModel
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.utils.Router
,io.scanbot.sdk.ui.view.base.IPermissionViewModel
public final class PermissionViewModel implements Router, IPermissionViewModel
-
-
Field Summary
Fields Modifier and Type Field Description private final <Error class: unknown class><Boolean>
cameraPermissionGranted
-
Constructor Summary
Constructors Constructor Description PermissionViewModel(CheckCameraPermissionUseCase checkCameraPermissionUseCase)
-
Method Summary
Modifier and Type Method Description <Error class: unknown class><Boolean>
getCameraPermissionGranted()
Unit
checkPermission()
Check camera permission and change state accordingly Unit
cameraPermissionChanged()
Camera permission was changed and we need to change ui state Unit
onActivateCameraPermission()
Called when user wants to activate camera permission -
-
Constructor Detail
-
PermissionViewModel
PermissionViewModel(CheckCameraPermissionUseCase checkCameraPermissionUseCase)
-
-
Method Detail
-
getCameraPermissionGranted
<Error class: unknown class><Boolean> getCameraPermissionGranted()
-
checkPermission
Unit checkPermission()
Check camera permission and change state accordingly
-
cameraPermissionChanged
Unit cameraPermissionChanged()
Camera permission was changed and we need to change ui state
-
onActivateCameraPermission
Unit onActivateCameraPermission()
Called when user wants to activate camera permission
-
-
-
-