ManifestProperty

Added in 1.0.0-beta02

public final class ManifestProperty


Summary

Public fields

static final @NonNull String

Intent category for displaying the activity in a projected XR launcher.

static final @NonNull String

Activity level ActivityInfo.requiredDisplayCategory to display on projected displays.

static final @NonNull String

Application or Activity level PackageManager.Property for launch mode in XR.

static final @NonNull String

Application or Activity level PackageManager.Property for recommended safety boundaries.

static final @NonNull String

Application or Activity level PackageManager.Property controlling default enter/exit animations.

static final @NonNull String

Value to launch an activity in managed full space mode.

static final @NonNull String

Value to launch an activity in unmanaged full space mode.

static final @NonNull String

Value to launch an activity in home space mode in XR.

static final @NonNull String

The default value if not specified.

static final @NonNull String

Value to launch an activity with a large boundary recommended.

static final @NonNull String

Value to launch an activity with no recommendations for the type of safety boundary.

Public fields

CATEGORY_XR_PROJECTED_LAUNCHER

public static final @NonNull String CATEGORY_XR_PROJECTED_LAUNCHER

Intent category for displaying the activity in a projected XR launcher.

Syntax:

<application>
<activity>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.XR_PROJECTED_LAUNCHER" />
</intent-filter>
</activity>
</application>

Constant Value: "android.intent.category.XR_PROJECTED_LAUNCHER"

DISPLAY_CATEGORY_XR_PROJECTED

public static final @NonNull String DISPLAY_CATEGORY_XR_PROJECTED

Activity level ActivityInfo.requiredDisplayCategory to display on projected displays.

Syntax:

<application>
<activity
android:requiredDisplayCategory="android.hardware.display.category.XR_PROJECTED" />
</application>

Constant Value: "android.hardware.display.category.XR_PROJECTED"

PROPERTY_XR_ACTIVITY_START_MODE

public static final @NonNull String PROPERTY_XR_ACTIVITY_START_MODE

Application or Activity level PackageManager.Property for launch mode in XR. Declaring at application level sets all activities unless overridden at activity level.

The default value is XR_ACTIVITY_START_MODE_UNDEFINED.

The available values are:

Syntax:

<application>
<property
android:name="android.window.PROPERTY_ACTIVITY_XR_START_MODE"
android:value="XR_ACTIVITY_START_MODE_FULL_SPACE_UNMANAGED|
XR_ACTIVITY_START_MODE_FULL_SPACE_MANAGED|
XR_ACTIVITY_START_MODE_HOME_SPACE|
XR_ACTIVITY_START_MODE_UNDEFINED" />
</application>

Constant Value: "android.window.PROPERTY_XR_ACTIVITY_START_MODE"

PROPERTY_XR_BOUNDARY_TYPE_RECOMMENDED

public static final @NonNull String PROPERTY_XR_BOUNDARY_TYPE_RECOMMENDED

Application or Activity level PackageManager.Property for recommended safety boundaries. Declaring at application level sets all activities unless overridden at activity level. When not declared, the system uses the safety boundary currently in use.

The default value is XR_BOUNDARY_TYPE_NO_RECOMMENDATION.

The available values are:

Syntax:

<application>
<property
android:name="android.window.PROPERTY_XR_BOUNDARY_TYPE_RECOMMENDED"
android:value="XR_BOUNDARY_TYPE_LARGE|
XR_BOUNDARY_TYPE_NO_RECOMMENDATION"
/>
</
application>

Constant Value: "android.window.PROPERTY_XR_BOUNDARY_TYPE_RECOMMENDED"

PROPERTY_XR_USES_CUSTOM_FULL_SPACE_MANAGED_ANIMATION

public static final @NonNull String PROPERTY_XR_USES_CUSTOM_FULL_SPACE_MANAGED_ANIMATION

Application or Activity level PackageManager.Property controlling default enter/exit animations. If true, the default animation is disabled, and the app plays a custom animation. Declaring at application level sets all activities unless overridden at activity level.

The default value is false.

Syntax:

<application>
<property
android:name="android.window.PROPERTY_XR_USES_CUSTOM_FULL_SPACE_MANAGED_ANIMATION"
android:value="false|true"/>
</application>

Constant Value: "android.window.PROPERTY_XR_USES_CUSTOM_FULL_SPACE_MANAGED_ANIMATION"

XR_ACTIVITY_START_MODE_FULL_SPACE_MANAGED

public static final @NonNull String XR_ACTIVITY_START_MODE_FULL_SPACE_MANAGED

Value to launch an activity in managed full space mode. The system renders the activity from a scene graph. See managed full space mode.

See also
PROPERTY_XR_ACTIVITY_START_MODE

Constant Value: "XR_ACTIVITY_START_MODE_FULL_SPACE_MANAGED"

XR_ACTIVITY_START_MODE_FULL_SPACE_UNMANAGED

public static final @NonNull String XR_ACTIVITY_START_MODE_FULL_SPACE_UNMANAGED

Value to launch an activity in unmanaged full space mode. The activity itself renders the space and controls its own scene graph. Use this for all activities using OpenXR to render.

See also
PROPERTY_XR_ACTIVITY_START_MODE

Constant Value: "XR_ACTIVITY_START_MODE_FULL_SPACE_UNMANAGED"

XR_ACTIVITY_START_MODE_HOME_SPACE

public static final @NonNull String XR_ACTIVITY_START_MODE_HOME_SPACE

Value to launch an activity in home space mode in XR.

See also
PROPERTY_XR_ACTIVITY_START_MODE

Constant Value: "XR_ACTIVITY_START_MODE_HOME_SPACE"

XR_ACTIVITY_START_MODE_UNDEFINED

public static final @NonNull String XR_ACTIVITY_START_MODE_UNDEFINED

The default value if not specified. If used, the actual launching mode will be determined by the system based on the launching activity's current mode and the launching flags. When PROPERTY_XR_ACTIVITY_START_MODE is used at the application level, apps can use this value to reset at individual activity level.

See also
PROPERTY_XR_ACTIVITY_START_MODE

Constant Value: "XR_ACTIVITY_START_MODE_UNDEFINED"

XR_BOUNDARY_TYPE_LARGE

public static final @NonNull String XR_BOUNDARY_TYPE_LARGE

Value to launch an activity with a large boundary recommended. Useful for activities where users are expected to move around. The system will ask the user to use a larger size for their safety boundary and check that their space is clear, if the larger size is not already in use. This larger size is determined by the system.

See also
PROPERTY_XR_BOUNDARY_TYPE_RECOMMENDED

Constant Value: "XR_BOUNDARY_TYPE_LARGE"

XR_BOUNDARY_TYPE_NO_RECOMMENDATION

public static final @NonNull String XR_BOUNDARY_TYPE_NO_RECOMMENDATION

Value to launch an activity with no recommendations for the type of safety boundary. The system continues to use the type of safety boundary currently in use.

See also
PROPERTY_XR_BOUNDARY_TYPE_RECOMMENDED

Constant Value: "XR_BOUNDARY_TYPE_NO_RECOMMENDATION"