isBackgroundFormVisible
Description
Returns whether the specified background form is loaded and currently visible on screen.
Parameters
| Parameter | Type | Description |
|---|---|---|
| formPath | String | Path of the form to check |
Returns
| Type | Description |
|---|---|
| bool | true when the form is loaded and visible, false when it is not loaded or is hidden |
Notes
- To check only whether the form is loaded, use
isBackgroundFormLoaded(). - After a
hideBackgroundForm()call, this returnsfalse. - A path that is not loaded always returns
false.
Example
// Hide it only when it is visible
if ($app.isBackgroundFormVisible("alarm/watcher")) {
$app.hideBackgroundForm("alarm/watcher");
}
// Log the state
$log.i("watcher 표시 중:", $app.isBackgroundFormVisible("alarm/watcher"));
Related
$app.isBackgroundFormLoaded(formPath)— Checks only whether it is loaded$app.hideBackgroundForm(formPath)— Hides the form UI$app.showBackgroundForm(formPath)— Shows the form UI