Package-level declarations
Types
Link copied to clipboard
A state object that can be hoisted to control and observe permission status changes.
Link copied to clipboard
Model for the status of a permission. It can be granted or denied or never ask again.
Functions
Link copied to clipboard
fun ComponentScope.usePermission(permission: String, onReceivePermissionResult: (Boolean) -> Unit? = null): PermissionState
Litho Hook to request and observe the status of a permission. The API returns a PermissionState which can be used to request the permission if it is not granted. The PermissionState.status will be the PermissionStatus of the permission when the render function is called; this is to ensure race conditions and tearing.