PerformanceHintManager.CreateHintSession(Int32[], Int64) Method

Definition

Creates a Session for the given set of threads and sets their initial target work duration.

[Android.Runtime.Register("createHintSession", "([IJ)Landroid/os/PerformanceHintManager$Session;", "", ApiSince=31)]
public Android.OS.PerformanceHintManager.Session? CreateHintSession (int[] tids, long initialTargetWorkDurationNanos);
[<Android.Runtime.Register("createHintSession", "([IJ)Landroid/os/PerformanceHintManager$Session;", "", ApiSince=31)>]
member this.CreateHintSession : int[] * int64 -> Android.OS.PerformanceHintManager.Session

Parameters

tids
Int32[]

The list of threads to be associated with this session. They must be part of this process' thread group.

initialTargetWorkDurationNanos
Int64

The desired duration in nanoseconds for the new session.

Returns

the new session if it is supported on this device, null if hint session is not supported on this device.

Attributes

Remarks

Java documentation for android.os.PerformanceHintManager.createHintSession(int[], long).

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