startMediaTracking static method

Future<MediaTracking> startMediaTracking({
  1. required String tracker,
  2. required MediaTrackingConfiguration configuration,
})

Starts media tracking with the given configuration.

Implementation

static Future<MediaTracking> startMediaTracking(
    {required String tracker,
    required MediaTrackingConfiguration configuration}) async {
  await _channel.invokeMethod('startMediaTracking',
      {'tracker': tracker, 'configuration': configuration.toMap()});
  return MediaTracking(id: configuration.id, tracker: tracker);
}