Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

SplitCompat

public class SplitCompat
extends Object

java.lang.Object
   ↳ com.google.android.play.core.splitcompat.SplitCompat


SplitCompat enables access to splits installed through SplitInstallManager before application restart.

Summary

Public methods

static boolean install(Context context)

Installs emulated splits.

Inherited methods

From class java.lang.Object

Public methods

install

boolean install (Context context)

Installs emulated splits. If used at all in an application, this call must be invoked at program startup with the application context (see SplitCompatApplication). It should also be used in any activities inside dynamic feature modules using this pattern: protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
SplitCompat.install(this);
}

Parameters
context Context

Returns
boolean whether split install was successful; false will be returned for platforms that cannot support SplitCompat (Android Kitkat and earlier)