AI-generated Key Takeaways
-
Navigator.AudioGuidanceis a set of flags to customize audio alerts and guidance during navigation. -
It offers options for voice guidance, alerts, vibrations, and Bluetooth audio output.
-
SILENTdisables all audio and vibrations, whileVIBRATIONenables only vibrations. -
VOICE_ALERTS_AND_GUIDANCEenables voice for both alerts and turn-by-turn instructions, whileVOICE_ALERTS_ONLYenables voice for alerts only. -
BLUETOOTH_AUDIOenables Bluetooth audio output when combined with voice guidance flags.
AudioGuidance is a set of flags used to specify what kinds of audio alerts and guidance are used during navigation.
Constant Summary
| int | BLUETOOTH_AUDIO | Specifies that voice guidance should be transmitted over Bluetooth if available. |
| int | SILENT | Specifies that voice guidance and vibrations should be disabled. |
| int | VIBRATION | Specifies that vibrations should be enabled. |
| int | VOICE_ALERTS_AND_GUIDANCE | Specifies that voice should be enabled for both alerts and turn-by-turn guidance instructions. |
| int | VOICE_ALERTS_ONLY | Specifies that voice should be enabled for alerts only (e.g., traffic incidents) but not for turn-by-turn guidance instructions. |
Inherited Method Summary
Constants
public static final int BLUETOOTH_AUDIO
Specifies that voice guidance should be transmitted over Bluetooth if available. This flag
must be combined with VOICE_ALERTS_ONLY or VOICE_ALERTS_AND_GUIDANCE to
have any effect.
public static final int SILENT
Specifies that voice guidance and vibrations should be disabled. This flag should always be
specified by itself; it is a mistake to combine this with any other Navigator.AudioGuidance
flags.
public static final int VIBRATION
Specifies that vibrations should be enabled.
public static final int VOICE_ALERTS_AND_GUIDANCE
Specifies that voice should be enabled for both alerts and turn-by-turn guidance
instructions. Note that this value alone will not allow voice guidance to be played over
Bluetooth; to enable that, BLUETOOTH_AUDIO should be added.
public static final int VOICE_ALERTS_ONLY
Specifies that voice should be enabled for alerts only (e.g., traffic incidents) but not for
turn-by-turn guidance instructions. Note that this value alone will not allow voice guidance
to be played over Bluetooth; to enable that, BLUETOOTH_AUDIO should be added.