SmartEyeglass SDK
public class

HostApplicationInfo

extends java.lang.Object
  1. java.lang.Object
  2. com.sonyericsson.extras.liveware.extension.util.registration.HostApplicationInfo

Class Overview

The host application class contains information about a host application.

Summary

Public Constructors
HostApplicationInfo(Context context, java.lang.String packageName, long id, int widgetApiVersion, int controlApiVersion, int sensorApiVersion, int notificationApiVersion, int widgetRefreshRate)

Create host application info.

Public Methods
java.util.List<DeviceInfo> getDevices()

Get the devices for this host application.

long getId()

Get the id.

int getWidgetApiVersion()

Get the widget API version.

int getControlApiVersion()

Get the control API version.

int getRegistrationApiVersion()

Get the registration API version.

int getSensorApiVersion()

Get the sensor API version.

int getNotificationApiVersion()

Get the notification API version.

int getWidgetRefreshRate()

Get the widget refresh rate.

Public Constructors

public HostApplicationInfo(Context context, java.lang.String packageName, long id, int widgetApiVersion, int controlApiVersion, int sensorApiVersion, int notificationApiVersion, int widgetRefreshRate)

Create host application info.

Parameters
context The context.
packageName The package name.
id The host application id.
widgetApiVersion The widget API version.
controlApiVersion The control API version.
sensorApiVersion The sensor API version.
notificationApiVersion The notification API version.
widgetRefreshRate The widget refresh rate.

Public Methods

public java.util.List<DeviceInfo> getDevices()

Get the devices for this host application.

Returns

List of the devices.

public long getId()

Get the id.

Returns

The id.

See Also

public int getWidgetApiVersion()

Get the widget API version.

Returns

The widget API version.

See Also

public int getControlApiVersion()

Get the control API version.

Returns

The control API version.

See Also

public int getRegistrationApiVersion()

Get the registration API version. Certain Registration values rely on SDK version 2.0 although they depend on no specific API version. This method returns the lowest safe API value.

See Also

public int getSensorApiVersion()

Get the sensor API version.

Returns

The sensor API version.

See Also

public int getNotificationApiVersion()

Get the notification API version.

Returns

The notification API version.

See Also

public int getWidgetRefreshRate()

Get the widget refresh rate.

Returns

The widget refresh rate.

See Also