SplitController.Companion
object SplitController.Companion
Summary
Public methods |
|
---|---|
final @NonNull SplitController |
Gets the shared instance of the class. |
final void |
initialize(Context context, int staticRuleResourceId) Initializes the shared class instance with the split rules statically defined in an app-provided XML. |
Public methods
getInstance
public final @NonNull SplitController getInstance()
Gets the shared instance of the class.
initialize
public final void initialize(Context context, int staticRuleResourceId)
Initializes the shared class instance with the split rules statically defined in an app-provided XML. The rules will be kept for the lifetime of the application process.
It's recommended to set the static rules via an [androidx.startup.Initializer], so that they are applied early in the application startup before any activities appear.