Share via


Pedometer.StatusChanged | statuschanged event

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Occurs each time the pedometer reports a new status.

Syntax

function onStatusChanged(eventArgs) { /* Your code */ }
 
// addEventListener syntax
pedometer.addEventListener("statuschanged", onStatusChanged);
pedometer.removeEventListener("statuschanged", onStatusChanged);
 
- or -

pedometer.onstatuschanged = onStatusChanged;
public event TypedEventHandler<Pedometer, PedometerStatusChangedEventArgs> StatusChanged
Public Event StatusChanged As TypedEventHandler(Of Pedometer, PedometerStatusChangedEventArgs)
public:
event TypedEventHandler<Pedometer, PedometerStatusChangedEventArgs>^ StatusChanged {
   Windows::Foundation::EventRegistrationToken add(TypedEventHandler<Pedometer, PedometerStatusChangedEventArgs>^ value);
   void remove(Windows::Foundation::EventRegistrationToken token);
}

Event information

Delegate TypedEventHandler<Pedometer, PedometerStatusChangedEventArgs>

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Sensors Windows::Devices::Sensors [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

See also

Pedometer