NuguAndroidClient

class NuguAndroidClient : ClientHelperInterface, NuguClientInterface

Implementation of ClientHelperInterface for Android

This class is a basic client to interact with NUGU at Android.

android.app.Application's onCreate is a good place to initialize.

It require many components to initialize. so, we provide a Builder to create and the most of components set to default.

Types

Link copied to clipboard
class Builder(    context: Context,     authDelegate: AuthDelegate,     defaultAudioProvider: AudioProvider)

The builder for NuguAndroidClient

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun addASRListener(listener: ASRAgentInterface.OnStateChangeListener)
Link copied to clipboard
open override fun addASRResultListener(listener: ASRAgentInterface.OnResultListener)
Link copied to clipboard
open override fun addAudioPlayerListener(listener: AudioPlayerAgentInterface.Listener)
Link copied to clipboard
open override fun addConnectionListener(listener: ConnectionStatusListener)
Link copied to clipboard
open override fun addDialogUXStateListener(listener: DialogUXStateAggregatorInterface.Listener)
Link copied to clipboard
open override fun addOnDirectiveHandlingListener(listener: DirectiveSequencerInterface.OnDirectiveHandlingListener)
Link copied to clipboard
open override fun addOnSendMessageListener(listener: MessageSender.OnSendMessageListener)
Link copied to clipboard
open override fun addReceiveDirectivesListener(listener: DirectiveGroupProcessorInterface.Listener)
Link copied to clipboard
open override fun addSpeakerListener(listener: SpeakerManagerObserver)
Link copied to clipboard
open override fun addSystemAgentListener(listener: SystemAgentInterface.Listener)
Link copied to clipboard
open override fun cancelTTSAndOthers()
Link copied to clipboard
open override fun connect()
Link copied to clipboard
open override fun disconnect()
Link copied to clipboard
open override fun getAgent(namespace: String): CapabilityAgent?
Link copied to clipboard
open override fun getDisplay(): DisplayAggregatorInterface?
Link copied to clipboard
open override fun getPlaybackRouter(): PlaybackRouter
Link copied to clipboard
open override fun getSpeakerManager(): SpeakerManagerInterface?
Link copied to clipboard
open override fun localStopTTS()
Link copied to clipboard
open override fun removeASRListener(listener: ASRAgentInterface.OnStateChangeListener)
Link copied to clipboard
open override fun removeASRResultListener(listener: ASRAgentInterface.OnResultListener)
Link copied to clipboard
open override fun removeAudioPlayerListener(listener: AudioPlayerAgentInterface.Listener)
Link copied to clipboard
open override fun removeConnectionListener(listener: ConnectionStatusListener)
Link copied to clipboard
open override fun removeDialogUXStateListener(listener: DialogUXStateAggregatorInterface.Listener)
Link copied to clipboard
Link copied to clipboard
open override fun removeOnSendMessageListener(listener: MessageSender.OnSendMessageListener)
Link copied to clipboard
open override fun removeReceiveDirectivesListener(listener: DirectiveGroupProcessorInterface.Listener)
Link copied to clipboard
open override fun removeSpeakerListener(listener: SpeakerManagerObserver)
Link copied to clipboard
open override fun removeSystemAgentListener(listener: SystemAgentInterface.Listener)
Link copied to clipboard
open override fun requestTextInput(    text: String,     playServiceId: String?,     token: String?,     source: String?,     referrerDialogRequestId: String?,     includeDialogAttribute: Boolean,     listener: TextAgentInterface.RequestListener?): String?
Link copied to clipboard
open override fun requestTTS(    text: String,     format: TTSAgentInterface.Format,     playServiceId: String?,     listener: TTSAgentInterface.OnPlaybackListener?): String?
Link copied to clipboard
open override fun setDisplayRenderer(renderer: DisplayAggregatorInterface.Renderer?)
Link copied to clipboard
open override fun setStateProvider(namespaceAndName: NamespaceAndName, stateProvider: ContextStateProvider?)
Link copied to clipboard
open override fun shutdown()
Link copied to clipboard
open override fun startRecognition(    audioInputStream: SharedDataStream?,     audioFormat: AudioFormat?,     wakeupInfo: WakeupInfo?,     param: EndPointDetectorParam?,     callback: ASRAgentInterface.StartRecognitionCallback?,     initiator: ASRAgentInterface.Initiator)
Link copied to clipboard
open override fun stopRecognition()

Properties

Link copied to clipboard
open override val asrAgent: ASRAgentInterface?
Link copied to clipboard
open override val audioPlayerAgent: DefaultAudioPlayerAgent?
Link copied to clipboard
open override val bluetoothAgent: BluetoothAgentInterface?
Link copied to clipboard
open override val delegationAgent: DelegationAgentInterface?
Link copied to clipboard
open override val displayAgent: DisplayAgentInterface?
Link copied to clipboard
open override val extensionAgent: ExtensionAgentInterface?
Link copied to clipboard
open override val networkManager: ConnectionManagerInterface
Link copied to clipboard
open override val systemAgent: SystemAgentInterface
Link copied to clipboard
open override val textAgent: TextAgentInterface?
Link copied to clipboard
open override val themeManager: ThemeManagerInterface
Link copied to clipboard
open override val ttsAgent: TTSAgentInterface?