Sony Addon SDK
public class

DisplayInfo

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.DisplayInfo

Class Overview

The display info describes a host application display.

Summary

Public Constructors
DisplayInfo(Context context, long id, int width, int height, int colors, int refreshRate, int latency, boolean tapTouch, boolean motionTouch)

Create display info.

Public Methods
long getId()

Get the id.

int getWidth()

Get the width.

int getHeight()

Get the height.

int getColors()

Get the number of colors supported by the display.

int getRefreshRate()

Get the refresh rate supported by the display.

int getLatency()

Get the display latency.

boolean isTapTouch()

Is tap touch supported.

boolean isMotionTouch()

Is motion touch supported.

boolean sizeEquals(int width, int height)

Check if the display size is equal to the provided width and height.

java.util.List<WidgetContainer> getWidgetContainers()

Get the widget containers available for this display.

Public Constructors

public DisplayInfo(Context context, long id, int width, int height, int colors, int refreshRate, int latency, boolean tapTouch, boolean motionTouch)

Create display info.

Parameters
context The context.
id The id.
width The width.
height The height.
colors The colors.
refreshRate The refresh rate.
latency The latency.
tapTouch True if tap touch is supported.
motionTouch True if motion touch is supported.

Public Methods

public long getId()

Get the id.

Returns

The id.

See Also

public int getWidth()

Get the width.

Returns

The width.

See Also

public int getHeight()

Get the height.

Returns

The height.

See Also

public int getColors()

Get the number of colors supported by the display.

Returns

The number of colors.

See Also

public int getRefreshRate()

Get the refresh rate supported by the display.

Returns

The refresh rate.

See Also

public int getLatency()

Get the display latency.

Returns

The latency.

See Also

public boolean isTapTouch()

Is tap touch supported.

Returns

True if tap touch is supported.

See Also

public boolean isMotionTouch()

Is motion touch supported.

Returns

True if motion touch is supported.

See Also

public boolean sizeEquals(int width, int height)

Check if the display size is equal to the provided width and height.

Parameters
width The width to check.
height The height to check.
Returns

True if the display is equal to the provided with and height.

public java.util.List<WidgetContainer> getWidgetContainers()

Get the widget containers available for this display.

Returns

The widgets.