getCurrentApp method

Gets the hybrid app that is currently open.

Syntax

<static> getCurrentApp() → {hwc.HybridApp}

Returns

The hybrid app that is currently open.

[/reference/refbody/section/sectiondiv {""})

Type:

hwc.HybridApp

(sectiondiv]

Example

var openHybridApp = hwc.getCurrentApp();

Source

hwc-api.js, line 1675.