Sdílet prostřednictvím


Image.Fence Property

Definition

Get the SyncFence object associated with this frame. -or- Set the fence file descriptor with this frame.

public virtual Android.Hardware.SyncFence Fence { [Android.Runtime.Register("getFence", "()Landroid/hardware/SyncFence;", "GetGetFenceHandler", ApiSince=33)] get; [Android.Runtime.Register("setFence", "(Landroid/hardware/SyncFence;)V", "GetSetFence_Landroid_hardware_SyncFence_Handler", ApiSince=33)] set; }
[<get: Android.Runtime.Register("getFence", "()Landroid/hardware/SyncFence;", "GetGetFenceHandler", ApiSince=33)>]
[<set: Android.Runtime.Register("setFence", "(Landroid/hardware/SyncFence;)V", "GetSetFence_Landroid_hardware_SyncFence_Handler", ApiSince=33)>]
member this.Fence : Android.Hardware.SyncFence with get, set

Property Value

The SyncFence for this frame.

Attributes

Remarks

Property getter documentation:

Get the SyncFence object associated with this frame.

This function returns an invalid SyncFence after #getPlanes() on the image dequeued from ImageWriter via ImageWriter#dequeueInputImage().

Java documentation for android.media.Image.getFence().

Property setter documentation:

Set the fence file descriptor with this frame.

Java documentation for android.media.Image.setFence(android.hardware.SyncFence).

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.

Applies to