android-components / mozilla.components.feature.tabs / TabsUseCases / AddNewTabUseCase / invoke

invoke

fun invoke(url: String, selectTab: Boolean = true, startLoading: Boolean = true, parent: Session? = null): Session (source)

Add a new tab and load the provided URL.

Parameters

url - The URL to be loaded in the new tab.

selectTab - True (default) if the new tab should be selected immediately.

startLoading - True (default) if the new tab should start loading immediately.