startUserAction method

Future<void> startUserAction(
  1. String name, {
  2. RUMAction action = RUMAction.tap,
})

Manually track a user event.

This is used to track long running user actions (e.g. "scroll"). Such an User Action must be stopped with stopUserAction, and will be stopped automatically if it lasts for more than 10 seconds.

This is not invoked and resolves silently when using Flutter web.

Implementation

Future<void> startUserAction(
  String name, {
  RUMAction action = RUMAction.tap,
}) async {
  return await channel.invokeMethod('rumStartUserAction', {
    'name': name,
    'type': action.index,
  });
}