API reference

VolumetricWindowPlacementParams Class

Extends Parcelable
A data object which encapsulates parameters specified when placing a volumetric window.
This object is used by VolumetricWindowManager to specify the params to create a volumetric window.
Window content is provided by either a PendingIntent⁠ or a SurfacePackage⁠, but not both.

Static Fields

CREATOR : final Creator< VolumetricWindowPlacementParams >
Parcelable.Creator⁠ that reconstructs instances from a Parcel⁠.
Signature
final Creator<VolumetricWindowPlacementParams> metavr.app.volumetricwindow.VolumetricWindowPlacementParams.CREATOR

Methods

describeContents ()
Describes the special objects contained in this parcelable; always 0.
Signature
int metavr.app.volumetricwindow.VolumetricWindowPlacementParams.describeContents()
Returns
int
toString ()
Returns a debug string representation of this object.
Signature
String metavr.app.volumetricwindow.VolumetricWindowPlacementParams.toString()
Returns
String
writeToParcel ( dest , flags )
Flattens this object into the given Parcel⁠.
Signature
void metavr.app.volumetricwindow.VolumetricWindowPlacementParams.writeToParcel(Parcel dest, int flags)
Parameters
dest: Parcel
flags: int
Returns
void

Inner Class

Builder Class

Constructors

Builder ()
Creates a new Builder.
Signature
metavr.app.volumetricwindow.VolumetricWindowPlacementParams.Builder.Builder()

Methods

build ()
Signature
VolumetricWindowPlacementParams metavr.app.volumetricwindow.VolumetricWindowPlacementParams.Builder.build()
Returns
VolumetricWindowPlacementParams
setLayoutParams ( value )
Sets the layout parameters used to position the window.
Signature
Builder metavr.app.volumetricwindow.VolumetricWindowPlacementParams.Builder.setLayoutParams(VolumetricWindowLayoutParams value)
Parameters
Returns
Builder
setParentWindowToken ( value )
Sets the parent window's token, when placing a child window.
Signature
Builder metavr.app.volumetricwindow.VolumetricWindowPlacementParams.Builder.setParentWindowToken(VolumetricWindowToken value)
Parameters
value: VolumetricWindowToken
Returns
Builder
setPendingIntent ( value )
Sets the PendingIntent⁠ providing the window content.
A window's content source is mutually exclusive: only one of setPendingIntent(PendingIntent) or Builder.setSurfacePackage may be set. Specifying both causes Builder.build() to throw IllegalArgumentException⁠.
Signature
Builder metavr.app.volumetricwindow.VolumetricWindowPlacementParams.Builder.setPendingIntent(PendingIntent value)
Parameters
value: PendingIntent
Returns
Builder
setRequestedBounds ( value )
Sets the requested 3D bounds of the window.
Signature
Builder metavr.app.volumetricwindow.VolumetricWindowPlacementParams.Builder.setRequestedBounds(Extent3f value)
Parameters
value: Extent3f
Returns
Builder
setRequestedPose ( value )
Sets the requested pose of the window.
Signature
Builder metavr.app.volumetricwindow.VolumetricWindowPlacementParams.Builder.setRequestedPose(Pose value)
Parameters
value: Pose
Returns
Builder
setRequestedSurfaceSize ( value )
Sets the requested 2D surface size of the window.
Signature
Builder metavr.app.volumetricwindow.VolumetricWindowPlacementParams.Builder.setRequestedSurfaceSize(Size value)
Parameters
value: Size
Returns
Builder
setSurfacePackage ( value )
Sets the SurfacePackage⁠ providing the window content.
A window's content source is mutually exclusive: only one of setSurfacePackage(SurfacePackage) or Builder.setPendingIntent may be set. Specifying both causes Builder.build() to throw IllegalArgumentException⁠.
Signature
Builder metavr.app.volumetricwindow.VolumetricWindowPlacementParams.Builder.setSurfacePackage(SurfacePackage value)
Parameters
value: SurfacePackage
Returns
Builder