forceDrivingState

fun IviServiceAwareTestCase.forceDrivingState(drivingState: DrivingState?)

Uses the debug menu to force the driving state to the given drivingState. This can be used to enable or disable safety lock without having to rely on the true state of navigation or vehicle functions.

null can be passed to stop forcing the driving state and revert to the default driving state logic.