CameraPermissionEnsureable

Indicates this class is able to check camera permission and handles the results accordingly.

Inheritors

Functions

Link copied to clipboard
abstract fun ensureCameraPermission(onCameraReady: () -> Unit, onUserDeniedCameraPermission: () -> Unit)

Checks if current app has camera permission, prompts the user to grant permission if needed. Invokes onCameraReady when the app already has permission or user grants permission. Invokes onUserDeniedCameraPermission if user denied the permission.