setPreferredNotificationLanguage method
- String languageCode
Sets the preferred language for push notifications.
Param languageCode
The language code.
Throws A description of the exception. See ChatError.
Implementation
Future<void> setPreferredNotificationLanguage(String languageCode) async {
Map req = {"code": languageCode};
Map result = await PushChannel.invokeMethod(
ChatMethodKeys.setPreferredNotificationLanguage,
req,
);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}