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.
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 |
(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 |
adjustContainerVisualHints()
adjust the container's visual hints: masks and "more notification" arrow
.adjust the container's visual hints: masks and "more notification" arrow
This:
bindLockScreen(bindLockScreen)
Bind lockscreen onto this module
.Bind lockscreen onto this module
This:
Parameters:
Name | Type | Description |
---|---|---|
bindLockScreen |
the lockScreen instance |
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:
expandNotifications()
...and this function expands the container.
...and this function expands the container.
This:
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:
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