แก้ไข

แชร์ผ่าน


getAllTabs (app profile manager)

Returns the unique identifiers of all tabs for a specified session.

Syntax

Microsoft.Apm.getFocusedSession().getAllTabs();

Return value

Collection of tab identifiers.

Example

const session = Microsoft.Apm.getFocusedSession();
session.getAllTabs().forEach(id => {
	const tab = session.getTab(id);
	console.log(tab.title);
});