Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Subscribe

func Subscribe(callback: (FileSystemNotification) -> ()) -> Disposable

Declaring type: FileSystemWatcher
Module: System.IO
Assembly: System.Runtime.dll
Source file: FileSystemWatcher.rvn

Subscribes to all notifications. Dispose the registration to release its callback. The union case determines the payload; rescan notifications never fabricate a change.

Parameters

Name Type Description
callback Function

Return value

Disposable