Last active
November 15, 2019 07:28
-
-
Save savvisingh/be0e9a64a48f625b607fb5a3996fa429 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creates an instance of SplitInstallManager. | |
val splitInstallManager = SplitInstallManagerFactory.create(context) | |
// Creates a request to install a module. | |
val request = | |
SplitInstallRequest | |
.newBuilder() | |
.addModule("helpmodule") | |
.build() | |
splitInstallManager | |
.startInstall(request) | |
// You should also be able to gracefully handle | |
// request state changes and errors | |
.addOnSuccessListener { sessionId -> ... } | |
.addOnFailureListener { exception -> ... } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment