onActiveChanged property
EventStream<OnActiveChangedEvent>
get
onActiveChanged
Fires when the selected tab in a window changes. Note that the tab's URL
may not be set at the time this event fired, but you can listen to
tabs.onUpdated
events so as to be notified when a URL is set.
Implementation
EventStream<OnActiveChangedEvent> get onActiveChanged =>
$js.chrome.tabs.onActiveChanged.asStream(($c) => (
int tabId,
$js.OnActiveChangedSelectInfo selectInfo,
) {
return $c(OnActiveChangedEvent(
tabId: tabId,
selectInfo: OnActiveChangedSelectInfo.fromJS(selectInfo),
));
}.toJS);