OrangeChatManager
public class OrangeChatManager : ObservableObject, Identifiable
An object that manage global stuff for the SDK.
This object is the entry point of the SDK.
Since it is developed to work with iOS 13 minimum version and with SwiftUI and Combine, there are two ways to instantiate an object OrangeChatManager
:
- use the
@EnvironmentObject
prefix to instanceOrangeChatManager
as an environment object and pass it to your views, - use a singleton.
-
Identifiable
Declaration
Swift
public var id: `Self` { get }
-
The instance of
VersionStatusComparator
.Declaration
Swift
public var versionComparator: VersionComparator { get }
-
The instance of
Authentication
.Declaration
Swift
public var authentication: Authentication { get }
-
Initialize the manager with backend configuration.
Declaration
Swift
public convenience init(applicationIdentifier: String, platformURL: URL? = nil)
Parameters
applicationIdentifier
The application namespace in the backend
platformURL
The backend url