HERE Android SDK Developer's Guide

AudioPlayerDelegate

The interface AudioPlayerDelegate is a member of com.here.android.mpa.guidance .

Interface Summary

public abstract interface AudioPlayerDelegate

Interface for notifying NavigationManager.AudioPlayer functions used by NavigationManager.

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in AudioPlayerDelegate
Methods

public abstract boolean playFiles (String[] files)

Delegate function for NavigationManager.AudioPlayer used by NavigationManager.

public abstract boolean playText (String text)

Delegate function for NavigationManager.AudioPlayer used by NavigationManager.

Interface Details

Interface for notifying NavigationManager.AudioPlayer functions used by NavigationManager. Clients can take over playback of audio files and TTS text strings by implementing this interface and submitting to setDelegate(AudioPlayerDelegate).

Method Details

public abstract boolean playFiles (String[] files)

Delegate function for NavigationManager.AudioPlayer used by NavigationManager. Clients will receive an array of audio file paths that be submitted to media players for playback.

Parameters:

  • files

Returns:

true if client is handling the audio playback, false will allow the SDK to handle it.

public abstract boolean playText (String text)

Delegate function for NavigationManager.AudioPlayer used by NavigationManager. Clients will receive a text string that can be submitted to TTS engines for playback.

Parameters:

  • text

    TTS text to be played.

Returns:

true if client is handling the TTS playback, false will allow the SDK to handle it.