PermissionUtil

Provides the PermissionUtil singleton used by the SDAI presentation layer.

Author

Dmitriy Moroz

Functions

Link copied to clipboard
fun checkCameraPermission(context: Context, onLaunch: (missingPermission: String) -> Unit): Boolean

Executes the checkCameraPermission step in the SDAI presentation layer.

Link copied to clipboard
fun checkNotificationPermission(context: Context, onLaunch: (missingPermission: String) -> Unit = {}): Boolean

Executes the checkNotificationPermission step in the SDAI presentation layer.

Link copied to clipboard
fun checkStoragePermission(context: Context, onLaunch: (missingPermissions: Array<String>) -> Unit = {}): Boolean

Executes the checkStoragePermission step in the SDAI presentation layer.