secureApplication method

void secureApplication()

Implementation

void secureApplication() {
  onVC?.cancel();
  onVC = html.document.onVisibilityChange.listen(visibilityEvent);
  secured = true;
}