com.sygic.sdk.voice.VoiceDownload Class Reference
Inheritance diagram for com.sygic.sdk.voice.VoiceDownload:
Collaboration diagram for com.sygic.sdk.voice.VoiceDownload:

Classes

interface  AvailableVoicesCallback
 

Public Member Functions

void addVoiceInstallationListener (final VoiceInstallListener listener)
 
void addVoiceInstallationListener (final VoiceInstallListener listener, @Nullable final Executor executor)
 
void removeVoiceInstallationListener (final VoiceInstallListener listener)
 
void getAvailableVoiceList (@NonNull final AvailableVoicesCallback callback)
 
void getAvailableVoiceList (@NonNull final AvailableVoicesCallback callback, @Nullable Executor executor)
 
boolean installVoice (VoiceEntry voiceEntry)
 
boolean uninstallVoice (VoiceEntry voiceEntry)
 
void cancelDownload (VoiceEntry entry)
 
synchronized void destroy ()
 

Protected Member Functions

void finalize () throws Throwable
 

Detailed Description

Manages the voice entry used to download new voices.

Member Function Documentation

◆ addVoiceInstallationListener() [1/2]

void com.sygic.sdk.voice.VoiceDownload.addVoiceInstallationListener ( final VoiceInstallListener  listener)

Registers a VoiceInstallListener.

◆ addVoiceInstallationListener() [2/2]

void com.sygic.sdk.voice.VoiceDownload.addVoiceInstallationListener ( final VoiceInstallListener  listener,
@Nullable final Executor  executor 
)

Registers a VoiceInstallListener.

Parameters
executorExecutor which will execute listener's callbacks

◆ cancelDownload()

void com.sygic.sdk.voice.VoiceDownload.cancelDownload ( VoiceEntry  entry)

◆ destroy()

synchronized void com.sygic.sdk.voice.VoiceDownload.destroy ( )

◆ finalize()

void com.sygic.sdk.voice.VoiceDownload.finalize ( ) throws Throwable
protected

◆ getAvailableVoiceList() [1/2]

void com.sygic.sdk.voice.VoiceDownload.getAvailableVoiceList ( @NonNull final AvailableVoicesCallback  callback)

Returns all available voices. The callback will be called on main thread.

◆ getAvailableVoiceList() [2/2]

void com.sygic.sdk.voice.VoiceDownload.getAvailableVoiceList ( @NonNull final AvailableVoicesCallback  callback,
@Nullable Executor  executor 
)

Returns all available voices. The callback will be called on provided executor or on main thread if null.

◆ installVoice()

boolean com.sygic.sdk.voice.VoiceDownload.installVoice ( VoiceEntry  voiceEntry)

Requests the installation of voice package.

Parameters
voiceEntryVoiceEntry object.
Returns
true if request was processed, false otherwise (for example the object is invalid or contains invalid data).

◆ removeVoiceInstallationListener()

void com.sygic.sdk.voice.VoiceDownload.removeVoiceInstallationListener ( final VoiceInstallListener  listener)

◆ uninstallVoice()

boolean com.sygic.sdk.voice.VoiceDownload.uninstallVoice ( VoiceEntry  voiceEntry)

Request the uninstallation of voice package.

Parameters
voiceEntryVoiceEntry object.
Returns
true if request was processed, false otherwise (for example the object is invalid or contains invalid data).

The documentation for this class was generated from the following file: