trackingSessionEvents method

Future<void> trackingSessionEvents(
  1. bool trackingSessionEvents
)

Whether to automatically log start and end session events corresponding to the start and end of a user's session.

Implementation

Future<void> trackingSessionEvents(bool trackingSessionEvents) async {
  Map<String, dynamic> properties = _baseProperties();
  properties['trackingSessionEvents'] = trackingSessionEvents;

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