CSSensor Class Reference

Inherits from NSObject
Declared in CSSensor.h

Overview

The base object for each sensor.

  isEnabled

@property (assign) BOOL isEnabled

  dataStore

The data store the sensor commits its obtained values to

@property id dataStore

Declared In

CSSensor.h

  sensorId

@property (readonly) NSString *sensorId

– matchesDescription:

Method to check wether the sensor matches the given description of the sensor

- (BOOL)matchesDescription:(NSDictionary *)description

Declared In

CSSensor.h

– enabledChanged:

Method that will be invoked when the sensor is enabled/disabled

- (void)enabledChanged:(id)notification

Declared In

CSSensor.h

– name

Returns name of the sensor

- (NSString *)name

Declared In

CSSensor.h

– displayName

Returns the display name of the sensor

- (NSString *)displayName

Declared In

CSSensor.h

– deviceType

Returns the device type of the sensor

- (NSString *)deviceType

Declared In

CSSensor.h

– sensorDescription

Returns the description of the sensor

- (NSDictionary *)sensorDescription

Declared In

CSSensor.h

– device

- (NSDictionary *)device

+ isAvailable

Returns wether this sensor is available

+ (BOOL)isAvailable

Declared In

CSSensor.h

– sensorId

Returns the sensor id of the sensor, a unique name that is used by the library to uniquely identify the sensor. This is NOT the id of the sensor in Common Sense

- (NSString *)sensorId

Declared In

CSSensor.h

+ sensorIdFromName:andDeviceType:andDevice:

Create sensor id

+ (NSString *)sensorIdFromName:(NSString *)name andDeviceType:(NSString *)deviceType andDevice:(NSDictionary *)device

Declared In

CSSensor.h

+ sensorNameFromSensorId:

Extract sensor name from the sensor id

+ (NSString *)sensorNameFromSensorId:(NSString *)sensorId

Declared In

CSSensor.h

+ sensorDescriptionFromSensorId:

extract sensor description from the sensor id

+ (NSString *)sensorDescriptionFromSensorId:(NSString *)sensorId

Declared In

CSSensor.h

+ sensorDeviceTypeFromSensorId:

extract sensor device type from the sensor id

+ (NSString *)sensorDeviceTypeFromSensorId:(NSString *)sensorId

Declared In

CSSensor.h

+ sensorDeviceUUIDFromSensorId:

extract sensor device uuid from the sensor id

+ (NSString *)sensorDeviceUUIDFromSensorId:(NSString *)sensorId

Declared In

CSSensor.h