to top
Datalogic APIs
public class

ScreensaverItem

extends Object
java.lang.Object
   ↳ com.datalogic.device.configuration.ScreensaverItem

Class Overview

ScreensaverItem represents an item in the screensavers list hosted by class DatalogicScreensaver and used by `Datalogic Screensaver` application when configured as the screensver manager.

Summary

Nested Classes
class ScreensaverItem.Builder Builder class for constructing instances of ScreensaverItem
Public Constructors
ScreensaverItem()
Public Methods
boolean equals(Object obj)
Checks if this screensaver item is equal to another object.
ScreensaverAnimation getAnimation()
Retrieves the animation type of the screensaver.
String getBackgroundColor()
Retrieves the background color of the screensaver.
int getDuration()
Retrieves the duration of the screensaver.
String getFile()
Retrieves the file path of the screensaver.
String toString()
Returns a string representation of the `ScreensaverItem` object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ScreensaverItem ()

Added in revision 44

Public Methods

public boolean equals (Object obj)

Checks if this screensaver item is equal to another object.

Parameters
obj the object to compare. Type: Object
Returns
  • true if the objects are equal, false otherwise. Type: boolean

public ScreensaverAnimation getAnimation ()

Added in revision 44

Retrieves the animation type of the screensaver.

Returns
  • the animation type of the screensaver. Type: ScreensaverAnimation

public String getBackgroundColor ()

Added in revision 44

Retrieves the background color of the screensaver.

Returns
  • the background color of the screensaver. Type: String

public int getDuration ()

Added in revision 44

Retrieves the duration of the screensaver.

Returns
  • the duration of the screensaver in seconds. Type: int

public String getFile ()

Added in revision 44

Retrieves the file path of the screensaver.

Returns
  • the file path of the screensaver. Type: String

public String toString ()

Returns a string representation of the `ScreensaverItem` object. The string includes the file path, background color, duration, and animation type of the screensaver item in a formatted structure.

Returns
  • A formatted string containing the following details:
    • file: The file path of the screensaver.
    • background color: The background color in hexadecimal format.
    • duration: The duration of the screensaver in seconds.
    • animation: The animation type of the screensaver.