Skip to content

Instantly share code, notes, and snippets.

@savvisingh
Last active November 15, 2019 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savvisingh/be0e9a64a48f625b607fb5a3996fa429 to your computer and use it in GitHub Desktop.
Save savvisingh/be0e9a64a48f625b607fb5a3996fa429 to your computer and use it in GitHub Desktop.
// 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