Package android.os
Interface ParcelFileDescriptor.OnCloseListener
-
- Enclosing class:
- ParcelFileDescriptor
public static interface ParcelFileDescriptor.OnCloseListenerCallback indicating that a ParcelFileDescriptor has been closed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonClose(IOException e)Event indicating the ParcelFileDescriptor to which this listener was attached has been closed.
-
-
-
Method Detail
-
onClose
void onClose(IOException e)
Event indicating the ParcelFileDescriptor to which this listener was attached has been closed.- Parameters:
e- error state, ornullif closed cleanly. If the close event was the result ofParcelFileDescriptor.detachFd(), this will be aParcelFileDescriptor.FileDescriptorDetachedException. After detach the remote side may continue reading/writing to the underlyingFileDescriptor, but they can no longer deliver reliable close/error events.
-
-