configPushNotification method

Future<void> configPushNotification({
  1. required String notificationIcon,
  2. String? prefix,
  3. String? incomingBackgroundColor,
  4. String? incomingAcceptButtonImage,
  5. String? incomingDeclineButtonImage,
  6. String? backImage,
  7. String? userImage,
  8. String? missedCallTitle,
  9. String? prefixMissedCallMessage,
  10. String? userNameKey,
  11. String? channelId,
  12. String? videoNotificationDescription,
  13. String? audioNotificationDescription,
})

Implementation

Future<void> configPushNotification({
  required String notificationIcon,
  String? prefix,
  String? incomingBackgroundColor,
  String? incomingAcceptButtonImage,
  String? incomingDeclineButtonImage,
  String? backImage,
  String? userImage,
  String? missedCallTitle,
  String? prefixMissedCallMessage,
  String? userNameKey,
  String? channelId,
  String? videoNotificationDescription,
  String? audioNotificationDescription,
}) async {
  final action = OmiAction(
    actionName: OmiActionName.CONFIG_NOTIFICATION,
    data: {
      'notificationIcon': notificationIcon,
      'prefix': prefix,
      'incomingBackgroundColor': incomingBackgroundColor,
      'incomingAcceptButtonImage': incomingAcceptButtonImage,
      'incomingDeclineButtonImage': incomingDeclineButtonImage,
      'backImage': backImage,
      'userImage': userImage,
      'missedCallTitle': missedCallTitle,
      'prefixMissedCallMessage': prefixMissedCallMessage,
      'userNameKey': userNameKey,
      'channelId': channelId,
      'audioNotificationDescription': audioNotificationDescription,
      'videoNotificationDescription': videoNotificationDescription,
    },
  );
  return await _controller.action(action);
}