DummySerp

A reference SERP provider.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val SerpProvider.Companion.id: String
open val id: String

A unique ID that identifies this provider.

Link copied to clipboard
open override val providerInfo: ProviderInfo

Information about this provider, like the name and description.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun ConfigComposable(modifier: Modifier, enableNextButton: MutableState<Boolean>, context: Context)

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).

Link copied to clipboard

Get the names of any sensitive credential keys, e.g. API keys and passwords.

Link copied to clipboard
open override fun getSensitiveCredentials(): Map<String, String>

Get any sensitive credentials, e.g. API keys and passwords.

Link copied to clipboard
open override fun search(query: String, setResults: (List<Result>) -> Unit, setError: (ErrorResponse) -> Unit): JsonObjectRequest?

Perform a web search for the provided query and add results to the provided list.

Link copied to clipboard
open override fun useSensitiveCredentials(credentials: Map<String, String>)

Gets called by the app after it loads the user's sensitive credentials (e.g. API keys and passwords) for this provider.