Choreographer.IFrameCallback.DoFrame(Int64) Method
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.
Called when a new display frame is being rendered.
[Android.Runtime.Register("doFrame", "(J)V", "GetDoFrame_JHandler:Android.Views.Choreographer/IFrameCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void DoFrame(long frameTimeNanos);
[<Android.Runtime.Register("doFrame", "(J)V", "GetDoFrame_JHandler:Android.Views.Choreographer/IFrameCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member DoFrame : int64 -> unit
Parameters
- frameTimeNanos
- Int64
The adjusted frame start time, in nanoseconds. Android does not recommend using this timestamp for animations.
- Attributes
Remarks
Called when a new display frame is being rendered.
Android previously recommended using the frame time for animations. Using it for animations can make them skip forward after late frames. Use this timestamp for frame timing, such as comparing it with the current time or frame deadlines.
Java documentation for android.view.Choreographer.FrameCallback.doFrame(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.