Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.68 KB

devicewatcherstatus.md

File metadata and controls

42 lines (28 loc) · 1.68 KB
-api-id -api-type
T:Windows.Devices.Enumeration.DeviceWatcherStatus
winrt enum

DeviceWatcherStatus

-description

Describes the state of a DeviceWatcher object.

-enum-fields

-field Created:0

This is the initial state of a Watcher object. During this state clients can register event handlers.

-field Started:1

The watcher transitions to the Started state once Start is called. The watcher is enumerating the initial collection. Note that during this enumeration phase it is possible to receive Updated and Removed notifications but only to items that have already been Added.

-field EnumerationCompleted:2

The watcher has completed enumerating the initial collection. Items can still be added, updated or removed from the collection.

-field Stopping:3

The client has called Stop and the watcher is still in the process of stopping. Events may still be raised.

-field Stopped:4

The client has called Stop and the watcher has completed all outstanding events. No further events will be raised.

-field Aborted:5

The watcher has aborted operation. No subsequent events will be raised.

-remarks

The following state diagram shows how the DeviceWatcher transitions between the states represented by DeviceWatcherStatus enumeration.

state diagram of DeviceWatcher states

-examples

-see-also