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

IsSupported

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

Methods

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

Vibrate(IVibration, Double)

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

Applies to