API reference

ActivityExt Class

This class provides extensions to Activity⁠ for added Horizon OS-specific functionality.

Static Methods

getVolumetricWindowToken ( activity )
Retrieves a unique token identifying the volumetric window containing this Activity⁠.
Can be called at any point of the activity lifecycle.
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.
Note: The token is only valid for the duration this activity is part of the current task.
Signature
static VolumetricWindowToken metavr.app.ActivityExt.getVolumetricWindowToken(Activity activity)
Parameters
activity: Activity  Activity for which to get the token
Returns
VolumetricWindowToken