public static interface ParcelFileDescriptor.OnCloseListener
android.os.ParcelFileDescriptor.OnCloseListener |
回调,指示ParcelFileDescriptor已关闭。
Public methods |
|
---|---|
abstract void |
onClose(IOException e) 指示此侦听器所连接的ParcelFileDescriptor的事件已关闭。 |
void onClose (IOException e)
指示此侦听器所连接的ParcelFileDescriptor的事件已关闭。
Parameters | |
---|---|
e |
IOException : error state, or null if closed cleanly. If the close event was the result of 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. |