Class: LockScreenWindowManager

LockScreenWindowManager

new LockScreenWindowManager()

Manage LockScreenWindow apps.

Manage LockScreenWindow apps. This is a subset of the AppWindow manager, and will not handle most cases the later one would handle. Only those meaningful cases, like secure app open, close, requesting kill all apps or turn the secure mode on/off, would be handled. However, if we need to handle cases in the future, we would extend this manager.

So far the LockScreenWindowManager would only manager 1 secure app at once, but there're already some designations for multiple apps.

Source:

Methods

(private) closeApp(instant)

Close the lockscreen app.

Close the lockscreen app. If it's not enabled, would do nothing.

This:
Parameters:
Name Type Description
instant boolean

true if instantly close.

Source:

(private) createWindow() → {LockScreenWindow}

When screenchange hanneped, create LockScreen and LockScreenWindow if it is needed.

When screenchange hanneped, create LockScreen and LockScreenWindow if it is needed.

This:
Source:
Returns:
Type
LockScreenWindow

(private) handleEnable()

First time we launch, we must check the init value of enabled, to see if we need to open the window.

First time we launch, we must check the init value of enabled, to see if we need to open the window.

This:
Source:

handleEvent()

This:
Source:
Listens to Events:
  • lockscreen-appcreated - when a lockscreen app got created, it would fire this event.event:
  • lockscreen-appterminated - when a lockscreen app got really closed, it would fire this event.event:
  • lockscreen-apprequestclose - when a lockscreen app has been called to close itself, the event would be firedevent:
  • event:screenchange - means to initialize the lockscreen and its window

(private) initElements()

This:
Source:

(private) openApp()

Open the lockscreen app.

Open the lockscreen app. If it's necessary, would create a new window. If it's not enabled, would do nothing.

This:
Source:

(private) publish()

Message passing method.

Message passing method. Would publish to the whole System app.

This:
Source:

(private) registerApp()

This:
Source:

(private) startEventListeners()

Hook listeners of events this manager interested in.

Hook listeners of events this manager interested in.

This:
Source:

(private) startObserveSettings()

Hook observers of settings to allow or ban window opening.

Hook observers of settings to allow or ban window opening.

This:
Source:

(private) stopEventListeners()

Remove listeners of events this manager interested in.

Remove listeners of events this manager interested in.

This:
Source:

(private) unregisterApp()

This:
Source: