Builder

class Builder(    context: Context,     authDelegate: AuthDelegate,     defaultAudioProvider: AudioProvider)

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)

Functions

Link copied to clipboard
fun addAgentFactory(namespace: String, factory: AgentFactory<*>): NuguAndroidClient.Builder
Link copied to clipboard
Link copied to clipboard
fun asrEncoder(asrEncoder: Encoder): NuguAndroidClient.Builder
Link copied to clipboard
Link copied to clipboard
fun beepDirectiveDelegate(delegate: BeepDirectiveDelegate?): NuguAndroidClient.Builder
Link 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
fun build(): NuguAndroidClient
Link copied to clipboard
Link copied to clipboard
fun clientVersion(clientVersion: String): NuguAndroidClient.Builder
Link copied to clipboard
fun defaultDisplayDuration(duration: Long): NuguAndroidClient.Builder
Link copied to clipboard
fun defaultEpdTimeoutMillis(epdTimeoutMillis: Long): NuguAndroidClient.Builder
Link copied to clipboard
fun dialogUXStateTransitionDelay(delay: Long): NuguAndroidClient.Builder
Link copied to clipboard
fun enableAudioPlayer(enable: Boolean): NuguAndroidClient.Builder
Link copied to clipboard
fun enableBattery(provider: BatteryStatusProvider?): NuguAndroidClient.Builder
Link copied to clipboard
fun enableBluetooth(bluetoothProvider: BluetoothProvider?): NuguAndroidClient.Builder
Link copied to clipboard
fun enableChips(enable: Boolean): NuguAndroidClient.Builder
Link copied to clipboard
fun enableDelegation(client: DelegationClient?): NuguAndroidClient.Builder
Link copied to clipboard
fun enableDisplay(enable: Boolean): NuguAndroidClient.Builder
Link copied to clipboard
fun enableDisplayLifeCycleManagement(enable: Boolean): NuguAndroidClient.Builder
Link copied to clipboard
Link copied to clipboard
fun enableLocation(locationProvider: LocationProvider?): NuguAndroidClient.Builder
Link copied to clipboard
fun enableMessage(client: MessageClient?): NuguAndroidClient.Builder
Link copied to clipboard
fun enableMicrophone(microphone: Microphone?): NuguAndroidClient.Builder
Link copied to clipboard
fun enableNudge(enable: Boolean): NuguAndroidClient.Builder
Link copied to clipboard
fun enablePermission(permissionDelegate: PermissionDelegate?): NuguAndroidClient.Builder
Link copied to clipboard
fun enableScreen(screen: Screen?): NuguAndroidClient.Builder
Link copied to clipboard
fun enableSound(provider: SoundProvider?): NuguAndroidClient.Builder
Link copied to clipboard
fun endPointDetector(endPointDetector: AudioEndPointDetector?): NuguAndroidClient.Builder
Link copied to clipboard
fun endPointDetectorFilePath(endPointDetectorModelFilePath: String?): NuguAndroidClient.Builder
Link copied to clipboard
fun logger(logger: LogInterface): NuguAndroidClient.Builder
Link copied to clipboard
fun playerFactory(factory: PlayerFactory): NuguAndroidClient.Builder
Link copied to clipboard
fun pref(preferences: PreferencesInterface): NuguAndroidClient.Builder
Link copied to clipboard
fun speakerFactory(factory: SpeakerFactory): NuguAndroidClient.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun transportFactory(factory: TransportFactory): NuguAndroidClient.Builder