GamepadHapticActuator class
Experimental: This is an experimental technologyCheck the
Browser compatibility table carefully before using this in
production.Secure context: This feature is available only in
secure contexts (HTTPS), in some or all supporting browsers.
The interface of the Gamepad API represents hardware in the
controller designed to provide haptic feedback to the user (if
available), most commonly vibration hardware.
This interface is accessible through the
Gamepad.hapticActuators
property.
- Available extensions
- Annotations
-
- @experimental
- @JS()
- @staticInterop
Constructors
- GamepadHapticActuator()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → GamepadHapticActuatorType
-
Available on GamepadHapticActuator, provided by the PropsGamepadHapticActuator extension
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pulse(
double value, double duration) → Future< bool> -
Available on GamepadHapticActuator, provided by the PropsGamepadHapticActuator extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited