Skip to main content
Version: 12 Dec 2024

Haptics

Public Methods

MLResult StartBuzz

Starts a buzz pattern.

public static MLResult StartBuzz(
ushort startHz,
ushort endHz,
uint durationMs,
byte amplitude
)

Parameters

TypeNameDescription
ushortstartHz
ushortendHz
uintdurationMs
byteamplitude

MLResult StartPreDefined

Starts a predefined pattern.

public static MLResult StartPreDefined(
PreDefined.Type type
)

Parameters

TypeNameDescription
PreDefined.TypetypePredefined haptics pattern types.

MLResult Stop

Stops playing the current haptic pattern.

public static MLResult Stop()

Public Enums

Type

Custom haptics pattern types.

EnumeratorValueDescription
Buzz1Pattern is a buzz command.
PreDefinedPattern is a pre-defined pattern.