Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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 some splits.

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()

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 languages need to be supported by the Android device this code is run on.

This API is not supported for instant apps.

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
SplitInstallRequest