configureAlertAPI method
Configure the speed-alert API.
Call after configureTracking.
apiKeySpeed-alert API key.apiIDSpeed-alert API identifier.urlOverride 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;
}
}