ModuleInstallRequest.Builder

public class ModuleInstallRequest.Builder


The builder for creating an instance of ModuleInstallRequest.

Summary

Public constructors

Public constructors

Builder

public Builder()

Public methods

addApi

@CanIgnoreReturnValue
public ModuleInstallRequest.Builder addApi(OptionalModuleApi api)

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

build

public ModuleInstallRequest build()

Returns a new ModuleInstallRequest object.

setListener

@CanIgnoreReturnValue
public ModuleInstallRequest.Builder setListener(InstallStatusListener listener)

Sets an InstallStatusListener to the ModuleInstallRequest.

The listener will be called on the main thread.

Parameters
InstallStatusListener listener

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

setListener

@CanIgnoreReturnValue
public ModuleInstallRequest.Builder setListener(InstallStatusListener listener, @Nullable Executor executor)

Sets an InstallStatusListener to the ModuleInstallRequest.

Parameters
InstallStatusListener listener

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

@Nullable Executor executor

The Executor to use to call the listener.