Config Class Reference

Inherits from NSObject
Declared in Config.h

Properties

  host

Host name of Contentstack api server.

@property (nonatomic, copy) NSString *host

Discussion

 //Obj-C
Config *config = [[Config alloc] init];
 config.host = @"api.contentstack.io";

 //Swift
 var config:Config = Config()
 config.host = "api.contentstack.io"

Declared In

Config.h

  isSSL

SSL state of Contentstack api server.

@property (nonatomic, assign) BOOL isSSL

Discussion

 //Obj-C
Config *config = [[Config alloc] init];
 config.isSSL = YES;

 //Swift
 var config:Config = Config()
 config.isSSL = true

Declared In

Config.h

  version

API version of Contentstack api server.

@property (nonatomic, copy, readonly) NSString *version

Discussion

 //Obj-C
 Config *config = [[Config alloc] init];
 NSString version = config.version;

 //Swift
 var config:Config = Config()
 let version = config.version

Declared In

Config.h