Share via


ActivityManager.SetVrThread(Int32) Method

Definition

Enable more aggressive scheduling for latency-sensitive low-runtime VR threads.

[Android.Runtime.Register("setVrThread", "(I)V", "", ApiSince=25)]
public static void SetVrThread (int tid);
[<Android.Runtime.Register("setVrThread", "(I)V", "", ApiSince=25)>]
static member SetVrThread : int -> unit

Parameters

tid
Int32

tid of the VR thread

Attributes

Remarks

Enable more aggressive scheduling for latency-sensitive low-runtime VR threads. Only one thread can be a VR thread in a process at a time, and that thread may be subject to restrictions on the amount of time it can run.

If persistent VR mode is set, whatever thread has been granted aggressive scheduling via this method will return to normal operation, and calling this method will do nothing while persistent VR mode is enabled.

To reset the VR thread for an application, a tid of 0 can be passed.

Java documentation for android.app.ActivityManager.setVrThread(int).

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