addUserAction method

Future<void> addUserAction(
  1. String name, {
  2. RUMAction action = RUMAction.tap,
  3. Map<String, dynamic> attributes = const <String, dynamic>{},
})

Manually track a user event.

action is ignored when using Flutter web.

Implementation

Future<void> addUserAction(
  String name, {
  RUMAction action = RUMAction.tap,
  Map<String, dynamic> attributes = const <String, dynamic>{},
}) async {
  return await channel.invokeMethod('rumAddUserAction', {
    'name': name,
    'type': action.index,
    'attributes': platform.isIOS ? jsonEncode(attributes) : attributes,
  });
}