Share via


IVibration Interface

Definition

The Vibration API provides an easy way to make the device vibrate.

public interface class IVibration
public interface IVibration
type IVibration = interface
Public Interface IVibration

Properties

Name Description
IsSupported

Gets a value indicating whether vibration is supported on this device.

Methods

Name Description
Cancel()

Cancel any current vibrations.

Vibrate()

Vibrates the device for 500ms.

Vibrate(TimeSpan)

Vibrates the device for the specified time in the range [0, 5000]ms.

Extension Methods

Name Description
Vibrate(IVibration, Double)

Vibrates the device for the specified time in the range [0, 5000]ms.

Applies to