SurfaceView.ApplyTransactionToFrame(SurfaceControl+Transaction) 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 transaction to apply synchronously with a SurfaceView frame. The exact frame is only well-defined when SurfaceView rendering is paused before calling this method. In that case, the transaction is applied with the next frame rendered after the call. If frames are continuously rendering to the SurfaceView when this method is called, the frame is undefined. The transaction might not be applied if no new frames are rendered after the call.
[Android.Runtime.Register("applyTransactionToFrame", "(Landroid/view/SurfaceControl$Transaction;)V", "GetApplyTransactionToFrame_Landroid_view_SurfaceControl_Transaction_Handler", ApiSince=34)]
public virtual void ApplyTransactionToFrame(Android.Views.SurfaceControl.Transaction transaction);
[<Android.Runtime.Register("applyTransactionToFrame", "(Landroid/view/SurfaceControl$Transaction;)V", "GetApplyTransactionToFrame_Landroid_view_SurfaceControl_Transaction_Handler", ApiSince=34)>]
abstract member ApplyTransactionToFrame : Android.Views.SurfaceControl.Transaction -> unit
override this.ApplyTransactionToFrame : Android.Views.SurfaceControl.Transaction -> unit
Parameters
- transaction
- SurfaceControl.Transaction
The transaction to apply. The system takes ownership of the transaction. The transaction is applied with a later frame, but it may not be applied if no new frames are rendered to the SurfaceView after this call.
- Attributes
Exceptions
The underlying surface does not exist.
Remarks
For details, see the Android reference documentation for android.view.SurfaceView.applyTransactionToFrame.
Java documentation for android.view.SurfaceView.applyTransactionToFrame.
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.