HapticCommand.Frame.Builder

public abstract static class HapticCommand.Frame.Builder extends Object

Builder class forFrame.

Constructors

Name Description
public Builder()

Methods

setOnMs

public abstract Builder setOnMs(int onMs)

SetsonMsduration to play haptics on gear component.

Parameters

Name Description
int onMs

play time duration for haptic

ReturnValue

Name Description
Builder

setOffMs

public abstract Builder setOffMs(int offMs)

SetsoffMsduration for haptics on gear component.

Parameters

Name Description
int offMs

off time duration for haptic

ReturnValue

Name Description
Builder

setPattern

public abstract Builder setPattern(Pattern pattern)

Sets haptic patternPatternwhich plays on gear component.

Parameters

Name Description
Pattern pattern

haptic pattern type plays on gear component

ReturnValue

Name Description
Builder

setMaxAmplitudePercent

public abstract Builder setMaxAmplitudePercent(int maxAmplitudePercent)

SetsmaxAmplitudePercentof haptic pattern to play on gear component.

Parameters

Name Description
int maxAmplitudePercent

maximum amplitude in percentage for haptic pattern

ReturnValue

Name Description
Builder

setRepeatNminusOne

public abstract Builder setRepeatNminusOne(int repeatNminusOne)

Sets repetition of haptic pattern to play on gear component.

Parameters

Name Description
int repeatNminusOne

repetition number for haptic pattern

ReturnValue

Name Description
Builder

build

public abstract Frame build()

Returns haptic frameFramewhich plays on gear component.

ReturnValue

Name Description
Frame