Builder
class Builder( context: Context, authDelegate: AuthDelegate, defaultAudioProvider: AudioProvider)
Content copied to clipboard
The builder for NuguAndroidClient
Parameters
context
the android context (recommend to use application's context)
authDelegate
the delegate implementation for authorization
defaultAudioProvider
the default audio provider which used as default and to answer(ExpectSpeech).
Constructors
Link copied to clipboard
fun Builder( context: Context, authDelegate: AuthDelegate, defaultAudioProvider: AudioProvider)
Content copied to clipboard
Functions
Link copied to clipboard
fun addAgentFactory(namespace: String, factory: AgentFactory<*>): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun asrBeepResourceProvider(provider: AsrBeepResourceProvider?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun audioFocusChannelConfiguration(builder: DefaultFocusChannel.Builder): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun audioFocusInteractorFactory(factory: AudioFocusInteractorFactory?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun beepDirectiveDelegate(delegate: BeepDirectiveDelegate?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun bluetoothFocusChangeHandler(handler: DefaultBluetoothAgent.OnFocusChangeHandler?): NuguAndroidClient.Builder
Content copied to clipboard
If null or not provided, then the default implementation is applied. The default control a BT's audio playback according to focus and streaming state.
Link copied to clipboard
Link copied to clipboard
fun cancelPolicyOnStopTTS(policy: DirectiveHandlerResult.CancelPolicy): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun defaultEpdTimeoutMillis(epdTimeoutMillis: Long): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun enableBattery(provider: BatteryStatusProvider?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun enableBluetooth(bluetoothProvider: BluetoothProvider?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun enableDelegation(client: DelegationClient?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun enableDisplayLifeCycleManagement(enable: Boolean): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun enableExtension(client: ExtensionAgentInterface.Client?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun enableLocation(locationProvider: LocationProvider?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun enablePermission(permissionDelegate: PermissionDelegate?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun endPointDetector(endPointDetector: AudioEndPointDetector?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun endPointDetectorFilePath(endPointDetectorModelFilePath: String?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun systemExceptionDirectiveDelegate(delegate: ExceptionDirectiveDelegate?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun textExpectTypingController(controller: ExpectTypingHandlerInterface.Controller?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun textRedirectHandler(handler: TextAgentInterface.TextRedirectHandler?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun textSourceHandler(handler: TextAgentInterface.TextSourceHandler?): NuguAndroidClient.Builder
Content copied to clipboard
Link copied to clipboard
fun transportFactory(factory: TransportFactory): NuguAndroidClient.Builder
Content copied to clipboard