KNYClient Class Reference
| Inherits from | NSObject |
| Declared in | KNYClient.h |
Tasks
-
+ sharedClient -
– init -
– initializeInBackgroundWithAppKey:appSecret:serviceURLString:completion: -
– initWithServiceDoc: -
– initWithAppkey:appSecret:serviceDoc: -
appKeyproperty -
appSecretproperty -
serviceURLStringproperty -
– setPersistentStore: -
– setStorageMgr: -
+ setLogLevel: -
+ clearCache -
+ setNetworkOptions: -
+ networkOptions -
– setNWOptions: -
– getNWOptions -
+ acceptSelfSignedCertificates -
– ignoreSSLCertErrors -
– getIdentityService: -
– getIntegrationService: -
– getMessagingService -
– getSyncService -
– getMetricsService -
– getServiceDoc -
– getAppKey -
– getAppSecret -
– setClientParams: -
+ sdkType -
+ sdkVersion
Class Methods
acceptSelfSignedCertificates
invoking this method enables to accept self signed certificates
+ (void)acceptSelfSignedCertificatesDiscussion
invoking this method enables to accept self signed certificates
Declared In
KNYClient.hclearCache
Clears the cached config and tokens.
+ (void)clearCacheDiscussion
Clears the cached config and tokens.
Note: You will need to authenticate again.
Declared In
KNYClient.hnetworkOptions
Returns network options
+ (KNYNetworkOptions *)networkOptionsDiscussion
Returns network options
Declared In
KNYClient.hsdkType
get the sdktype
+ (NSString *)sdkTypeReturn Value
the sdk type.
Discussion
get the sdktype
Declared In
KNYClient.hsdkVersion
get the sdkVersion
+ (NSString *)sdkVersionReturn Value
the sdk version
Discussion
get the sdkVersion
Declared In
KNYClient.hsetLogLevel:
Set Logging Level.
+ (void)setLogLevel:(KNYLogLevel)logLevelParameters
- logLevel
The logging level.
Discussion
Set Logging Level.
By Default the Logging Level is set to KNYLogLevelNone.
Declared In
KNYClient.hInstance Methods
getAppKey
returns the Appkey.
- (NSString *)getAppKeyDiscussion
returns the Appkey.
Declared In
KNYClient.hgetAppSecret
returns AppSecret.
- (NSString *)getAppSecretDiscussion
returns AppSecret.
Declared In
KNYClient.hgetIdentityService:
returns identityService instance for a given provider;
- (KNYIdentityService *)getIdentityService:(NSString *)providerDiscussion
returns identityService instance for a given provider;
Declared In
KNYClient.hgetIntegrationService:
returns integrationService instance for a given serviceName.
- (KNYIntegrationService *)getIntegrationService:(NSString *)serviceNameDiscussion
returns integrationService instance for a given serviceName.
Declared In
KNYClient.hgetMessagingService
returns the messagingService instance.
- (KNYMessagingService *)getMessagingServiceDiscussion
returns the messagingService instance.
Declared In
KNYClient.hgetMetricsService
returns the metricsService instance.
- (KNYMetricsService *)getMetricsServiceDiscussion
returns the metricsService instance.
Declared In
KNYClient.hgetNWOptions
Returns network options
- (KNYNetworkOptions *)getNWOptionsDiscussion
Returns network options
Declared In
KNYClient.hgetServiceDoc
returns the serviceDoc instance.
- (KNYServiceDoc *)getServiceDocDiscussion
returns the serviceDoc instance.
Declared In
KNYClient.hgetSyncService
returns the syncService instance.
- (KNYSync *)getSyncServiceDiscussion
returns the syncService instance.
Declared In
KNYClient.hignoreSSLCertErrors
invoking this method enables to accept self signed certificates (New API)
- (void)ignoreSSLCertErrorsDiscussion
invoking this method enables to accept self signed certificates (New API)
Declared In
KNYClient.hinitWithAppkey:appSecret:serviceDoc:
Authenticates you with the Kony Mobile Fabric Service. The appKey, appSecret and serviceURLString are available in the Kony Mobile Fabric Console.
- (void)initWithAppkey:(NSString *)appKey appSecret:(NSString *)appSecret serviceDoc:(NSDictionary *)serviceDocParameters
- appKey
The appkey for your application.
- appSecret
The appsecret for your application.
- serviceConfig
service configuration for your application.
Discussion
Authenticates you with the Kony Mobile Fabric Service. The appKey, appSecret and serviceURLString are available in the Kony Mobile Fabric Console.
@throws KNYException if appConfig is invalid.
example of service doc:
NSDictionary *dict = @{ @“name”:@“test”, @“baseId”:@“testbaseId”, @“reportingsvc”: @{ @“custom”: @“https://nut007.konycloud.com/services/CMS”, @“session”: @“https://nut007.konycloud.com/services/IST” } }; name, baseId and reportingsvc are mandatory parameters as part of service config.
Declared In
KNYClient.hinitWithServiceDoc:
init using service configuration @throws KNYException if appConfig is invalid. example of service doc:
- (void)initWithServiceDoc:(NSDictionary *)serviceDocParameters
- serviceConfig
service configuration of your application.
Discussion
init using service configuration @throws KNYException if appConfig is invalid. example of service doc:
NSDictionary *dict = @{ @“name”:@“test”, @“baseId”:@“testbaseId”, @“reportingsvc”: @{ @“custom”: @“https://nut007.konycloud.com/services/CMS”, @“session”: @“https://nut007.konycloud.com/services/IST” } };
name, baseId and reportingsvc are mandatory parameters as part of service config.
Declared In
KNYClient.hinitializeInBackgroundWithAppKey:appSecret:serviceURLString:completion:
Authenticates you with the Kony Mobile Fabric Service. The appKey, appSecret and serviceURLString are available in the Kony Mobile Fabric Console.
- (void)initializeInBackgroundWithAppKey:(NSString *)appKey appSecret:(NSString *)appSecret serviceURLString:(NSString *)URLString completion:(void ( ^ ) ( BOOL succeeded , NSError *error ))completionParameters
- appKey
The appkey for your application.
- appSecret
The appsecret for your application.
- URLString
The service url for your application.
- completion
Completion block called on completion of initialization. The block should have the following argument signature: (BOOL succeeded, NSError *error)
Discussion
Authenticates you with the Kony Mobile Fabric Service. The appKey, appSecret and serviceURLString are available in the Kony Mobile Fabric Console.
Declared In
KNYClient.hsetClientParams:
set client params (used for konystudio apps using MF backend)
- (void)setClientParams:(NSDictionary *)clientParamsParameters
- clientParams
client params
Discussion
set client params (used for konystudio apps using MF backend)
Declared In
KNYClient.h