Resonance class

Constructors

Resonance()
Singleton factory
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

Methods

addVolumeListener(dynamic function(double volume)) StreamSubscription<double>
Add volume listener to subscription to handle callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeVolumeListener() → void
Remove and cancel subscription to any broadcast stream from native code to avoid memory leak.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

vibrate({Duration? duration}) Future<bool>
Create standalone vibration by some duration.
vibratePattern(List<int> pattern, {int? amplitude, bool repeat = false}) Future<bool>
Create custombizable pattern and amplitude vibration.
vibrationCancel() Future<bool>
Stop active vibration.
volumeGetCurrentLevel({StreamType streamType = StreamType.music}) Future<double>
A method to get the current volume level from device.
volumeGetMaxLevel({StreamType streamType = StreamType.music}) Future<double>
A method to get the max volume level from the device.
volumeSetLevel(double volumeValue, {StreamType streamType = StreamType.music, bool showVolumeUI = false}) Future<double>
Set the volume level to the device.
volumeSetMaxLevel({StreamType streamType = StreamType.music, bool showVolumeUI = false}) Future<double>
Set the maximum volume level to the device.
volumeSetMuteLevel({StreamType streamType = StreamType.music, bool showVolumeUI = false}) Future<double>
Set the minimum volume level or muting the device.