MethodChannelFlutterRingtonePlayer class
An implementation of FlutterRingtonePlayerPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- FlutterRingtonePlayerPlatform
- MethodChannelFlutterRingtonePlayer
Constructors
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> -
This is generic method allowing you to specify individual sounds
you wish to be played for each platform
override
-
playAlarm(
{double? volume, bool looping = true, bool asAlarm = true}) → Future< void> -
Play default alarm sound (looping on Android)
override
-
playNotification(
{double? volume, bool? looping, bool asAlarm = false}) → Future< void> -
Play default notification sound
override
-
playRingtone(
{double? volume, bool looping = true, bool asAlarm = false}) → Future< void> -
Play default system ringtone (looping on Android)
override
-
stop(
) → Future< void> -
Stop looping sounds like alarms & ringtones on Android.
This is no-op on iOS.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited