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.
-
Declaration
Swift
public let configuration: OrangeChatConfiguration
-
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 }
-
Declaration
Swift
public var contentManager: ContentManager { get }
-
Initialize the manager with backend configuration.
Declaration
Swift
public convenience init(configuration: OrangeChatConfiguration)
Parameters
configuration
The configuration with backend urls and application identifier