App
public class App: NSObject, NSCoding
Represents Kii Cloud Application
-
ID of the App
Declaration
Swift
public let appID: String
-
Key of the APP
Declaration
Swift
public let appKey: String
-
Host name to which the app connects
Declaration
Swift
public let hostName: String
-
Base URL of the apis used by the app
Declaration
Swift
public let baseURL: String
-
Name of the site to which the app belongs
Declaration
Swift
public let siteName: String
-
Conforms to NSCoding
Declaration
Swift
public required convenience init(coder decoder:NSCoder)
-
Conforms to NSCoding
Declaration
Swift
public func encodeWithCoder(coder: NSCoder)
-
Init app with appID, appKey and site. If you haven’t created application in Kii Cloud, Please vist https://developer.kii.com and create your app first.
Parameter
Parameter appID: ID of the app.Parameter
Parameter appKey: Key of the app.Parameter
Parameter site: Location of the app.Declaration
Swift
public init(appID:String, appKey:String, site:Site)