createSession
inline fun PackageInstaller.createSession(baseApk: Uri, configure: InstallParametersDsl.() -> Unit = {}): ProgressSession<InstallFailure>
Creates an install session. The returned session is in pending state.
Split packages are not supported on API levels < 21. Attempting to add additional APKs on these API levels may produce SplitPackagesNotSupportedException.
Return
Parameters
baseApk
URI of base APK.
configure
configures install session.
See also
inline fun PackageInstaller.createSession(apks: Iterable<Uri>, configure: InstallParametersDsl.() -> Unit = {}): ProgressSession<InstallFailure>
Creates an install session. The returned session is in pending state.
Split packages are not supported on API levels < 21. Attempting to add additional APKs on these API levels may produce SplitPackagesNotSupportedException.
Return
Parameters
apks
URIs of split APKs.
configure
configures install session.