Sony Addon SDK
public class

DeviceInfo

This project is no longer being supported and will not get any further updates.
extends java.lang.Object
  1. java.lang.Object
  2. com.sonyericsson.extras.liveware.extension.util.registration.DeviceInfo

Class Overview

The device info class describes a host application device. This class only contains a subset of the information available for the device.

Summary

Public Constructors
DeviceInfo(Context context, java.lang.String hostAppPackageName, long id, int widgetWidth, int widgetHeight, boolean vibrator)

Create device info.

Public Methods
long getId()

Get the id.

int getWidgetWidth()

Get the widget width.

int getWidgetHeight()

Get the widget height.

boolean hasVibrator()

Checks if the device has a vibrator.

java.util.List<DisplayInfo> getDisplays()

Get the displays available.

java.util.List<AccessorySensor> getSensors()

Get the sensors available.

java.util.List<InputInfo> getInputs()

Get the inputs available.

java.util.List<TapInfo> getTaps()

Gets a list of supported tap actions.

Public Constructors

public DeviceInfo(Context context, java.lang.String hostAppPackageName, long id, int widgetWidth, int widgetHeight, boolean vibrator)

Create device info.

Parameters
context The context.
hostAppPackageName The host application package name.
id The device id.
widgetWidth The widget width.
widgetHeight The widget height.
vibrator True if device has a vibrator.

Public Methods

public long getId()

Get the id.

Returns

The device id.

See Also

public int getWidgetWidth()

Get the widget width.

Returns

The widget width.

See Also

public int getWidgetHeight()

Get the widget height.

Returns

The widget height.

See Also

public boolean hasVibrator()

Checks if the device has a vibrator.

Returns

True if the device has a vibrator.

See Also

public java.util.List<DisplayInfo> getDisplays()

Get the displays available.

Returns

List with displays.

public java.util.List<AccessorySensor> getSensors()

Get the sensors available.

Returns

List of sensors.

public java.util.List<InputInfo> getInputs()

Get the inputs available.

Returns

List of inputs.

public java.util.List<TapInfo> getTaps()

Gets a list of supported tap actions.

Returns

The list of supported tap actions.