Skip to main content
Version: 21 Aug 2024

CustomPattern

A custom haptics pattern can be played by combining Buzz haptic command and/or a pre-defined pattern, this object will hold a list of the haptics to be played with their specified durations.

Inherits from:
IHapticsCommand

Public Methods

void Add

public void Add(
in Buzz buzz
)

Parameters

TypeNameDescription
in BuzzbuzzA structure containing information about the Buzz command to be played.

void Add

public void Add(
in PreDefined preDefined,
uint durationMs
)

Parameters

TypeNameDescription
in PreDefinedpreDefinedA structure containing information about the Pre-Defined pattern to be played.
uintdurationMs

bool Remove

public bool Remove(
in Buzz buzz
)

Parameters

TypeNameDescription
in BuzzbuzzA structure containing information about the Buzz command to be played.

bool Remove

public bool Remove(
in PreDefined preDefined,
uint durationMs
)

Parameters

TypeNameDescription
in PreDefinedpreDefinedA structure containing information about the Pre-Defined pattern to be played.
uintdurationMs

MLResult StartHaptics

public MLResult StartHaptics()

Reimplements: StartHaptics