Udostępnij za pośrednictwem


FileObserver.StartWatching Method

Definition

Start watching for events.

[Android.Runtime.Register("startWatching", "()V", "GetStartWatchingHandler")]
public virtual void StartWatching ();
[<Android.Runtime.Register("startWatching", "()V", "GetStartWatchingHandler")>]
abstract member StartWatching : unit -> unit
override this.StartWatching : unit -> unit
Attributes

Remarks

Start watching for events. The monitored file or directory must exist at this time, or else no events will be reported (even if it appears later). If monitoring is already started, this call has no effect.

Java documentation for android.os.FileObserver.startWatching().

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