MapTrip Interface Android Reference Manual 9.10.1
Loading...
Searching...
No Matches
de.infoware.android.mti.Sound Class Reference

Static Public Member Functions

static native int setMutingMode (boolean mutingMode)
 
static native int speakTtsPhrase (String phrase)
 
static void addListener (SoundListener listener)
 
static void removeListener (SoundListener listener)
 
static void removeAllListeners ()
 

Detailed Description

This class allows to configure the sound output of maptrip.

Member Function Documentation

◆ addListener()

static void de.infoware.android.mti.Sound.addListener ( SoundListener  listener)
static

◆ removeAllListeners()

static void de.infoware.android.mti.Sound.removeAllListeners ( )
static

◆ removeListener()

static void de.infoware.android.mti.Sound.removeListener ( SoundListener  listener)
static

◆ setMutingMode()

static native int de.infoware.android.mti.Sound.setMutingMode ( boolean  mutingMode)
static

Requests the server application to mute or unmute the sound output.

Returns
Invokes callback SoundListener.setMutingModeResult().

◆ speakTtsPhrase()

static native int de.infoware.android.mti.Sound.speakTtsPhrase ( String  phrase)
static

Requests the MapTrip to play a tts phrase. While speaking MapTrip is blocked and no user input events are received in MapTrip.

Returns
Parameters
phrase- phrase to say, max length is 128 chars

Invokes callback SoundListener.speakTtsPhraseResult().