JxrPlatformAdapter.ActivityPanelEntity


interface JxrPlatformAdapter.ActivityPanelEntity : JxrPlatformAdapter.PanelEntity


Interface for a SceneCore ActivityPanel entity.

Summary

Public functions

Unit
launchActivity(intent: Intent, bundle: Bundle?)

Launches the given activity into the panel.

Unit

Moves the given activity into the panel.

Inherited functions

From androidx.xr.scenecore.JxrPlatformAdapter.ActivityPose
Pose

Returns the pose for this entity, relative to the activity space root.

Vector3

Returns the scale of this WorldPose relative to the activity space.

Vector3

Returns the scale of this ActivityPose.

Pose

Returns a pose relative to this entity transformed into a pose relative to the destination.

From androidx.xr.scenecore.JxrPlatformAdapter.Entity
Unit

Add given Entity as child.

Unit
Boolean

Add these components to entity.

Unit

Adds the listener to the set of active input listeners, for input events targeted to this entity or its child entities.

Unit

Dispose any system resources held by this entity, and transitively calls dispose() on all the children.

Float

Returns the total alpha transparency level for this Entity.

Float

Returns the set alpha transparency level for this Entity.

(Mutable)List<JxrPlatformAdapter.Entity!>
JxrPlatformAdapter.Entity?
Pose

Returns the pose for this entity, relative to its parent.

Vector3

Returns the scale of this entity, relative to its parent.

Boolean
isHidden(includeParents: Boolean)

Returns the hidden status of this Entity.

Unit

Remove all components from this entity.

Unit

Remove the given component from the entity.

Unit

Removes the given listener from the set of active input listeners.

Unit
setAlpha(alpha: Float)

Sets the alpha transparency for the given Entity.

Unit
Unit
setHidden(hidden: Boolean)

Sets the local hidden state of this Entity.

Unit
Unit
setPose(pose: Pose)

Updates the pose (position and rotation) of the Entity relative to its parent.

Unit
setScale(scale: Vector3)

Sets the scale of this entity relative to its parent.

Unit

Sets the size for the given Entity.

From androidx.xr.scenecore.JxrPlatformAdapter.PanelEntity
Float

Gets the corner radius of this PanelEntity in meters.

Vector3

Gets the number of pixels per meter for this panel.

JxrPlatformAdapter.PixelDimensions

Returns the dimensions of the view underlying this PanelEntity.

JxrPlatformAdapter.Dimensions

Returns the spatial size of this Panel in meters.

Unit

Sets a corner radius on all four corners of this PanelEntity.

Unit

Sets the pixel (not Dp) dimensions of the view underlying this PanelEntity.

Public functions

launchActivity

Added in 1.0.0-alpha01
fun launchActivity(intent: Intent, bundle: Bundle?): Unit

Launches the given activity into the panel.

Parameters
intent: Intent

Intent to launch the activity.

bundle: Bundle?

Bundle to pass to the activity, can be null.

moveActivity

Added in 1.0.0-alpha01
fun moveActivity(activity: Activity): Unit

Moves the given activity into the panel.

Parameters
activity: Activity

Activity to move into the ActivityPanel.