android-components / mozilla.components.feature.search / SearchUseCases / DefaultSearchUseCase

# DefaultSearchUseCase

`class DefaultSearchUseCase` (source)

### Constructors

<init> | `DefaultSearchUseCase(context: Context, searchEngineManager: SearchEngineManager, sessionManager: SessionManager)`

### Functions

invoke | `fun invoke(searchTerms: String, session: Session = sessionManager.selectedSessionOrThrow): Unit` Triggers a search using the default search engine for the provided search terms. `fun invoke(searchTerms: String, source: Source, selected: Boolean = true, private: Boolean = false): Unit` Triggers a search on a new session, using the default search engine for the provided search terms.