ParcelFileDescriptor.IOnCloseListener.OnClose(IOException) 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.
Event indicating the ParcelFileDescriptor to which this listener was attached has been closed.
[Android.Runtime.Register("onClose", "(Ljava/io/IOException;)V", "GetOnClose_Ljava_io_IOException_Handler:Android.OS.ParcelFileDescriptor/IOnCloseListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnClose (Java.IO.IOException? e);
[<Android.Runtime.Register("onClose", "(Ljava/io/IOException;)V", "GetOnClose_Ljava_io_IOException_Handler:Android.OS.ParcelFileDescriptor/IOnCloseListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnClose : Java.IO.IOException -> unit
Parameters
error state, or null
if closed cleanly.
If the close event was the result of
ParcelFileDescriptor#detachFd()
, this will be a
FileDescriptorDetachedException
. After detach the
remote side may continue reading/writing to the underlying
FileDescriptor
, but they can no longer deliver
reliable close/error events.
- Attributes
Remarks
Event indicating the ParcelFileDescriptor to which this listener was attached has been closed.
Java documentation for android.os.ParcelFileDescriptor.OnCloseListener.onClose(java.io.IOException)
.
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.