isConsoleNavigation() for Lightning Experience

Determines whether the app it’s used within uses console navigation. This method isn’t supported for Lightning Web Components (LWC).

To determine if a component is using console navigation with LWC, see IsConsoleNavigation context wire adapter.

None.

This component has a button that, when pressed, prints whether the current app is using console navigation.

Component code:

Controller code:

If the current app uses console navigation, this method returns a promise that resolves to true when successful, or false otherwise.