ModuleInstallRequest.Builder

class ModuleInstallRequest.Builder


The builder for creating an instance of ModuleInstallRequest.

Summary

Public constructors

Public constructors

Builder

Builder()

Public functions

addApi

@CanIgnoreReturnValue
fun addApi(api: OptionalModuleApi!): ModuleInstallRequest.Builder!

Adds an OptionalModuleApi so that the optional module required by this API can be installed.

build

fun build(): ModuleInstallRequest!

Returns a new ModuleInstallRequest object.

setListener

@CanIgnoreReturnValue
fun setListener(listener: InstallStatusListener!): ModuleInstallRequest.Builder!

Sets an InstallStatusListener to the ModuleInstallRequest.

The listener will be called on the main thread.

Parameters
listener: InstallStatusListener!

The InstallStatusListener to receive ModuleInstallStatusUpdate to monitor the progress of optional module installation progress.

setListener

@CanIgnoreReturnValue
fun setListener(listener: InstallStatusListener!, executor: Executor?): ModuleInstallRequest.Builder!

Sets an InstallStatusListener to the ModuleInstallRequest.

Parameters
listener: InstallStatusListener!

The InstallStatusListener to receive ModuleInstallStatusUpdate to monitor the progress of optional module installation progress.

executor: Executor?

The Executor to use to call the listener.