fuchsia.hardware.haptics

Added: HEAD

PROTOCOLS

Device

Defined in fuchsia.hardware.haptics/haptics.fidl

StartVibration

Starts a vibration. Doesn't return until the vibration has completed or if StopVibration() is called. Returns ZX_ERR_BAD_STATE if there is a vibration already playing.

Request

<EMPTY>

Response

NameType
payload Device_StartVibration_Result

StopVibration

Stops the vibration that is currently playing. Does nothing if there isn't a vibration currently playing. All pending StartVibration() requests are completed immediately.

Request

<EMPTY>

Response

NameType
payload Device_StopVibration_Result

STRUCTS

Device_StartVibration_Response

Defined in fuchsia.hardware.haptics/haptics.fidl

<EMPTY>

Device_StopVibration_Response

Defined in fuchsia.hardware.haptics/haptics.fidl

<EMPTY>

UNIONS

Device_StartVibration_Result strict

Defined in fuchsia.hardware.haptics/haptics.fidl

OrdinalVariantTypeDescription
response Device_StartVibration_Response
err zx/Status
framework_err internal

Device_StopVibration_Result strict

Defined in fuchsia.hardware.haptics/haptics.fidl

OrdinalVariantTypeDescription
response Device_StopVibration_Response
err zx/Status
framework_err internal

SERVICES

Service

Defined in fuchsia.hardware.haptics/haptics.fidl

NameTypeTransport
device fuchsia.hardware.haptics/Device Channel