Dela via


SelectionKey.Selector Method

Definition

Returns the selector for which this key was created.

[Android.Runtime.Register("selector", "()Ljava/nio/channels/Selector;", "GetSelectorHandler")]
public abstract Java.Nio.Channels.Selector? Selector ();
[<Android.Runtime.Register("selector", "()Ljava/nio/channels/Selector;", "GetSelectorHandler")>]
abstract member Selector : unit -> Java.Nio.Channels.Selector

Returns

This key's selector

Attributes

Remarks

Returns the selector for which this key was created. This method will continue to return the selector even after the key is cancelled.

Java documentation for java.nio.channels.SelectionKey.selector().

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