Skip to content

Instantly share code, notes, and snippets.

@igorescodro
Created January 13, 2020 12:45
Show Gist options
  • Save igorescodro/d6e10ec480448ababf104643ab438a60 to your computer and use it in GitHub Desktop.
Save igorescodro/d6e10ec480448ababf104643ab438a60 to your computer and use it in GitHub Desktop.
Developing your own Dynamic Feature
manager.registerListener {
when (it.status()) {
SplitInstallSessionStatus.DOWNLOADING -> showToast("Downloading feature")
SplitInstallSessionStatus.INSTALLED -> {
showToast("Feature ready to be used")
updateDynamicFeatureButtonState()
}
else -> { /* Do nothing in this example */ }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment