Skip to main content

DeviceVibration

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid

Provides methods to vibrate the client device.

public class DeviceVibration

Access this class through the Device singleton.

Constructors​

Instance memberDeviceVibration()​

Initializes a new instance of DeviceVibration.

Methods​

Instance memberCancel()​

Cancel any current vibrations.

Instance memberVibrate(milliseconds)​

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

ParameterTypeDescription
millisecondsInt32The time to vibrate for. This value will be ignored on iOS as it only supports 500ms