The Android Developer Challenge is back! Submit your idea before December 2.

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

From class java.lang.Object

Public methods

addLanguage

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

SplitInstallRequest.Builder addModule (String moduleName)

Adds a module to be installed.

Parameters
moduleName String

Returns
SplitInstallRequest.Builder

build

SplitInstallRequest build ()

Returns a new SplitInstallRequest object.

Returns
SplitInstallRequest