MethodChannelGamepadsPlatformInterface class

Inheritance

Properties

gamepadConnectionEventsStream Stream<GamepadConnectionEvent>
A stream of gamepads being connected to and disconnected from the device.
no setterinherited
gamepadEventsStream Stream<GamepadEvent>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
inherited
emitGamepadConnectionEvent(GamepadConnectionEvent event) → void
inherited
emitGamepadEvent(GamepadEvent event) → void
inherited
eventsByGamepad(String gamepadId) Stream<GamepadEvent>
inherited
hasRumble(String gamepadId) Future<bool>
Whether the device currently exposes a usable rumble actuator.
override
listGamepads() Future<List<GamepadController>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
platformCallHandler(MethodCall call) Future<void>
rumble(String gamepadId, {double lowFrequency = 0, double highFrequency = 0, Duration duration = const Duration(milliseconds: 500)}) Future<bool>
Replaces the current effect. Intensities are in 0, 1; duration is limited to 30 seconds. Returns false when unavailable or rejected. A true result means accepted, not that physical feedback was verified.
override
stopRumble(String gamepadId) Future<bool>
Stops this device immediately without affecting other controllers.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited