groupIdentify method

Future<void> groupIdentify(
  1. String groupType,
  2. String groupName,
  3. Identify groupIdentify, {
  4. bool outOfSession = false,
})

Use the Group Identify API to set or update properties of particular groups. However, these updates will only affect events going forward.

Implementation

Future<void> groupIdentify(
    String groupType, String groupName, Identify groupIdentify,
    {bool outOfSession = false}) async {
  Map<String, dynamic> properties = _baseProperties();
  properties['groupType'] = groupType;
  properties['groupName'] = groupName;
  properties['userProperties'] = groupIdentify.payload;
  properties['outOfSession'] = outOfSession;

  return await _channel.invokeMethod('groupIdentify', jsonEncode(properties));
}