ConfigComposable

open fun ConfigComposable(modifier: Modifier, toggleNextButton: (Boolean) -> Unit, context: Context, requestCredentials: (Array<Credential>, (Map<Credential, String>) -> Unit) -> Unit)

A Composable which provides options to set up the SERP provider (e.g. input fields for any required API keys or username and password fields).

Shown in the Set up search page of the setup wizard.

Parameters

modifier

provided by the app and should be applied to the composable's root view (e.g. using Modifier.then()).

toggleNextButton

provided by the app, enables the Next button in the setup wizard if true.

context

the context of the activity this composable is hosted in, provided by the app.

requestCredentials

provided by the app, call if you need extra authentication (such as a token or username/password), passing in the required credentials and an action to do when the request dialog is closed.