import Devices
IMSDeviceManager.associateDevice(bluetoothDevice, toVehicleId: nil)
import TripDetectionUmbrella
let tripDetectionManager = TripDetectionManager(identity: identity,
uploadRoute: uploadRouteType
telemetryEvents: telemetryEvents,
features: features)
tripDetectionManager.enable { (state, date) in
switch state {
case .potentialTrip:
log.d("Potential trip at \(date)!")
case .confirmedTrip:
log.d("Confirmed trip at \(date)!")
case .endedTrip:
log.d("Trip ended at \(date)!")
@unknown default:
log.e("Error fetching trip states with date!")
}
}