PulsarRealtimeComposer class
Controls continuous, real-time haptic feedback.
Ideal for gesture-driven feedback (e.g. sliders, drag gestures).
// Start/update haptic as the user drags
await pulsar.getRealtimeComposer().set(0.8, 0.5);
// Stop when the gesture ends
await pulsar.getRealtimeComposer().stop();
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strategy → RealtimeComposerStrategy?
-
final
Methods
-
isActive(
) → Future< bool> - Returns true if the realtime composer is currently active.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
playDiscrete(
[double amplitude = 1.0, double frequency = 0.5]) → Future< void> -
Fire a single discrete haptic event.
amplitudeandfrequencyare in the range 0.0–1.0. -
set(
double amplitude, double frequency) → Future< void> -
Set continuous haptic parameters. Starts automatically if not already active.
amplitudeandfrequencyare in the range 0.0–1.0. -
stop(
) → Future< void> - Stop the continuous haptic.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited