Inherits from NSObject
Declared in SIKManager.h

Overview

The SIKManager class defines the interface for connecting to SENSORO Cloud to your application. You use an instance of this class to get SIKUser objects, and reset an instance of this class data; You should always use the shared instance. Creating own instance is not allowed.

Properties

complete

callback for SIKManager, when fetch data from SENSOROCloud completely, the block should have the following argument signature: (BOOL succeeded, NSError *error)

@property (nonatomic, copy) SIKManagerCompletionBlock complete

Discussion

callback for SIKManager, when fetch data from SENSOROCloud completely, the block should have the following argument signature: (BOOL succeeded, NSError *error)

Declared In

SIKManager.h

Class Methods

buildVersion

SIK debug build version

+ (NSUInteger)buildVersion

Return Value

build version String

Discussion

SIK debug build version

Declared In

SIKManager.h

currentUser

Accessing the Current User,Gets the currently logged in user from memory and returns an instance of it.

+ (SIKUser *)currentUser

Return Value

a SIKUser that is the currently logged in user. If there is none, returns nil.

Discussion

Accessing the Current User,Gets the currently logged in user from memory and returns an instance of it.

Declared In

SIKManager.h

resetUser

Reset user’s data to initial value

+ (void)resetUser

Discussion

Reset user’s data to initial value

Declared In

SIKManager.h

setDebugModeActive:

DebugMode

+ (void)setDebugModeActive:(BOOL)active

Parameters

active

enable Debug

Discussion

DebugMode

Declared In

SIKManager.h

sharedInstance

SIKManager instance, Users are not allowed to create own instance.

+ (instancetype)sharedInstance

Return Value

the shared instance of the SIKManager class.

Discussion

SIKManager instance, Users are not allowed to create own instance.

Declared In

SIKManager.h

version

SIK release version

+ (NSString *)version

Return Value

version String

Discussion

SIK release version

Declared In

SIKManager.h

Instance Methods

currentBeacons

Current SIKBeacons in SENSOROCloud

- (NSDictionary *)currentBeacons

Return Value

current SIKBeacons

Discussion

Current SIKBeacons in SENSOROCloud

Declared In

SIKManager.h

monitorRangionInBackgroundTask:

set monitorBackgoundMode, in backgroundMode, In Appdelegate didFinishLaunchingWithOptions method should add

- (void)monitorRangionInBackgroundTask:(BOOL)enable

Parameters

enable

support backgroundMode or not

Discussion

set monitorBackgoundMode, in backgroundMode, In Appdelegate didFinishLaunchingWithOptions method should add

Declared In

SIKManager.h

setApplicationKey:secret:

Sets the applicationId and clientKey of your application.

- (void)setApplicationKey:(NSString *)applicationKey secret:(NSString *)secret

Parameters

applicationKey

The applicaiton key for your SENSORO Cloud application.

secret

Sets the secret of your SENSORO Cloud application.

Discussion

Sets the applicationId and clientKey of your application.

Declared In

SIKManager.h

stopMonitorRangion

Stop monitor rangion for SIKManager, just stop monitor beacons in your account

- (void)stopMonitorRangion

Discussion

Stop monitor rangion for SIKManager, just stop monitor beacons in your account

Declared In

SIKManager.h