addOrUpdateLocalUserAttributes method
Adds or updates the local user’s attribute(s).
Implementation
Future<void> addOrUpdateLocalUserAttributes(
List<Map<String, String>> attributes) async {
final res = await _callNative("addOrUpdateLocalUserAttributes", {
"attributes": attributes,
});
if (res["errorCode"] != 0)
throw AgoraRtmClientException(
"addOrUpdateLocalUserAttributes failed errorCode:${res['errorCode']}",
res['errorCode']);
}