Display.PresentationDeadlineNanos Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This is how far in advance a buffer must be queued for presentation at a given time.
public virtual long PresentationDeadlineNanos { [Android.Runtime.Register("getPresentationDeadlineNanos", "()J", "GetGetPresentationDeadlineNanosHandler")] get; }
[<get: Android.Runtime.Register("getPresentationDeadlineNanos", "()J", "GetGetPresentationDeadlineNanosHandler")>]
member this.PresentationDeadlineNanos : int64
Property Value
- Attributes
Remarks
This is how far in advance a buffer must be queued for presentation at a given time. If you want a buffer to appear on the screen at time N, you must submit the buffer before (N - presentationDeadline).
The desired presentation time for GLES rendering may be set with android.opengl.EGLExt#eglPresentationTimeANDROID
. For video decoding, use android.media.MediaCodec#releaseOutputBuffer(int, long)
. Times are expressed in nanoseconds, using the system monotonic clock (System#nanoTime
).
Java documentation for android.view.Display.getPresentationDeadlineNanos()
.
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.