PropertyID.ScreensaverDatalogic Field |
public const Int32 ScreensaverDatalogic = new Intent(Intents.ACTION_CONFIGURATION_COMMIT); HashMap map
BlobProperty
and the concrete implementation is DatalogicScreensaver
.SCREENSAVER_COMPONENT
must be set to
"com.datalogic.settings.datalogicscreensaver/com.datalogic.settings.datalogicscreensaver.ScreensaverService".
Datalogic Screensaver continuously cycles through the screensaver list to display a carousel of screensavers.
Each screensaver is represented by a ScreensaverItem
which can either be an animated image or a video.
A ScreensaverItem
has the following parameters:
DatalogicScreensaver.DURATION_MIN_S
(0s) and DatalogicScreensaver.DURATION_MAX_S
(1h).
Values outside this range will be rounded to the nearest bound. This parameter is used only for images.ScreensaverAnimation
enumeration.
This parameter is used only for images.DatalogicScreensaver.DEFAULT_BACKGROUND_COLOR
) for the entire duration of the video. In this case, the background color,
duration, and animation parameters are ignored. So, to clearness use these default values:
DatalogicScreensaver.DEFAULT_BACKGROUND_COLOR
;
DatalogicScreensaver.DURATION_MIN_S
;
ScreensaverAnimation.UNDEFINED
.
"
must be escaped as \"
.Intent intent = new Intent(Intents.ACTION_CONFIGURATION_COMMIT); HashMap map = new HashMap(); map.put(PropertyID.SCREENSAVER_DATALOGIC, "[[\"image.jpg\",\"#000000FF\",\"60\",\"ZIG_ZAG\"],[\"video.jpg\",\"#00000000\",\"0\",\"UNDEFINED\"]]"); intent.putExtra(Intents.EXTRA_CONFIGURATION_CHANGED_MAP, map); mContext.sendBroadcast(intent);To delete all devices:
Intent intent = new Intent(Intents.ACTION_CONFIGURATION_COMMIT); HashMap map = new HashMap(); map.put(PropertyID.SCREENSAVER_DATALOGIC, "[]"); intent.putExtra(Intents.EXTRA_CONFIGURATION_CHANGED_MAP, map); mContext.sendBroadcast(intent);
Intents.ACTION_CONFIGURATION_COMMIT
), use the following serialized format:[["file","background","duration","animation"],["file","background","duration","animation"]]
,
"
and space must be escaped as "\,"
\"
and " "
respectively.adb shell am broadcast \ -a com.datalogic.device.intent.action.configuration.COMMIT \ --es com.datalogic.device.intent.extra.configuration.CHANGED_MAP 'SCREENSAVER_DATALOGIC=[[\"image.jpg\""\,"\"#0000FF\""\,"10"\,"\"ZIG_ZAG\"]"\,"[\"video.mp4\""\,"\"#00000000\""\,"0"\,"\"ZIG_ZAG\"]]'To delete all screensavers:
adb shell am broadcast \ -a com.datalogic.device.intent.action.configuration.COMMIT \ --es com.datalogic.device.intent.extra.configuration.CHANGED_MAP 'SCREENSAVER_DATALOGIC=[]'