DittoIdentityObjC
@objc
public class DittoIdentityObjC : NSObject
An Objective-C compatible equivalent to DittoIdentity
.
The identity configurations that you can use when initializing a DittoKit
instance are:
- development: An identity to be used while in development when you want to control either or both of the app name and the site ID of the peer.
- production: The identity to use when in production. This accepts a certificate bundle, which includes identity information, as a base 64 encoded string.
-
Initialises a default development identity.
Declaration
Swift
@objc override public init()
-
Initialises a development identity.
Declaration
Swift
@objc public init(appName: String? = nil, siteID: NSNumber? = nil)
Parameters
appName
Optional app name that can be used to restrict communication to a specific app.
siteID
Optional site ID that can be used to explicitly set the site ID as opposed to having a random one generated.
-
Initialises a production identity.
Declaration
Swift
@objc public init(certificateConfig: String)
Parameters
certificateConfig
A certificate config formatted as a string.