FakeXrExtensions.FakeActivityPanel


class FakeXrExtensions.FakeActivityPanel


Creates fake activity panel.

Summary

Public functions

Unit

Deletes the activity panel.

Activity?
Rect?
Bundle
Intent?
Node

Gets the node associated with this ActivityPanel.

Boolean
Unit
launchActivity(intent: Intent, options: Bundle?)

Launches an activity into this panel.

Unit

Moves an existing activity into this panel.

Unit
setWindowBounds(windowBounds: Rect)

Updates the 2D window bounds of this ActivityPanel.

Public functions

delete

Added in 1.0.0-alpha02
fun delete(): Unit

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

getActivity

Added in 1.0.0-alpha02
fun getActivity(): Activity?

getBounds

Added in 1.0.0-alpha02
fun getBounds(): Rect?

getBundle

Added in 1.0.0-alpha02
fun getBundle(): Bundle

getLaunchIntent

Added in 1.0.0-alpha02
fun getLaunchIntent(): Intent?

getNode

Added in 1.0.0-alpha02
fun getNode(): Node

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-alpha02
fun isDeleted(): Boolean

launchActivity

Added in 1.0.0-alpha02
fun launchActivity(intent: Intent, options: Bundle?): Unit

Launches an activity into this panel.

Parameters
intent: Intent

the Intent to start.

options: Bundle?

additional options for how the Activity should be started.

moveActivity

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

Moves an existing activity into this panel.

Parameters
activity: Activity

the Activity to move.

setWindowBounds

Added in 1.0.0-alpha02
fun setWindowBounds(windowBounds: Rect): Unit

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
windowBounds: Rect

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