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
region
Region name of Contentstack Database server.
@property (nonatomic) ContentstackRegion region
Discussion
//Obj-C
Config *config = [[Config alloc] init];
region = ContentstackRegion.EU;
//Swift
var config:Config = Config()
region = ContentstackRegion.eu
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