ZumoKit
@interface ZumoKit : NSObject
The entry point of the ZumoKit SDK.
Obtain an instance of this class by calling its constructor. Your ZumoKit account manager will provide you with API key.
Then, proceed to sign in a user with call to auth method. If sign in is succesful AuthCompletionBlock will be called with ZKUser instance, otherwise completion block is called with error
arguments which provides more error information. See Handling Errors for details.
Call getState to get current SDK state. Register state listner with addStateListener. Unregister listener with removeStateListener.
ZKUtils class can ba access via ZumoKit
instance's utils property.
+version
+ (nonnull NSString *)version
Returns current ZumoKit SDK version.
utils
@property(strong, nonatomic) ZKUtils *utils;
Returns ZumoKit SDK utility class ZKUtils.
−initWithTxServiceUrl:apiKey:apiRoot:myRoot:
- (instancetype)initWithTxServiceUrl:(NSString *)txServiceUrl
apiKey:(NSString *)apiKey
apiRoot:(NSString *)apiRoot
myRoot:(NSString *)myRoot
Your ZumoKit account manager will provide you with API key. See Getting Started for details.
−auth:headers:completion:
- (void)auth:(nonnull NSString *)token
headers:(nullable NSDictionary<NSString *, NSString *> *)headers
completion:(_Nonnull AuthCompletionBlock)completionHandler;
Authenticate user with ZumoKit. See Getting Started for details.
If sign in is succesful AuthCompletionBlock will be called with ZKUser instance, otherwise completion block is called with error
argument which provides more error information. See Handling Errors for details.
−getState
- (nonnull ZKState *)getState
Returns current ZumoKit state. See ZKState for available properties.
−addStateListener:
- (void)addStateListener:(nullable id<ZKStateListener>)listener
Attach listener called when there is a change to ZumoKit state.
−removeStateListener:
- (void)removeStateListener:(nullable id<ZKStateListener>)listener
Remove ZKStateListener.