MethodChannelNotificationAudioPlugin class
An implementation of NotificationAudioPluginPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- NotificationAudioPluginPlatform
- MethodChannelNotificationAudioPlugin
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyAudioFile(
{required String sourcePath, required String fileName}) → Future< String?> -
Copy audio file from external source to app directory
override
-
deleteAudio(
{required String fileName}) → Future< Map< String, dynamic> ?> -
Delete audio file
override
-
downloadAudio(
{required String audioUrl, required String fileName}) → Future< Map< String, dynamic> ?> -
Download and save an audio file from URL
override
-
downloadAudioWithProgress(
{required String audioUrl, required String fileName, required dynamic onProgress(int progress, int bytesDownloaded, int totalBytes)}) → Future< Map< String, dynamic> ?> -
Download audio file with progress tracking
override
-
exportSettings(
) → Future< String?> -
Export settings as JSON
override
-
getAudioSettings(
) → Future< Map< String, dynamic> ?> -
Get current audio settings
override
-
importSettings(
{required String settings}) → Future< Map< String, dynamic> ?> -
Import settings from JSON
override
-
listAudioFiles(
) → Future< List< Map< ?>String, dynamic> > -
List all downloaded audio files
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
playAudio(
{required String audioUri}) → Future< Map< String, dynamic> ?> -
Play audio file from URI
override
-
resetSettings(
) → Future< Map< String, dynamic> ?> -
Reset all settings to defaults
override
-
setAudio(
{required String audioUrl, required String fileName}) → Future< Map< String, dynamic> ?> -
Download audio and set as notification sound
override
-
setEnabled(
{required bool enabled}) → Future< Map< String, dynamic> ?> -
Enable or disable custom audio notifications
override
-
setPackageName(
{required String packageName}) → Future< Map< String, dynamic> ?> -
Set package name for notifications (default: com.binimise.staff.generic)
override
-
setVolume(
{required double volume}) → Future< Map< String, dynamic> ?> -
Set audio volume (0.0 to 1.0)
override
-
startAlarm(
{String? audioPath, String? audioUrl}) → Future< Map< String, dynamic> ?> -
Start alarm service with native audio playback
override
-
stopAlarm(
) → Future< Map< String, dynamic> ?> -
Stop alarm service
override
-
stopAudio(
) → Future< Map< String, dynamic> ?> -
Stop audio playback
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited