to top
Datalogic APIs
public class

DatalogicScreensaver

extends SerializableBlob
java.lang.Object
   ↳ com.datalogic.device.configuration.SerializableBlob
     ↳ com.datalogic.device.configuration.DatalogicScreensaver

Class Overview

DatalogicScreensaver implements the BlobProperty that allows to manage Screensaver configuration if `Datalogic Screensaver` app is used to show screensaver on the device.

Summary

Nested Classes
class DatalogicScreensaver.Builder Builder class for constructing instances of DatalogicScreensaver
Constants
String DEFAULT_BACKGROUND_COLOR Default value for ScreensaverAnimation background.
int DURATION_MAX_S Maximum value for ScreensaverAnimation duration in seconds.
int DURATION_MIN_S Minimum value for ScreensaverAnimation duration in seconds.
Public Constructors
DatalogicScreensaver()
Constructor
DatalogicScreensaver(List<ScreensaverItem> screensaver)
Constructor
Public Methods
void add(List<ScreensaverItem> items)
Add a list of screensavers to screensavers list
void add(ScreensaverItem item)
Add a screensaver to screensavers list
void add(int index, ScreensaverItem item)
Add a screensaver to screensavers list at a specific index.
void clear()
Clear screensavers list
List<ScreensaverItem> getScreensaverItems()
Retrieve the list of screensavers.
int indexOf(ScreensaverItem item)
Finds the index of a screensaver in the list.
boolean move(ScreensaverItem item, int position)
Moves a screensaver item to a specified position in the list.
boolean remove(ScreensaverItem item)
Remove a screensaver from screensavers list.
[Expand]
Inherited Methods
From class com.datalogic.device.configuration.SerializableBlob
From class java.lang.Object

Constants

public static final String DEFAULT_BACKGROUND_COLOR

Added in revision 44

Default value for ScreensaverAnimation background.

Constant Value: "#00000000"

public static final int DURATION_MAX_S

Added in revision 44

Maximum value for ScreensaverAnimation duration in seconds.

Constant Value: 3600 (0x00000e10)

public static final int DURATION_MIN_S

Added in revision 44

Minimum value for ScreensaverAnimation duration in seconds.

Constant Value: 0 (0x00000000)

Public Constructors

public DatalogicScreensaver ()

Added in revision 44

Constructor

public DatalogicScreensaver (List<ScreensaverItem> screensaver)

Added in revision 44

Constructor

Parameters
screensaver List

Public Methods

public void add (List<ScreensaverItem> items)

Added in revision 44

Add a list of screensavers to screensavers list

Parameters
items list of the screensaver to add

public void add (ScreensaverItem item)

Added in revision 44

Add a screensaver to screensavers list

Parameters
item screensaver to add

public void add (int index, ScreensaverItem item)

Added in revision 44

Add a screensaver to screensavers list at a specific index.

Parameters
index index where the item will be inserted
item screensaver to add

public void clear ()

Added in revision 44

Clear screensavers list

public List<ScreensaverItem> getScreensaverItems ()

Added in revision 44

Retrieve the list of screensavers.

Returns
  • List .

public int indexOf (ScreensaverItem item)

Added in revision 44

Finds the index of a screensaver in the list.

Parameters
item the screensaver to find

public boolean move (ScreensaverItem item, int position)

Added in revision 44

Moves a screensaver item to a specified position in the list. If the specified position is out of bounds, it will be adjusted to the nearest valid index (0 if below the lower bound, or the last index if above the upper bound).

Parameters
item the screensaver item to move
position the target position for the item
Returns
  • true if the move was successful; false if the item was not found in the list

public boolean remove (ScreensaverItem item)

Added in revision 44

Remove a screensaver from screensavers list.

Parameters
item the screensaver to remove
Returns
  • boolean