Most visited

Recently visited

Added in API level 19

ParcelFileDescriptor.OnCloseListener

public static interface ParcelFileDescriptor.OnCloseListener

android.os.ParcelFileDescriptor.OnCloseListener


回调,指示ParcelFileDescriptor已关闭。

Summary

Public methods

abstract void onClose(IOException e)

指示此侦听器所连接的ParcelFileDescriptor的事件已关闭。

Public methods

onClose

Added in API level 19
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.

Hooray!