Class: LockScreenNotifications

LockScreenNotifications

new LockScreenNotifications()

Manage Notifications in Lockscreen: Handle notification changes from Notifications, and update Lockscreen visuals accordingly.

Manage Notifications in Lockscreen: Handle notification changes from Notifications, and update Lockscreen visuals accordingly.

Source:

Methods

(private) _setArrowVisibility(top, both)

Sets the arrow's visibility.

Sets the arrow's visibility.

This:
Parameters:
Name Type Description
top

Boolen shows top solid mask or not

both

Boolen shows top-and-bottom gradient masks or not

Source:

(private) _setMaskVisibility(top, both)

Sets the masks' visibility.

Sets the masks' visibility.

This:
Parameters:
Name Type Description
top

Boolen shows top solid mask or not

both

Boolen shows top-and-bottom gradient masks or not

Source:

adjustContainerVisualHints()

adjust the container's visual hints: masks and "more notification" arrow

.

adjust the container's visual hints: masks and "more notification" arrow

This:
Source:

bindLockScreen(bindLockScreen)

Bind lockscreen onto this module

.

Bind lockscreen onto this module

This:
Parameters:
Name Type Description
bindLockScreen

the lockScreen instance

Source:

collapseNotifications()

We use a smaller notifications container when we have a media player widget on the lockscreen.

We use a smaller notifications container when we have a media player widget on the lockscreen. This function collapses the container.

This:
Source:

expandNotifications()

...and this function expands the container.

...and this function expands the container.

This:
Source:

hideColoredMaskBG()

When we don't have notifications, use the simple gradient as lockscreen's masked background

.

When we don't have notifications, use the simple gradient as lockscreen's masked background

This:
Source:

showColoredMaskBG()

When we have notifications, show bgcolor from wallpaper Remove the simple gradient at the same time

.

When we have notifications, show bgcolor from wallpaper Remove the simple gradient at the same time

This:
Source: