PosInformation

public class PosInformation

Information about the system that is currently using the PSDK. This is different from the PsdkDeviceInformation, which provides information about the Payment Terminal.

Fields

ADDRESS_KEY

public static final String ADDRESS_KEY

The key to store the address field.

APPLICATION_CERTIFICATION_CODE_KEY

public static final String APPLICATION_CERTIFICATION_CODE_KEY

The key to store the applicationCertificationCode field.

APPLICATION_NAME_KEY

public static final String APPLICATION_NAME_KEY

The key to store the applicationName field.

APPLICATION_PUBLISHER_KEY

public static final String APPLICATION_PUBLISHER_KEY

The key to store the applicationPublisher field.

APPLICATION_VERSION_KEY

public static final String APPLICATION_VERSION_KEY

The key to store the applicationVersion field.

DEVICE_ID_KEY

public static final String DEVICE_ID_KEY

The key to store the deviceId field.

DEVICE_MANUFACTURER_KEY

public static final String DEVICE_MANUFACTURER_KEY

The key to store the deviceManufacturer field.

DEVICE_MODEL_KEY

public static final String DEVICE_MODEL_KEY

The key to store the deviceModel field.

DEVICE_OS_NAME_KEY

public static final String DEVICE_OS_NAME_KEY

The key to store the deviceOsName field.

DEVICE_OS_VERSION_KEY

public static final String DEVICE_OS_VERSION_KEY

The key to store the deviceOsVersion field.

DEVICE_SERIAL_NUMBER_KEY

public static final String DEVICE_SERIAL_NUMBER_KEY

The key to store the deviceSerialNumber field.

FREE_MEMORY_KEY

public static final String FREE_MEMORY_KEY

The key to store the freeMemory field.

SCREEN_HEIGHT_KEY

public static final String SCREEN_HEIGHT_KEY

The key to store the screenHeight field.

SCREEN_WIDTH_KEY

public static final String SCREEN_WIDTH_KEY

The key to store the screenWidth field.

SUPPORTS_BLUETOOTH_KEY

public static final String SUPPORTS_BLUETOOTH_KEY

The key to store the supportsBluetooth field.

TOTAL_MEMORY_KEY

public static final String TOTAL_MEMORY_KEY

The key to store the totalMemory field.

Methods

create

public static PosInformation create()

getAddress

public String getAddress()

The POS address used for the connection to the terminal.

getApplicationCertificationCode

public String getApplicationCertificationCode()

The code that is granted to some applications after certifying with a specific host.

getApplicationName

public String getApplicationName()

The name of the application that is using the PSDK.

getApplicationPublisher

public String getApplicationPublisher()

The name of the person or company that builds the application that is using the PSDK.

getApplicationVersion

public String getApplicationVersion()

The version of the application that is using the PSDK.

getDeviceId

public String getDeviceId()

The logical ID of the device.

getDeviceManufacturer

public String getDeviceManufacturer()

The hardware manufacturer of the device.

getDeviceModel

public String getDeviceModel()

The hardware model of the device.

getDeviceOsName

public String getDeviceOsName()

The name of the operating system.

getDeviceOsVersion

public String getDeviceOsVersion()

The version of the operating system.

getDeviceSerialNumber

public String getDeviceSerialNumber()

The hardware serial number.

getFreeMemory

public String getFreeMemory()

The available memory at the time of the call.

getScreenHeight

public String getScreenHeight()

The height of the screen in pixels, if a screen is available.

getScreenWidth

public String getScreenWidth()

The width of the screen in pixels, if a screen is available.

getTotalMemory

public String getTotalMemory()

The total memory built into the system.

isBluetoothSupported

public Boolean isBluetoothSupported()

True if the system has bluetooth, false if it is verified that the current system cannot do bluetooth, or empty if unknown.

load

public void load(PlatformContextInterface platformContext)

Populates the values in a platform-independent manner.

setAddress

public void setAddress(String address)

Refer to getAddress().

setApplicationCertificationCode

public void setApplicationCertificationCode(String code)

Refer to getApplicationCertificationCode().

setApplicationName

public void setApplicationName(String name)

Refer to getApplicationName().

setApplicationPublisher

public void setApplicationPublisher(String publisher)

Refer to getApplicationPublisher().

setApplicationVersion

public void setApplicationVersion(String version)

Refer to getApplicationVersion().

setBluetoothSupported

public void setBluetoothSupported(Boolean isSupported)

Refer to isBluetoothSupported().

setDeviceId

public void setDeviceId(String deviceId)

Refer to getDeviceId().

setDeviceManufacturer

public void setDeviceManufacturer(String manufacturer)

Refer to getDeviceManufacturer().

setDeviceModel

public void setDeviceModel(String model)

Refer to getDeviceModel().

setDeviceOsName

public void setDeviceOsName(String name)

Refer to getDeviceOsName().

setDeviceOsVersion

public void setDeviceOsVersion(String version)

Refer to getDeviceOsVersion().

setDeviceSerialNumber

public void setDeviceSerialNumber(String number)

Refer to getDeviceSerialNumber().

setFreeMemory

public void setFreeMemory(String memory)

Refer to getFreeMemory().

setScreenHeight

public void setScreenHeight(String height)

Refer to getScreenHeight().

setScreenWidth

public void setScreenWidth(String width)

Refer to getScreenWidth().

setTotalMemory

public void setTotalMemory(String memory)

Refer to getTotalMemory().

store

public void store(PlatformContextInterface platformContext)

Stores all of the values in a platform-independent manner.