IITC.statusbar.portal

Selected portal status module - handles information about the currently selected portal Provides data for both mobile display and app integration

Methods

static getData(guid) → {Object|null}

Gets detailed data about a specific portal.

Parameters:
Name Type Description
guid string

The portal's globally unique identifier

Returns:
Object | null -

Structured portal data including team, level, health, resonators, and loading state, or null if the portal is not found

static render(data) → {string}

Renders HTML representation of portal status.

Parameters:
Name Type Description
data Object

Portal data from getData()

Returns:
string -

HTML string representing the portal status including level badge, health, title, and resonator visualization

static update(selectedPortalDataopt)

Updates portal information in the UI and mobile app (if applicable).

Parameters:
Name Type Attributes Description
selectedPortalData Object <optional>

Object containing the selectedPortalGuid

Fires:
  • app.event:setPortalStatus - When in app mode