forceTripRecognition method
Temporarily calibrates the SDK to highest detection mode.
In order to optimise battery consumption, the SDK goes through different detection modes with different battery consumptions levels, depending on the user's current behaviour and activity. In general the SDK is responsible for alternating between those different detection modes.
The SDK also provides hosting apps this API to call if they has their own reasons (like sensors or beacons) to believe that the user is starting a trip. This will make sure the SDK is on the highest detecting state to detect the trip faster.
Precondition:
- SDK State to be
.running
.
Implementation
@override
Future<void> forceTripRecognition() async {
await methodChannel.invokeMethod('forceTripRecognition');
}