Share via


VrListenerService.IsVrModePackageEnabled(Context, ComponentName) Method

Definition

Checks if the given component is enabled in user settings.

[Android.Runtime.Register("isVrModePackageEnabled", "(Landroid/content/Context;Landroid/content/ComponentName;)Z", "", ApiSince=24)]
public static bool IsVrModePackageEnabled (Android.Content.Context context, Android.Content.ComponentName requestedComponent);
[<Android.Runtime.Register("isVrModePackageEnabled", "(Landroid/content/Context;Landroid/content/ComponentName;)Z", "", ApiSince=24)>]
static member IsVrModePackageEnabled : Android.Content.Context * Android.Content.ComponentName -> bool

Parameters

context
Context

the Context to use for looking up the requested component.

requestedComponent
ComponentName

the name of the component that implements android.service.vr.VrListenerService to check.

Returns

true if this component is enabled in settings.

Attributes

Remarks

Checks if the given component is enabled in user settings.

If this component is not enabled in the user's settings, it will not be started when the system enters VR mode. The user interface for enabling VrListenerService components can be started by sending the android.provider.Settings#ACTION_VR_LISTENER_SETTINGS intent.

Java documentation for android.service.vr.VrListenerService.isVrModePackageEnabled(android.content.Context, android.content.ComponentName).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to