FlutterRingtonePlayerPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • FlutterRingtonePlayerPlatform
Implementers

Constructors

FlutterRingtonePlayerPlatform()
Constructs a FlutterRingtonePlayerPlatform.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
play({AndroidSound? android, IosSound? ios, String? fromAsset, String? fromFile, double? volume, bool? looping, bool? asAlarm}) Future<void>
playAlarm({double? volume, bool looping = true, bool asAlarm = true}) Future<void>
Play default alarm sound (looping on Android)
playNotification({double? volume, bool? looping, bool asAlarm = false}) Future<void>
Play default notification sound
playRingtone({double? volume, bool looping = true, bool asAlarm = false}) Future<void>
Play default system ringtone (looping on Android)
stop() Future<void>
Stop looping sounds like alarms & ringtones on Android. This is no-op on iOS.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FlutterRingtonePlayerPlatform
The default instance of FlutterRingtonePlayerPlatform to use.
getter/setter pair