Soundscape Service
Properties
True while the user is actively navigating the audio menu. Suppresses auto callouts.
Functions
isAudioEngineBusy returns true if there is more than one entry in the audio engine queue. The queue consists of earcons and text-to-speech.
Begin a beacon style preview. Saves the location of any currently running beacon so it can be restarted later, stops that beacon, and creates a fresh beacon using the supplied beaconType. If a beacon was already active the preview reuses its location; otherwise the preview is placed ~150m directly north of the listener.
Stop the preview. If commit is true, persist chosenBeaconType as the new style; otherwise revert the engine to the type that was active before the preview started. In both cases, the beacon that was running before the preview (if any) is restarted at the same location it was at.
Stops the foreground service and removes the notification. Can be called from inside or outside the service.
streetPreviewGo is called when the 'GO' button is pressed when in StreetPreview mode. It indicates that the user has selected the direction of travel in which they which to move.
Switch the running preview to beaconType. Engine state only — does not write to SharedPreferences, so a subsequent cancel reverts without any persisted side effect.