SplitInstallManager#getInstalledLanguages()
val splitInstallManager = SplitInstallManagerFactory.create(context) val langs: Set<String> = splitInstallManager.installedLanguages
SplitInstallRequest.Builder#addLanguage(java.util.Locale)
val installRequestBuilder = SplitInstallRequest.newBuilder() installRequestBuilder.addLanguage(Locale.forLanguageTag("pl")) splitInstallManager.startInstall(installRequestBuilder.build())
SplitInstallSessionStatus.REQUIRES_USER_CONFIRMATION
Activity#onActivityResult()
SplitInstallManager#startConfirmationDialogForResult()
startIntentSender()
SplitInstallSessionState#resolutionIntent()
AndroidManifest.xml
dist:instant="true"
<manifest ... xmlns:dist="http://schemas.android.com/apk/distribution"> <dist:module dist:instant="true" /> ... </manifest>
onDemand="false"
SplitInstallManager#deferredUninstall()