MessageQueue.IOnFileDescriptorEventListener.OnFileDescriptorEvents Method

Definition

Called when a file descriptor receives events.

[Android.Runtime.Register("onFileDescriptorEvents", "(Ljava/io/FileDescriptor;I)I", "GetOnFileDescriptorEvents_Ljava_io_FileDescriptor_IHandler:Android.OS.MessageQueue/IOnFileDescriptorEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)]
public int OnFileDescriptorEvents (Java.IO.FileDescriptor fd, Android.OS.MessageQueueEventType events);
[<Android.Runtime.Register("onFileDescriptorEvents", "(Ljava/io/FileDescriptor;I)I", "GetOnFileDescriptorEvents_Ljava_io_FileDescriptor_IHandler:Android.OS.MessageQueue/IOnFileDescriptorEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)>]
abstract member OnFileDescriptorEvents : Java.IO.FileDescriptor * Android.OS.MessageQueueEventType -> int

Parameters

fd
FileDescriptor

The file descriptor.

events
MessageQueueEventType

The set of events that occurred: a combination of the #EVENT_INPUT, #EVENT_OUTPUT, and #EVENT_ERROR event masks.

Returns

The new set of events to watch, or 0 to unregister the listener.

Attributes

Remarks

Called when a file descriptor receives events.

Java documentation for android.os.MessageQueue.OnFileDescriptorEventListener.onFileDescriptorEvents(java.io.FileDescriptor, int).

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.

Applies to