android-components / mozilla.components.feature.session / SessionUseCases / DefaultLoadUrlUseCase / invoke

invoke

operator fun invoke(url: String, flags: LoadUrlFlags): Unit (source)

Overrides LoadUrlUseCase.invoke

Loads the provided URL using the currently selected session. If there’s no selected session a new session will be created using onNoSession.

Parameters

url - The URL to be loaded using the selected session.

flags - The LoadUrlFlags to use when loading the provided url.operator fun invoke(url: String, session: Session? = sessionManager.selectedSession, flags: LoadUrlFlags = LoadUrlFlags.none()): Unit (source)

Loads the provided URL using the specified session. If no session is provided the currently selected session will be used. If there’s no selected session a new session will be created using onNoSession.

Parameters

url - The URL to be loaded using the provided session.

session - the session for which the URL should be loaded.

flags - The LoadUrlFlags to use when loading the provided url.