Sony Addon SDK public class

AccessorySensorManager

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.sensor.AccessorySensorManager

Class Overview

Manages sensors on an accessory.

Summary

Constants
int INVALID_ID
Public Constructors
AccessorySensorManager(Context context, java.lang.String hostAppPackageName)

Create sensor manager for a host application.

Public Methods
AccessorySensor getSensor(java.lang.String sensorType)

Get sensor.

AccessorySensor getSensor(java.lang.String sensorType, boolean delicate)

Get sensor with a certain delicate class.

Constants

public static final int INVALID_ID

Constant Value: -1 (0xffffffffffffffff)

Public Constructors

public AccessorySensorManager(Context context, java.lang.String hostAppPackageName)

Create sensor manager for a host application.

Parameters
context The context.
hostAppPackageName The host application package name.

Public Methods

public AccessorySensor getSensor(java.lang.String sensorType)

Get sensor.

Parameters
sensorType The string identifying the sensor type.
Returns

The sensor or null if no sensor found for the given value.

See Also

public AccessorySensor getSensor(java.lang.String sensorType, boolean delicate)

Get sensor with a certain delicate class.

Parameters
sensorType The string identifying the sensor type.
delicate True if delicate, false otherwise.
Returns

The sensor or null if no sensor found for the given value.

See Also