java.lang.Object | |
↳ | com.datalogic.device.display.DLSecondDisplayManager |
2nd Display is the LED display panel on the top of Datalogic Memor20 device, near to the ScanEngine.
It allows to show incoming call and App notifications. The DLSecondDisplayManager
allows
to configure and manage the 2nd Display, in order to enable/disable the whole feature or to restrict
only to allowed Apps to show notifications on 2nd Display.
In order to show a notification on the 2nd Display, an App shall be allowed with addPackage(String)
,
that adds the given installed App in the list of allowed Apps. After that, when that App sends an Android notification,
it will be shown on 2nd Display. The removePackage(String)
, on the contrary,
allows to remove an installed App from the list of allowed Apps.
By default, all installed Apps are allowed to show notifications on 2nd Display.
So, the setNewAppEnabled(boolean)
API allows to change the default behavior
for the Apps installed at a later stage, while the current configuration for the installed Apps is preserved.
Android documentation Create a Notification and Create and Manage Notification Channels provide helpful information to create and manage notifications.
Moreover, to have a better understanding of 2nd Display and notification management, the 2nd Display Sample is highly recommended.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Allows a package to show its own content on the 2nd Display.
| |||||||||||
Returns the list of allowed packages to show own Android notifications on the 2nd Display.
| |||||||||||
Return an integer value that represents the brightness percentage level on 2nd display
| |||||||||||
Returns an instance of the
DLSecondDisplayManager . | |||||||||||
Return a boolean value that represents if new Apps will show notifications on 2nd display
| |||||||||||
Return a boolean value that represents if rotation is enabled on 2nd display
| |||||||||||
Return an enum that represents 2nd display rotation speed
| |||||||||||
Return an enum that represents 2nd display switch-off timeout
| |||||||||||
Returns the allowed/disallowed configuration for the given package to show its own content ont the 2nd Display.
| |||||||||||
Returns the availability of the 2nd Display feature.
| |||||||||||
Returns the enabled/disabled status of the 2nd Display.
| |||||||||||
Disable the given package to show its own content on the 2nd Display.
| |||||||||||
Set brightness level on 2nd display
| |||||||||||
Enable or disable notifications on 2nd display for all the new Apps
| |||||||||||
Set rotation on 2nd display
| |||||||||||
Set 2nd display rotation speed
| |||||||||||
Enables or disables the 2nd Display.
| |||||||||||
Set switch-off timeout on 2nd display
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Allows a package to show its own content on the 2nd Display. This method allows Android notifications sent by the given package to be shown on the 2nd Display.
packageName | Name of the package to be added to the list of packages allowed to show notifications on the 2nd display. |
---|
boolean
True if the operation complete successfully, False otherwise (eg. package not found).in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Returns the list of allowed packages to show own Android notifications on the 2nd Display.
in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Return an integer value that represents the brightness percentage level on 2nd display
in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Returns an instance of the DLSecondDisplayManager
.
This method provides the reference to the unique instance of
2nd Display Manager.
in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Return a boolean value that represents if new Apps will show notifications on 2nd display
boolean
True if Apps can show notification, false otherwise.in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Return a boolean value that represents if rotation is enabled on 2nd display
boolean
Boolean value that represents if rotation is enabled on 2nd display.in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Return an enum that represents 2nd display rotation speed
in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Return an enum that represents 2nd display switch-off timeout
in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Returns the allowed/disallowed configuration for the given package to show its own content ont the 2nd Display. This method can be used to check if Android notifications sent by the given package are allowed or disallowed to be shown on the 2nd Display.
packageName | Name of the package to be checked. |
---|
boolean
True if the package is allowed, False otherwise (eg. package not found).in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Returns the availability of the 2nd Display feature. This method can be used to know if the device supports the 2nd Display feature.
boolean
True if the device supports the 2nd Display, False otherwise,
or throws anException
in case of failure.
Returns the enabled/disabled status of the 2nd Display. This method can be used to know the current enabled/disabled status of the whole 2nd Display feature. When 2nd Display is enabled, it works according to its configuration.
boolean
True if the 2nd Display is enabled, False otherwise.in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Disable the given package to show its own content on the 2nd Display. This method disallows Android notifications sent by the given package to be shown on the 2nd Display.
packageName | Name of the package to be removed to the list of packages allowed to show notifications on the 2nd display. |
---|
boolean
True if the operation complete successfully, False otherwise (eg. package not found).in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Set brightness level on 2nd display
brightness | Brightness percentage level for 2nd display: Values lower than 0 or higher than 100 will be cropped respectevely to 0 and 100. |
---|
boolean
True if Apps can show notification, false otherwise.in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Enable or disable notifications on 2nd display for all the new Apps
isEnabled | Boolean parameter that represents if new Apps should show notifications on 2nd display |
---|
boolean
True if Apps can show notification, false otherwise.in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Set rotation on 2nd display
enable | Boolean parameter that represents if rotation is enabled on 2nd display |
---|
boolean
True if Apps can set rotation, false otherwise.in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Set 2nd display rotation speed
speed | Enum that represents the desired 2nd display rotation speed. |
---|
boolean
True if Apps can set the rotation speed, false otherwise.in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Enables or disables the 2nd Display. This method can be used to enable or disable the whole 2nd Display feature.
enable | True to enable the 2nd Display, False to disable it. |
---|
boolean
True if the operation complete successfully, False otherwise.in case of error, when exceptions are enabled through the ErrorManager singleton.
|
Set switch-off timeout on 2nd display
timeout | Enum that represents 2nd display rotation speed. |
---|
boolean
True if Apps can set the switch-off timeout, false otherwise.in case of error, when exceptions are enabled through the ErrorManager singleton.
|