public static interface ParcelFileDescriptor.OnCloseListener
Modifier and Type | Method and Description |
---|---|
void |
onClose(IOException e)
Event indicating the ParcelFileDescriptor to which this listener was
attached has been closed.
|
void onClose(IOException e)
e
- error state, or null
if closed cleanly.
If the close event was the result of
ParcelFileDescriptor.detachFd()
, this will be a
ParcelFileDescriptor.FileDescriptorDetachedException
. After detach the
remote side may continue reading/writing to the underlying
FileDescriptor
, but they can no longer deliver
reliable close/error events.