SurfaceControl.Transaction.SetFrameTimeline(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.
Sets the frame timeline to use in SurfaceFlinger. A frame timeline should be chosen based on the frame deadline the application can meet when rendering the frame and the application's desired presentation time. By setting a frame timeline, SurfaceFlinger tries to present the frame at the corresponding expected presentation time. To receive frame timelines, a callback must be posted to Choreographer using Choreographer.postVsyncCallback The vsyncId can then be extracted from the Choreographer.FrameTimeline.getVsyncId .
[Android.Runtime.Register("setFrameTimeline", "(J)Landroid/view/SurfaceControl$Transaction;", "GetSetFrameTimeline_JHandler", ApiSince=35)]
public virtual Android.Views.SurfaceControl.Transaction SetFrameTimeline(long vsyncId);
[<Android.Runtime.Register("setFrameTimeline", "(J)Landroid/view/SurfaceControl$Transaction;", "GetSetFrameTimeline_JHandler", ApiSince=35)>]
abstract member SetFrameTimeline : int64 -> Android.Views.SurfaceControl.Transaction
override this.SetFrameTimeline : int64 -> Android.Views.SurfaceControl.Transaction
Parameters
- vsyncId
- Int64
The System.Int64 value used for vsync id.
Returns
The result of the set frame timeline operation.
- Attributes
Remarks
For details, see the Android reference documentation for android.view.SurfaceControl.Transaction.setFrameTimeline.
Java documentation for android.view.SurfaceControl.Transaction.setFrameTimeline.
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.