FakeXrExtensions.FakeActivityPanel


class FakeXrExtensions.FakeActivityPanel


Creates fake activity panel.

Summary

Public functions

Unit

Deletes the activity panel.

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-alpha01
fun delete(): Unit

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

launchActivity

Added in 1.0.0-alpha01
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-alpha01
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-alpha01
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.

Public properties

activity

Added in 1.0.0-alpha01
val activityActivity!

bounds

Added in 1.0.0-alpha01
val boundsRect!

bundle

Added in 1.0.0-alpha01
val bundleBundle!

isDeleted

Added in 1.0.0-alpha01
val isDeletedBoolean

launchIntent

Added in 1.0.0-alpha01
val launchIntentIntent!

node

Added in 1.0.0-alpha01
val nodeNode!