HardwareRenderer.FrameRenderRequest.SetFrameCommitCallback 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.
Adds a frame commit callback.
[Android.Runtime.Register("setFrameCommitCallback", "(Ljava/util/concurrent/Executor;Ljava/lang/Runnable;)Landroid/graphics/HardwareRenderer$FrameRenderRequest;", "", ApiSince=29)]
public Android.Graphics.HardwareRenderer.FrameRenderRequest SetFrameCommitCallback(Java.Util.Concurrent.IExecutor executor, Java.Lang.IRunnable frameCommitCallback);
[<Android.Runtime.Register("setFrameCommitCallback", "(Ljava/util/concurrent/Executor;Ljava/lang/Runnable;)Landroid/graphics/HardwareRenderer$FrameRenderRequest;", "", ApiSince=29)>]
member this.SetFrameCommitCallback : Java.Util.Concurrent.IExecutor * Java.Lang.IRunnable -> Android.Graphics.HardwareRenderer.FrameRenderRequest
Parameters
- executor
- IExecutor
The executor to run the callback on. It is strongly recommended that this executor post to a different thread, as the calling thread is highly sensitive to being blocked. This value cannot be null.
- frameCommitCallback
- IRunnable
The callback to invoke when the frame content has been drawn. Will be invoked on the given Executor. This value cannot be null.
Returns
this instance. This value cannot be null.
- Attributes
Remarks
Adds a frame commit callback. This callback will be invoked when the current rendering content has been rendered into a frame and submitted to the swap chain. The frame may not currently be visible on the display when this is invoked, but it has been submitted. This callback is useful in combination with PixelCopy to capture the current rendered content of the UI reliably.
Android reference for android.graphics.HardwareRenderer.FrameRenderRequest.setFrameCommitCallback.
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.