다음을 통해 공유


IWatchable.Register Method

Definition

Overloads

Register(IWatchService, IWatchEventKind[])

Registers an object with a watch service.

Register(IWatchService, IWatchEventKind[], IWatchEventModifier[])

Registers an object with a watch service.

Register(IWatchService, IWatchEventKind[])

Registers an object with a watch service.

[Android.Runtime.Register("register", "(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;)Ljava/nio/file/WatchKey;", "GetRegister_Ljava_nio_file_WatchService_arrayLjava_nio_file_WatchEvent_Kind_Handler:Java.Nio.FileNio.IWatchableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.IWatchKey? Register (Java.Nio.FileNio.IWatchService? watcher, params Java.Nio.FileNio.IWatchEventKind[]? events);
[<Android.Runtime.Register("register", "(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;)Ljava/nio/file/WatchKey;", "GetRegister_Ljava_nio_file_WatchService_arrayLjava_nio_file_WatchEvent_Kind_Handler:Java.Nio.FileNio.IWatchableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Register : Java.Nio.FileNio.IWatchService * Java.Nio.FileNio.IWatchEventKind[] -> Java.Nio.FileNio.IWatchKey

Parameters

watcher
IWatchService

the watch service to which this object is to be registered

events
IWatchEventKind[]

the events for which this object should be registered

Returns

a key representing the registration of this object with the given watch service

Attributes

Remarks

Java documentation for java.nio.file.Watchable.register(java.nio.file.WatchService, java.nio.file.Kind).

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

Register(IWatchService, IWatchEventKind[], IWatchEventModifier[])

Registers an object with a watch service.

[Android.Runtime.Register("register", "(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;", "GetRegister_Ljava_nio_file_WatchService_arrayLjava_nio_file_WatchEvent_Kind_arrayLjava_nio_file_WatchEvent_Modifier_Handler:Java.Nio.FileNio.IWatchableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.IWatchKey? Register (Java.Nio.FileNio.IWatchService? watcher, Java.Nio.FileNio.IWatchEventKind[]? events, params Java.Nio.FileNio.IWatchEventModifier[]? modifiers);
[<Android.Runtime.Register("register", "(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;", "GetRegister_Ljava_nio_file_WatchService_arrayLjava_nio_file_WatchEvent_Kind_arrayLjava_nio_file_WatchEvent_Modifier_Handler:Java.Nio.FileNio.IWatchableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Register : Java.Nio.FileNio.IWatchService * Java.Nio.FileNio.IWatchEventKind[] * Java.Nio.FileNio.IWatchEventModifier[] -> Java.Nio.FileNio.IWatchKey

Parameters

watcher
IWatchService

the watch service to which this object is to be registered

events
IWatchEventKind[]

the events for which this object should be registered

modifiers
IWatchEventModifier[]

Returns

a key representing the registration of this object with the given watch service

Attributes

Remarks

Java documentation for java.nio.file.Watchable.register(java.nio.file.WatchService, java.nio.file.Kind).

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