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
| Name | Type | 
|---|---|
| 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
| Name | Type | 
|---|---|
| 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
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | response | Device_StartVibration_Response | |
| 2 | err | zx/Status | |
| 3 | framework_err | internal | 
Device_StopVibration_Result strict
Defined in fuchsia.hardware.haptics/haptics.fidl
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | response | Device_StopVibration_Response | |
| 2 | err | zx/Status | |
| 3 | framework_err | internal | 
SERVICES
Service
Defined in fuchsia.hardware.haptics/haptics.fidl
| Name | Type | Transport | 
|---|---|---|
| device | fuchsia.hardware.haptics/Device | Channel |