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 {
try {
Map req = {"code": languageCode};
Map result = await platform_interface.Client.instance.pushManager.callNativeMethod(
ChatMethodKeys.setPreferredNotificationLanguage,
req,
);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}