API reference

VolumetricWindowToken Class

Extends Parcelable
This class represents the token for a volumetric window.
The token uniquely identifies the window and is also used to perform certain window specific operations.
Note: This token allows querying and performing interactions with the volumetric window. Sharing this token with another app delegates these capabilities as the token is used to authenticate the caller.

Static Fields

CREATOR : final Creator< VolumetricWindowToken >
Parcelable.Creator⁠ that reconstructs tokens written by writeToParcel(Parcel, int).
Signature
final Creator<VolumetricWindowToken> metavr.view.VolumetricWindowToken.CREATOR

Methods

describeContents ()
Describes the special objects contained in this parcelable; always 0.
Signature
int metavr.view.VolumetricWindowToken.describeContents()
Returns
int
equals ( o )
Equality is value-based on ERROR(/#persistableToken) alone: two tokens are equal iff they share the same persistableToken.
Both ERROR(/#scope) and the ERROR(/#token) IBinder are intentionally excluded, so a token reconstructed across a process boundary or restored from persistence (which mints a fresh IBinder) compares equal to its origin, and any narrower-scoped token derived from the same window compares equal to the global one.
Note: equality is NOT a security capability. The persistableToken is a copyable UUID string, so a token that equals() a real one can be fabricated by anyone who knows the UUID. Authorization must continue to be enforced via the IBinder identity, permission checks, and owning-UID resolution \u2014 never by token equality alone.
Signature
boolean metavr.view.VolumetricWindowToken.equals(Object o)
Parameters
o: Object
Returns
boolean
hashCode ()
Returns a hash code consistent with equals(Object), derived from the persistable token.
Signature
int metavr.view.VolumetricWindowToken.hashCode()
Returns
int
toString ()
Returns a human-readable representation of this token, intended for debugging.
Signature
String metavr.view.VolumetricWindowToken.toString()
Returns
String
writeToParcel ( dest , flags )
Flattens this token into the given Parcel⁠.
Signature
void metavr.view.VolumetricWindowToken.writeToParcel(Parcel dest, int flags)
Parameters
dest: Parcel
flags: int
Returns
void