AdaptyUIPermission
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)
}Content copied to clipboard