You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gets a device from ContextHub using the device Id.
69
+
70
+
@param deviceId The id of the device stored in ContextHub.
71
+
@param completionHandler Called when the request completes. The block is passed an NSDictionary object that represents the device. If an error occurs, the NSError wil be passed to the block.
Gets devices from ContextHub using the device alias.
77
+
78
+
@param alias The alias associated with the devices that you are interested in.
79
+
@param completionHandler Called when the request completes. The block is passed an NSArray of NSDictionary objects that represent the devices. If an error occurs, the NSError wil be passed to the block.
@param tags Tags of the devices that you are interested in.
87
+
@param completionHandler Called when the request completes. The block is passed an NSArray of NSDictionary objects that represent the devices. If an error occurs, the NSError wil be passed to the block.
@param alias (optional) The alias associated with the device.
95
+
@param tags (optional) The tags to be applied to the device.
96
+
@param completionHandler Called when the request completes. The block is passed an NSDictionary object that represents the device. If an error occurs, the NSError wil be passed to the block.
97
+
@note This method updates the data for the current device. The tags and alias that are set here can be used with CCHPush. The tags can also be used with the CCHSubscriptionService. This method gathers meta-data about the device and sends it to ContextHub along with the alias and tags. You can call this method multiple times.
@param completionHandler (optional) Called when the event is created. If an error occurs, the NSError wil be passed to the block.
144
144
@note The event must contain a name key. If you want to pass contextual information along with the event, you can do so by setting a data key for the event.
@@ -121,6 +141,15 @@ When server changes are made, the device is notified using a background push not
121
141
### CCHVaultItemDeletedNotification
122
142
the notification object is an id of the vualt item that was deleted. The userInfo object is not set.
123
143
144
+
### CCHDeviceCreatedNotification
145
+
the notification object is an NSDictionary representation of the device that was created. The userInfo object is not set.
146
+
147
+
### CCHDeviceUpdatedNotification
148
+
the notification object is an NSDictionary of representation of the device that was updated. The userInfo object is not set.
149
+
150
+
### CCHDeviceDeletedNotification
151
+
the notification object is an id of the device that was deleted. The userInfo object is not set.
152
+
124
153
*/
125
154
@interfaceCCHSubscriptionService : NSObject
126
155
@@ -132,9 +161,9 @@ When server changes are made, the device is notified using a background push not
132
161
/**
133
162
Gets all subscriptions for the current device.
134
163
@note Access individual subscriptions using "BeaconSubscription" and "GeofenceSubscription" keys
135
-
@param completion executed when the request completes. The block is passed an NSDictionary of subscriptions. If an error occurs, the NSError will be passed to the block.
164
+
@param completionHandler executed when the request completes. The block is passed an NSDictionary of subscriptions. If an error occurs, the NSError will be passed to the block.
Subscribes the device to beacon change notifications for the specified tags.
@@ -168,15 +197,15 @@ When server changes are made, the device is notified using a background push not
168
197
Subscribes the device to change notifications for the specified tags.
169
198
@note This will turn on background push notifications for all elements that have tags matching the tags array specified. You must enable push notifications, enbale remote notifications and background fetch capabilites, and you must call application:didReceiveRemoteNotification:completionHandler: on CCHPush.
170
199
@param tags An NSArray of tags
171
-
@param options (optional) an NSArray of the elements that you want to subscribe to. (CCHOptionBeacon, CCHOptionGeofence, CCHOptionVault)
200
+
@param options (optional) an NSArray of the elements that you want to subscribe to. (CCHOptionBeacon, CCHOptionGeofence, CCHOptionVault, CCHOptionDevice)
172
201
@param completionHandler (optional) Is executed when the request completes. If an error occurs, the NSError will be passed to the block.
Unsubscribes the device from change notifications for the specified tags.
178
207
@param tags An NSArray of tags
179
-
@param options (optional) an NSArray of the elements that you want to unsubscribe from. (CCHOptionBeacon, CCHOptionGeofence, CCHOptionVault)
208
+
@param options (optional) an NSArray of the elements that you want to unsubscribe from. (CCHOptionBeacon, CCHOptionGeofence, CCHOptionVault, CCHOptionDevice)
180
209
@param completionHandler (optional) Is executed when the request completes. If an error occurs, the NSError will be passed to the block.
Copy file name to clipboardExpand all lines: ContextHub.framework/Versions/A/Headers/ContextHub.h
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@
5
5
// Created by Travis Fischer on 9/18/13.
6
6
// Copyright (c) 2013 ChaiOne. All rights reserved.
7
7
//
8
+
// Version 1.2.0
9
+
//
8
10
9
11
#import<Foundation/Foundation.h>
10
12
@@ -20,7 +22,7 @@
20
22
//Application Services
21
23
#import"CCHPush.h"
22
24
#import"CCHVault.h"
23
-
25
+
#import"CCHDevice.h"
24
26
25
27
/**
26
28
* The primary interface with the ContextHub SDK
@@ -53,4 +55,9 @@
53
55
If you are using Push Notifications, set this value to YES for debug builds. This will tell ContextHub that the push token for the device should be used with the Sandbox push service.
0 commit comments