Driver fatigue
State
Detected fatigue level
Declaration
getDetectedFatigueLevel()
Example
val state:DriverFatigue.State
assertTrue(state.detectedFatigueLevel.value == DriverFatigue.DetectedFatigueLevel.PAUSE_RECOMMENDED)
// Driver is recommended to take a pause
Getters
Get Driver Fatigue property availability information
Declaration
public GetStateAvailability()
Example
// get all property availabilities
val getAvailability = GetStateAvailability()
Get Driver Fatigue properties
Declaration
public GetState()
Example
// get all properties
val getState = GetState()