The second Android 11 Developer Preview is now available, test it out and share your feedback.

DynamicInstallManager

open class DynamicInstallManager
kotlin.Any
   ↳ androidx.navigation.dynamicfeatures.DynamicInstallManager

Install manager for dynamic features.

Enables installation of dynamic features for both installed and instant apps.

Summary

Public constructors

<init>(context: Context, splitInstallManager: SplitInstallManager)

Install manager for dynamic features.

Public methods

Boolean

NavDestination?
performInstall(destination: NavDestination, args: Bundle?, extras: DynamicExtras?, moduleName: String)

Public constructors

<init>

DynamicInstallManager(
    context: Context,
    splitInstallManager: SplitInstallManager)

Install manager for dynamic features.

Enables installation of dynamic features for both installed and instant apps.

Public methods

needsInstall

fun needsInstall(module: String): Boolean
Parameters
module: String The module to install.
Return
Whether the requested module needs installation.

performInstall

fun performInstall(
    destination: NavDestination,
    args: Bundle?,
    extras: DynamicExtras?,
    moduleName: String
): NavDestination?