AccessRequest

@Serializable
data class AccessRequest(val level: AccessLevel = AccessLevel.EDIT, val targets: List<RequestedTarget> = listOf(RequestedTarget.Pod), val reason: String? = null) : Parcelable

What an app asks the user for when it launches the host's consent screen.

The screen starts from this request. The user may narrow it or widen it, and the grant that comes back is what they approved, not what was asked. An app that passes no request asks for DEFAULT: the whole pod at AccessLevel.EDIT. Sharing and notifications need AccessLevel.FULL, so an app that uses them asks for it explicitly.

Constructors

Link copied to clipboard
constructor(level: AccessLevel = AccessLevel.EDIT, targets: List<RequestedTarget> = listOf(RequestedTarget.Pod), reason: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The level asked for on every target.

Link copied to clipboard

One sentence, shown verbatim on the consent screen, that says why.

Link copied to clipboard

What the app wants to reach; never empty.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)