configureAlertAPI method

Future<bool> configureAlertAPI({
  1. required String apiKey,
  2. required String apiID,
  3. String url = 'https://drive-api.vietmap.vn/fleetwork/api/Alert/v2/mpp',
})

Configure the speed-alert API.

Call after configureTracking.

  • apiKey Speed-alert API key.
  • apiID Speed-alert API identifier.
  • url Override the default alert endpoint.

Implementation

Future<bool> configureAlertAPI({
  required String apiKey,
  required String apiID,
  String url = 'https://drive-api.vietmap.vn/fleetwork/api/Alert/v2/mpp',
}) async {
  try {
    final result = await _method.invokeMethod<bool>('configureAlertAPI', {
      'apiKey': apiKey,
      'apiID':  apiID,
      'url':    url,
    });
    return result ?? false;
  } on PlatformException {
    rethrow;
  }
}