SplitInstallRequest.Builder

public static class SplitInstallRequest.Builder
extends Object

java.lang.Object
   ↳ com.google.android.play.core.splitinstall.SplitInstallRequest.Builder


A builder for a request to install split APKs.

Summary

Public methods

SplitInstallRequest.Builder addLanguage(Locale language)

Adds a language to be installed.

SplitInstallRequest.Builder addModule(String moduleName)

Adds a module to be installed.

SplitInstallRequest build()

Returns a new SplitInstallRequest object.

Inherited methods

Public methods

addLanguage

public SplitInstallRequest.Builder addLanguage (Locale language)

Adds a language to be installed.

You can specify locales in [lang]-[COUNTRY] (e.g. "en-AU") and [lang] (e.g. "ru") format. The Android device that is running the app must support the language.

For Instant Apps, this API is not supported.

Parameters
language Locale

Returns
SplitInstallRequest.Builder

addModule

public SplitInstallRequest.Builder addModule (String moduleName)

Adds a module to be installed.

Parameters
moduleName String

Returns
SplitInstallRequest.Builder

build

public SplitInstallRequest build ()

Returns a new SplitInstallRequest object.

Returns
SplitInstallRequest