getChannelAttributesByKeys method

Future<List<RtmChannelAttribute>> getChannelAttributesByKeys(
  1. String channelId,
  2. List<String> attributeKeys
)

Gets the attributes of a specified channel using attribute keys.

Implementation

Future<List<RtmChannelAttribute>> getChannelAttributesByKeys(
    String channelId, List<String> attributeKeys) async {
  return List<Map>.from(await _callNative("getChannelAttributesByKeys",
          {'channelId': channelId, 'attributeKeys': attributeKeys}))
      .map((attr) => RtmChannelAttribute.fromJson(attr))
      .toList();
}