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

Builder

class Builder
kotlin.Any
   ↳ androidx.navigation.dynamicfeatures.DynamicExtras.Builder

Builder that enables creation of DynamicExtras.

Summary

Public constructors

Builder that enables creation of DynamicExtras.

Public methods

DynamicExtras

Build DynamicExtras.

DynamicExtras.Builder

Set the Navigator.Extras.

DynamicExtras.Builder

Set the DynamicInstallMonitor.

Public constructors

<init>

Builder()

Builder that enables creation of DynamicExtras.

Public methods

build

fun build(): DynamicExtras

Build DynamicExtras.

Return
A new instance of DynamicExtras with all attributes set in the builder.

setDestinationExtras

fun setDestinationExtras(destinationExtras: Navigator.Extras): DynamicExtras.Builder

Set the Navigator.Extras.

Parameters
destinationExtras: Navigator.Extras The Navigator.Extras to set.
Return
This Builder.

setInstallMonitor

fun setInstallMonitor(monitor: DynamicInstallMonitor): DynamicExtras.Builder

Set the DynamicInstallMonitor.

Parameters
monitor: DynamicInstallMonitor The DynamicInstallMonitor to set.
Return
This Builder.