setSpecificAudioNotification method

Future<Result> setSpecificAudioNotification(
  1. AudioNotification audioNotification,
  2. int index
)

Sets a sepcific AudioNotification in the AudioNotifications for the playlist player.

Implementation

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