setAudioNotification method

Future<Result> setAudioNotification(
  1. AudioNotification audioNotification
)

Sets the AudioNotification for the single player, if you want to change specific notification in AudioNotifications list use setSpecificAudioNotification.

Implementation

Future<Result> setAudioNotification(
    AudioNotification audioNotification) async {
  return ResultMap[await _invokeMethod('setAudioObject', {
        'smallIconFileName': audioNotification.smallIconFileName,
        'title': audioNotification.title,
        'subTitle': audioNotification.subTitle,
        'largeIconUrl': audioNotification.largeIconUrl,
        'notificationDefaultActions': NotificationDefaultActionsMap[
            audioNotification.notificationDefaultActions],
        'notificationActionCallbackMode': NotificationActionCallbackModeMap[
            audioNotification.notificationActionCallbackMode],
        'notificationCustomActions': NotificationCustomActionsMap[
            audioNotification.notificationCustomActions],
      }) as int] ??
      Result.ERROR;
}