setLocalUserAttributes method

Future<void> setLocalUserAttributes(
  1. List<Map<String, String>> attributes
)

Substitutes the local user’s attributes with new ones.

Implementation

Future<void> setLocalUserAttributes(
    List<Map<String, String>> attributes) async {
  final res = await _callNative("setLocalUserAttributes", {
    "attributes": attributes,
  });
  if (res["errorCode"] != 0)
    throw AgoraRtmClientException(
        "setLocalUserAttributes failed errorCode:${res['errorCode']}",
        res['errorCode']);
}