KaaClientState Protocol Reference
| Declared in | KaaClientState.h |
|---|
privateKey
required method
Returns existing or generates new private key.
@property (nonatomic, readonly) SecKeyRef privateKeyDiscussion
Returns existing or generates new private key.
Declared In
KaaClientState.h
publicKey
required method
Returns existing or generates new public key.
@property (nonatomic, readonly) SecKeyRef publicKeyDiscussion
Returns existing or generates new public key.
Declared In
KaaClientState.h
isRegistred
required method
Defines whether server knows about current endpoint profile.
@property (nonatomic) BOOL isRegistredDiscussion
Defines whether server knows about current endpoint profile.
Declared In
KaaClientState.h
endpointKeyHash
required method
Unique endpoint identifier.
@property (nonatomic, strong, readonly) EndpointKeyHash *endpointKeyHashDiscussion
Unique endpoint identifier.
Declared In
KaaClientState.h
appStateSequenceNumber
required method
Holds application state sequence number.
@property (nonatomic) int32_t appStateSequenceNumberDiscussion
Holds application state sequence number.
Declared In
KaaClientState.h
profileHash
required method
Holds endpoint profile hash.
@property (nonatomic, strong) EndpointObjectHash *profileHashDiscussion
Holds endpoint profile hash.
Declared In
KaaClientState.h
attachedEndpoints
required method
<EndpointAccessToken, EndpointKeyHash> as key-value.
@property (nonatomic, strong) NSMutableDictionary *attachedEndpointsReturn Value
<EndpointAccessToken, EndpointKeyHash> as key-value.
Declared In
KaaClientState.h
endpointAccessToken
required method
Holds current endpoint access token.
@property (nonatomic, strong) NSString *endpointAccessTokenDiscussion
Holds current endpoint access token.
Declared In
KaaClientState.h
eventSequenceNumber
required method
Holds current event sequence number.
@property (atomic) int32_t eventSequenceNumberDiscussion
Holds current event sequence number.
Declared In
KaaClientState.h
isAttachedToUser
required method
Defines whether endpoint is attached to its user.
@property (nonatomic) BOOL isAttachedToUserDiscussion
Defines whether endpoint is attached to its user.
Declared In
KaaClientState.h
topicListHash
required method
Holds hash calculated from list of available topics. See TopicListHashCalculator for more info.
@property (nonatomic) int32_t topicListHashDiscussion
Holds hash calculated from list of available topics. See TopicListHashCalculator for more info.
Declared In
KaaClientState.h
needProfileResync
required method
Defines whether server need profile resync.
@property (nonatomic) BOOL needProfileResyncDiscussion
Defines whether server need profile resync.
Declared In
KaaClientState.h
– publicKeyAsBytes
required method
Returns existing or generates new public key as bytes.
- (NSData *)publicKeyAsBytesDiscussion
Returns existing or generates new public key as bytes.
Declared In
KaaClientState.h
– addTopic:
required method
Adds topic with all its information.
- (void)addTopic:(Topic *)topicDiscussion
Adds topic with all its information.
Declared In
KaaClientState.h
– removeTopicId:
required method
Remove topic with all its information by topic id.
- (void)removeTopicId:(int64_t)topicIdDiscussion
Remove topic with all its information by topic id.
Declared In
KaaClientState.h
– addSubscriptionForTopicWithId:
required method
Add subscription for topic by ID.
- (void)addSubscriptionForTopicWithId:(int64_t)topicIdDiscussion
Add subscription for topic by ID.
Declared In
KaaClientState.h
– removeSubscriptionForTopicWithId:
required method
Remove subscription for topic by ID.
- (void)removeSubscriptionForTopicWithId:(int64_t)topicIdDiscussion
Remove subscription for topic by ID.
Declared In
KaaClientState.h
– updateSubscriptionInfoForTopicId:sequence:
required method
Used to update subscription info.
- (BOOL)updateSubscriptionInfoForTopicId:(int64_t)topicId sequence:(int32_t)sequenceNumberDiscussion
Used to update subscription info.
Declared In
KaaClientState.h
– getNotificationSubscriptions
required method
Return dictionary with notification subscriptions information with Topic id as key and sequence number of TopicSubscriptionInfo as value.
- (NSDictionary *)getNotificationSubscriptionsReturn Value
Dictionary of <@(int64_t), @(int32_t)> as key-value.
Discussion
Return dictionary with notification subscriptions information with Topic id as key and sequence number of TopicSubscriptionInfo as value.
Declared In
KaaClientState.h
– getTopics
required method
Topic
- (NSArray *)getTopicsReturn Value
Array of topics
See Also
Declared In
KaaClientState.h
– getAndIncrementEventSequenceNumber
required method
Next event sequence number that could be used by the system.
- (int32_t)getAndIncrementEventSequenceNumberReturn Value
Next event sequence number that could be used by the system.
Declared In
KaaClientState.h
– isConfigurationVersionUpdated
required method
- (BOOL)isConfigurationVersionUpdatedReturn Value
YES - if configuration version was updated, NO - if it wasn’t.
Discussion
Declared In
KaaClientState.h
– persist
required method
Persists current client state.
- (void)persistDiscussion
Persists current client state.
Declared In
KaaClientState.h
– refreshEndpointAccessToken
required method
Generates and stores new endpoint access token.
- (NSString *)refreshEndpointAccessTokenReturn Value
New access token
Discussion
Generates and stores new endpoint access token.
Declared In
KaaClientState.h
– clean
required method
Cleans up persisted client state.
- (void)cleanDiscussion
Cleans up persisted client state.
Declared In
KaaClientState.h