FakeXrExtensions.FakeActivityPanel


public class FakeXrExtensions.FakeActivityPanel


Creates fake activity panel.

Summary

Public methods

void

Deletes the activity panel.

@Nullable Activity
@Nullable Rect
@NonNull Bundle
@Nullable Intent
@NonNull Node

Gets the node associated with this ActivityPanel.

boolean
void

Launches an activity into this panel.

void

Moves an existing activity into this panel.

void
setWindowBounds(@NonNull Rect windowBounds)

Updates the 2D window bounds of this ActivityPanel.

Public fields

activity

Added in 1.0.0-alpha01
public Activity activity

bounds

Added in 1.0.0-alpha01
public Rect bounds

bundle

Added in 1.0.0-alpha01
public Bundle bundle

isDeleted

Added in 1.0.0-alpha01
public boolean isDeleted

launchIntent

Added in 1.0.0-alpha01
public Intent launchIntent

node

Added in 1.0.0-alpha01
public Node node

Public methods

delete

Added in 1.0.0-alpha01
public void delete()

Deletes the activity panel. All the activities in this ActivityPanel will also be destroyed.

getActivity

Added in 1.0.0-alpha01
public @Nullable Activity getActivity()

getBounds

Added in 1.0.0-alpha01
public @Nullable Rect getBounds()

getBundle

Added in 1.0.0-alpha01
public @NonNull Bundle getBundle()

getLaunchIntent

Added in 1.0.0-alpha01
public @Nullable Intent getLaunchIntent()

getNode

Added in 1.0.0-alpha01
public @NonNull Node getNode()

Gets the node associated with this ActivityPanel.

The ActivityPanel can only be shown to the user after this node is attached to the host activity's scene.

See also
XrExtensions

isDeleted

Added in 1.0.0-alpha01
public boolean isDeleted()

launchActivity

Added in 1.0.0-alpha01
public void launchActivity(@NonNull Intent intent, @Nullable Bundle options)

Launches an activity into this panel.

Parameters
@NonNull Intent intent

the Intent to start.

@Nullable Bundle options

additional options for how the Activity should be started.

moveActivity

Added in 1.0.0-alpha01
public void moveActivity(@NonNull Activity activity)

Moves an existing activity into this panel.

Parameters
@NonNull Activity activity

the Activity to move.

setWindowBounds

Added in 1.0.0-alpha01
public void setWindowBounds(@NonNull Rect windowBounds)

Updates the 2D window bounds of this ActivityPanel.

If the new bounds are smaller that the minimum dimensions of the activity embedded in this ActivityPanel, the ActivityPanel bounds will be reset to match the host Activity bounds.

Parameters
@NonNull Rect windowBounds

the new 2D window bounds in the host container window coordinates.