ImageReader.Close 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.
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.