AdaptyUIPermission

class AdaptyUIPermission(val value: String)

A permission a flow may request from the user (cross_platform 4.0.0).

The known cross-platform identifiers are exposed as constants below, but any value is valid: platform-specific ids (e.g. the Android-only phone / sms) and identifiers added by future dashboard releases arrive unchanged rather than collapsing into an "unknown" constant. Compare against the constants, and fall back to value for anything else:

when (request.permission) {
AdaptyUIPermission.PUSH -> requestNotificationPermission()
AdaptyUIPermission.CAMERA -> requestCameraPermission()
else -> requestByRawId(request.permission.value)
}

Constructors

Link copied to clipboard
constructor(value: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the raw permission identifier as sent by the native SDK.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String