다음을 통해 공유


FileSystem.NewWatchService Method

Definition

Constructs a new WatchService(optional operation).

[Android.Runtime.Register("newWatchService", "()Ljava/nio/file/WatchService;", "GetNewWatchServiceHandler", ApiSince=26)]
public abstract Java.Nio.FileNio.IWatchService? NewWatchService ();
[<Android.Runtime.Register("newWatchService", "()Ljava/nio/file/WatchService;", "GetNewWatchServiceHandler", ApiSince=26)>]
abstract member NewWatchService : unit -> Java.Nio.FileNio.IWatchService

Returns

a new watch service

Attributes

Remarks

Constructs a new WatchService(optional operation).

This method constructs a new watch service that may be used to watch registered objects for changes and events.

Java documentation for java.nio.file.FileSystem.newWatchService().

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