Classes
The following classes are available globally.
-
An object representing the authentication of a
OrangeChatManager
instance.Instance is created in the
OrangeChatManager
instance 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, ObservableObject
extension 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, OrangeChatLoggable
extension Room: Equatable
-
An object representing a user.
See moreDeclaration
Swift
public class User : ObservableObject, CustomDebugStringConvertible, Equatable
-
Declaration
Swift
public class ContentManager : NSObject, OrangeChatLoggable
extension ContentManager: URLSessionTaskDelegate
extension 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
@EnvironmentObject
prefix to instanceOrangeChatManager
as 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 moreOrangeChatNotificationManager
objects yourself. Instead, the Xcode template for a notification service extension target contains a subclass for you to modify. Here you can useOrangeChatNotificationManager
instead ofUNNotificationServiceExtension
. Also,OrangeChatNotificationManager
provides a way to redirect the user in a conversation upon receipt of a new push notification. For that, inAppDelegate
you can useOrangeChatNotificationManager
instead ofUNUserNotificationCenterDelegate
.Declaration
Swift
open class OrangeChatNotificationManager : UNNotificationServiceExtension
extension OrangeChatNotificationManager: UNUserNotificationCenterDelegate
-
An object representing a list of rooms of a
OrangeChatManager
instance.Instance is created in the
See moreOrangeChatManager
instance and is accessible by usingOrangeChatManager.roomList
.Declaration
Swift
public final class RoomList : ObservableObject, OrangeChatLoggable
-
Declaration
Swift
public class VersionComparator : ObservableObject