public class

CradleManager

extends Object
java.lang.Object
   ↳ com.datalogic.extension.selfshopping.cradle.CradleManager

Class Overview

This class is used to return the current Cradle API, depending on the targeted device.

Summary

Public Constructors
CradleManager()
Public Methods
static Cradle getCradle()
This method returns an instance of the specific Cradle available depending on the current device, or null in case no Cradle is currently supported.
static Trolley getTrolley()
This method returns an instance of the specific Trolley available depending on the current device, or null in case no Trolley is currently supported.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CradleManager ()

Added in revision 1

Public Methods

public static Cradle getCradle ()

Added in revision 1

This method returns an instance of the specific Cradle available depending on the current device, or null in case no Cradle is currently supported.

Returns
  • A generic Cradle instance that can be cast depending on the current Cradle type, or null in case no Cradle is available.

public static Trolley getTrolley ()

Added in revision 3

This method returns an instance of the specific Trolley available depending on the current device, or null in case no Trolley is currently supported.

Returns
  • A generic Trolley instance, or null in case no Trolley is available.