ImageWriter.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 ImageWriter.
[Android.Runtime.Register("close", "()V", "GetCloseHandler", ApiSince=23)]
public virtual void Close ();
[<Android.Runtime.Register("close", "()V", "GetCloseHandler", ApiSince=23)>]
abstract member Close : unit -> unit
override this.Close : unit -> unit
Implements
- Attributes
Remarks
Free up all the resources associated with this ImageWriter.
After calling this method, this ImageWriter cannot be used. Calling any methods on this ImageWriter and Images previously provided by #dequeueInputImage()
will result in an IllegalStateException
, and attempting to write into ByteBuffer ByteBuffers
returned by an earlier Image.Plane#getBuffer Plane#getBuffer
call will have undefined behavior.
Java documentation for android.media.ImageWriter.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.