saveStatusBarNotificationConfig static method

dynamic saveStatusBarNotificationConfig(
  1. NIMStatusBarNotificationConfig config, {
  2. bool saveToNative = true,
})

Implementation

static saveStatusBarNotificationConfig(NIMStatusBarNotificationConfig config,
    {bool saveToNative = true}) {
  String tmp = jsonEncode(config.toMap());
  PreferenceUtils.saveString(statusConfig, tmp);
  if (saveToNative) {
    NimCore.instance.settingsService.updateNotificationConfigAndroid(config);
  }
}