-
@Serializable() public class ToolSafetyProfileEncodes the valid combinations of DriverDistractionLevel and ToolSafetyLevel.
This class is used to define the safety profile of a voice tool, which determines whether the tool can be used while driving and what level of user confirmation is required before executing the tool.
Usage:
override val toolSafetyProfile = ToolSafetyProfile.SafeWhileDriving.NoConfirmation override val toolSafetyProfile = ToolSafetyProfile.RestrictedWhileDriving.ManualConfirmation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classToolSafetyProfile.SafeWhileDrivingThe tool does not distract the operator and is safe to use while driving. DriverDistractionLevel.SAFE_WHILE_DRIVING
public classToolSafetyProfile.RestrictedWhileDrivingThe tool distracts the operator and must not be used while driving. DriverDistractionLevel.RESTRICTED_WHILE_DRIVING
-
Field Summary
Fields Modifier and Type Field Description private final DriverDistractionLeveldriverDistractionLevelprivate final ToolSafetyLevelsafetyLevel
-
Method Summary
Modifier and Type Method Description abstract DriverDistractionLevelgetDriverDistractionLevel()abstract ToolSafetyLevelgetSafetyLevel()-
-
Method Detail
-
getDriverDistractionLevel
abstract DriverDistractionLevel getDriverDistractionLevel()
-
getSafetyLevel
abstract ToolSafetyLevel getSafetyLevel()
-
-
-
-