setActiveTabId

abstract fun setActiveTabId(tabId: String, url: String? = null, sourceTabId: String? = null, sourceTabUrl: String? = null)

Sets the active tab. It takes as parameters: mandatory tabId - The id of the current visible tab. optional url - The url loaded in the current tab, null if no url was loaded (empty tab). optional sourceTabId - The id of the tab from which the current tab was opened, null if a new tab option was used. optional sourceTabUrl - The url loaded in the tab from which the current tab was opened, null if a new tab option was used.