setAttributes method

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

Sets and updates the attributes of the local participant. @attributes key-value pairs to set

Implementation

Future<void> setAttributes(Map<String, String> attributes) {
  final requestId = room.engine.signalClient.sendUpdateLocalMetadata(
    lk_rtc.UpdateParticipantMetadata(
      name: name,
      metadata: metadata,
      attributes: attributes.entries,
    ),
  );
  return _waitForRequestResponse(requestId);
}