Conforms to NSObject
Declared in CCHSensorPipeline.h

Overview

Implement the delegate if you want to take action before or after an event is sent to ContextHub. You can also decide keep an event from firing.

Instance Methods

sensorPipeline:didDetectEvent:

Called when events are detected on the device.

- (void)sensorPipeline:(CCHSensorPipeline *)sensorPipeline didDetectEvent:(NSDictionary *)event

Parameters

sensorPipeline

The CCHSensorPipeline.

event

The event that was triggered.

Declared In

CCHSensorPipeline.h

sensorPipeline:didPostEvent:

Called after an event was sent to ContextHub.

- (void)sensorPipeline:(CCHSensorPipeline *)sensorPipeline didPostEvent:(NSDictionary *)event

Parameters

sensorPipeline

The CCHSensorPipeline.

event

The event that was triggered.

Declared In

CCHSensorPipeline.h

sensorPipeline:shouldPostEvent:

Sometimes you may want to keep an event from posting to the ContextHub service. This method gives you the opportunity to stop the call. If you return NO, none of the other delegate methods will get called, and the event will be discarded.

- (BOOL)sensorPipeline:(CCHSensorPipeline *)sensorPipeline shouldPostEvent:(NSDictionary *)event

Parameters

sensorPipeline

The CCHSensorPipeline.

event

The event that was triggered.

Return Value

boolean indicating if the event should be posted to ContextHUB

Discussion

Note: No history of the event will be captured if you return NO here.

Declared In

CCHSensorPipeline.h

sensorPipeline:willPostEvent:

Called before an event was sent to ContextHub.

- (void)sensorPipeline:(CCHSensorPipeline *)sensorPipeline willPostEvent:(NSDictionary *)event

Parameters

sensorPipeline

the CCHSensorPipeline.

event

The event that was triggered.

Declared In

CCHSensorPipeline.h