Subscribe to Aura Application Events in LWC
Subscribe to Aura application events using their corresponding Lightning message channels.
Aura application events are received by all rendered Aura components, even those on background tabs. By default, the Lightning message channel events are received by active components only, such as those on the foreground tab or in activated utility bar components. Your component can receive all Lightning message channel events by subscribing with the optional APPLICATION_SCOPE parameter. For more information, see Define the Scope of the Message Service.
-
lightning__tabClosed
A Lightning message channel that corresponds to the lightning:tabClosed Aura app event.
-
lightning__tabCreated
A Lightning message channel that corresponds to the lightning:tabCreated Aura app event. This message channel is available for Lightning web components used within a Lightning console app.
-
lightning__tabFocused
A Lightning message channel that corresponds to the lightning:tabFocused Aura app event. This message channel is available for Lightning web components used within a Lightning console app.
-
lightning__tabRefreshed
A Lightning message channel that corresponds to the lightning:tabRefreshed Aura app event. This message channel is available for Lightning web components used within a Lightning console app.
-
lightning__tabReplaced
A Lightning message channel that corresponds to the lightning:tabReplaced Aura app event. This message channel is available for Lightning web components used within a Lightning console app.
-
lightning__tabUpdated
A Lightning message channel that corresponds to the lightning:tabUpdated Aura app event. This message channel is available for Lightning web components used within a Lightning console app.