API reference

ViewExt Class

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

Static Methods

getVolumetricWindowToken ( view )
Retrieves a unique token identifying the volumetric window containing this View⁠.
Can be called at any point of the view 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 that this view is attached to the window and that the window is attached to the window manager.
Signature
static VolumetricWindowToken metavr.view.ViewExt.getVolumetricWindowToken(View view)
Parameters
view: View  View for which to get the token
Returns
VolumetricWindowToken