Classes
The following classes are available globally.
-
An object representing the authentication of a
OrangeChatManagerinstance.Instance is created in the
OrangeChatManagerinstance and is accessible by usingOrangeChatManager.authentication.Two kinds of authentication methods are available:
- the custom authentication method, for applications using an ad hoc authentication mechanism,
- the authentication with one-time password SMS, which uses identities directly managed by the back-end application, using the user phone number.
Declaration
Swift
public final class Authentication : ObservableObject, OrangeChatLoggable -
An object representing a message.
See moreDeclaration
Swift
public final class Message : Identifiable, ObservableObjectextension Message: Equatable -
An object representing a room.
Instances are created by using the
See moreRoomList.room(with:and:)method.Declaration
Swift
public final class Room : Identifiable, ObservableObject, OrangeChatLoggableextension Room: Equatable -
An object representing a user.
See moreDeclaration
Swift
public class User : ObservableObject, CustomDebugStringConvertible, Equatable
-
Declaration
Swift
public class ContentManager : NSObject, OrangeChatLoggableextension ContentManager: URLSessionTaskDelegateextension ContentManager: URLSessionDownloadDelegate -
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
@EnvironmentObjectprefix to instanceOrangeChatManageras an environment object and pass it to your views, - use a singleton.
Declaration
Swift
public class OrangeChatManager : ObservableObject, Identifiable - use the
-
An object to manage push notifications and redirections related to the SDK.
A notification service app extension does not present any UI of its own. Instead, it is launched on demand when the system delivers a notification of the appropriate type to the device of the user. You use this object to implement the content of notification related to the SDK.
You do not create
See moreOrangeChatNotificationManagerobjects yourself. Instead, the Xcode template for a notification service extension target contains a subclass for you to modify. Here you can useOrangeChatNotificationManagerinstead ofUNNotificationServiceExtension. Also,OrangeChatNotificationManagerprovides a way to redirect the user in a conversation upon receipt of a new push notification. For that, inAppDelegateyou can useOrangeChatNotificationManagerinstead ofUNUserNotificationCenterDelegate.Declaration
Swift
open class OrangeChatNotificationManager : UNNotificationServiceExtensionextension OrangeChatNotificationManager: UNUserNotificationCenterDelegate -
An object representing a list of rooms of a
OrangeChatManagerinstance.Instance is created in the
See moreOrangeChatManagerinstance and is accessible by usingOrangeChatManager.roomList.Declaration
Swift
public final class RoomList : ObservableObject, OrangeChatLoggable -
Declaration
Swift
public class VersionComparator : ObservableObject
Classes Reference