Skip to main content

isBackgroundFormVisible

Description​

Returns whether the specified background form is loaded and currently visible on screen.

Parameters​

ParameterTypeDescription
formPathStringPath of the form to check

Returns​

TypeDescription
booltrue 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 returns false.
  • 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"));
  • $app.isBackgroundFormLoaded(formPath) — Checks only whether it is loaded
  • $app.hideBackgroundForm(formPath) — Hides the form UI
  • $app.showBackgroundForm(formPath) — Shows the form UI