跳到主要内容

bn.offTabSwitched

offTabSwitched(cb): void

description remove tab item switch listener

example

const handler = (params) => {
console.log('tab swtiched: ', params);
}
bn.onTabSwitched(handler);
bn.offTabSwitched(handler);

Parameters

NameType
cbTabSwtichedCallback

Returns

void

TabSwtichedCallback

Ƭ TabSwtichedCallback: (data: TabSwitchedEventData) => void | Promise<void>

Type declaration

▸ (data): void | Promise<void>

Parameters

NameType
dataTabSwitchedEventData

Returns

void | Promise<void>


TabSwitchedEventData

Ƭ TabSwitchedEventData: Object

Type declaration

NameTypeDescription
type"api" | "tap"Action Types: - api: triggered by an bn.switchTab call. - tap: triggered by a manual click.
pagePathstring-
querystring-