ShareNotification

data class ShareNotification(val notificationUri: String, val type: ShareNotificationType, val ownerWebId: String, val resourceUri: String, val mode: ShareMode?, val summary: String?, val publishedAt: String?, val targetWebId: String? = null, val resourceType: String? = null, val resourceName: String? = null) : Parcelable

One inbox notification surfaced to the receiver — either an offer of new access (ShareNotificationType.OFFER) or a notice that previously-granted access was withdrawn (ShareNotificationType.UNDO).

The library does not delete inbox items after listing them; the inbox is the durable history. The state derived from these notifications is mirrored into received_shares.ttl automatically each time SharingManager.listShareNotifications is called.

Constructors

Link copied to clipboard
constructor(notificationUri: String, type: ShareNotificationType, ownerWebId: String, resourceUri: String, mode: ShareMode?, summary: String?, publishedAt: String?, targetWebId: String? = null, resourceType: String? = null, resourceName: String? = null)

Properties

Link copied to clipboard

Access mode granted. Present on OFFER / ACCEPTED, null on UNDO / REJECT.

Link copied to clipboard

URI of the inbox resource that carries this notification.

Link copied to clipboard

WebID of the sender (as:actor).

Link copied to clipboard

as:published timestamp string from the notification, if present.

Link copied to clipboard

Human title asserted on the as:object (schema:name), when the sender announced one alongside resourceType. Null otherwise.

Link copied to clipboard

RDF class IRI asserted on the as:object in the notification body (<resourceUri> rdf:type <iri>), announcing that the share carries a data-module entity (e.g. https://schema.org/Ticket). Null when the notification describes a plain resource.

Link copied to clipboard

Resource URI the notification is about (as:object).

Link copied to clipboard

Optional human-readable text (as:summary). Used for REJECT to carry a rationale; usually absent on OFFER / UNDO.

Link copied to clipboard

WebID of the activity's as:target, when present. For the self-authored ShareNotificationType.DECISION_GRANTED / ShareNotificationType.DECISION_REJECTED records this is the requester the decision was about (the counterpart to show), since ownerWebId (the as:actor) is the inbox owner themselves. Null for the other types, which carry no meaningful target for callers.

Link copied to clipboard

Whether the notification announces, retracts, or rejects access.

Functions

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