configure

suspend fun configure(configuration: LinkController.Configuration): Result<Unit>

Configure the controller with a Configuration.

The state will reset and the Link session will be reloaded to reflect the new configuration.

Call this on every ViewModel initialization — including after process death — before Presenter.present. Presenting before a successful configure yields PresentResult.Failed with a MissingConfigurationException.

Return

The result of the configuration.

Parameters

configuration

The Configuration to use for Link operations.