AdaptyUIPermissionResult

The outcome of an OS permission request, returned to the flow.

Build one with granted or denied:

override suspend fun handlePermission(
view: AdaptyUIFlowView,
permission: AdaptyUIPermission,
customArgs: Map<String, String>?
): AdaptyUIPermissionResult =
if (askUserFor(permission)) AdaptyUIPermissionResult.granted()
else AdaptyUIPermissionResult.denied("user declined")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val detail: String? = null

optional human-readable detail (e.g. the OS status string).

Link copied to clipboard

whether the permission was granted.

Functions

Link copied to clipboard
open override fun toString(): String