Sdílet prostřednictvím


ImageReader.Close Method

Definition

Free up all the resources associated with this ImageReader.

[Android.Runtime.Register("close", "()V", "GetCloseHandler")]
public virtual void Close ();
[<Android.Runtime.Register("close", "()V", "GetCloseHandler")>]
abstract member Close : unit -> unit
override this.Close : unit -> unit

Implements

Attributes

Remarks

Free up all the resources associated with this ImageReader.

After calling this method, this ImageReader can not be used. Calling any methods on this ImageReader and Images previously provided by #acquireNextImage or #acquireLatestImage will result in an IllegalStateException, and attempting to read from ByteBuffer ByteBuffers returned by an earlier Image.Plane#getBuffer Plane#getBuffer call will have undefined behavior.

Java documentation for android.media.ImageReader.close().

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