RequestedTarget

@Serializable
sealed class RequestedTarget : Parcelable

What an app asks for before it knows which account the user will pick.

At authorize time the app knows neither the WebID nor the pod root, so a resource is named as a path relative to the pod's storage. The host resolves every Path against each pim:storage of the chosen account into GrantTarget.Resource entries, one per storage.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "module")
data class Module(val id: String) : RequestedTarget
Link copied to clipboard
@Serializable
@SerialName(value = "path")
data class Path(val relativePath: String) : RequestedTarget

A path below the storage root, such as notes/ or photos/2026/trip.jpg. A trailing / names a container, which covers its subtree once granted. Leading slashes are ignored.

Link copied to clipboard
@Serializable
@SerialName(value = "pod")
data object Pod : RequestedTarget

The whole pod; becomes GrantTarget.Pod.

Functions

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