VrListenerService.OnCurrentVrActivityChanged(ComponentName) Method

Definition

Called when the current activity using VR mode has changed.

[Android.Runtime.Register("onCurrentVrActivityChanged", "(Landroid/content/ComponentName;)V", "GetOnCurrentVrActivityChanged_Landroid_content_ComponentName_Handler", ApiSince=24)]
public virtual void OnCurrentVrActivityChanged (Android.Content.ComponentName? component);
[<Android.Runtime.Register("onCurrentVrActivityChanged", "(Landroid/content/ComponentName;)V", "GetOnCurrentVrActivityChanged_Landroid_content_ComponentName_Handler", ApiSince=24)>]
abstract member OnCurrentVrActivityChanged : Android.Content.ComponentName -> unit
override this.OnCurrentVrActivityChanged : Android.Content.ComponentName -> unit

Parameters

component
ComponentName

the ComponentName of the VR activity that the system has switched to, or null if the system is displaying a 2D activity in VR compatibility mode.

Attributes

Remarks

Called when the current activity using VR mode has changed.

This will be called when this service is initially bound, but is not guaranteed to be called before onUnbind. In general, this is intended to be used to determine when user focus has transitioned between two VR activities. If both activities have declared android.R.attr#enableVrMode with this service (and this service is present and enabled), this service will not be unbound during the activity transition.

Java documentation for android.service.vr.VrListenerService.onCurrentVrActivityChanged(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