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 using OrangeChatManager.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.
    See more

    Declaration

    Swift

    public final class Authentication : ObservableObject, OrangeChatLoggable
  • An object representing a message.

    See more

    Declaration

    Swift

    public final class Message : Identifiable, ObservableObject
    extension Message: Equatable
  • An object representing a room.

    Instances are created by using the RoomList.room(with:and:) method.

    See more

    Declaration

    Swift

    public final class Room : Identifiable, ObservableObject, OrangeChatLoggable
    extension Room: Equatable
  • An object representing a user.

    See more

    Declaration

    Swift

    public class User : ObservableObject, CustomDebugStringConvertible, Equatable

Download state and errors

  • 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 instance OrangeChatManager as an environment object and pass it to your views,
    • use a singleton.
    See more

    Declaration

    Swift

    public class OrangeChatManager : ObservableObject, Identifiable
  • 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 OrangeChatNotificationManager objects yourself. Instead, the Xcode template for a notification service extension target contains a subclass for you to modify. Here you can use OrangeChatNotificationManager instead of UNNotificationServiceExtension. Also, OrangeChatNotificationManager provides a way to redirect the user in a conversation upon receipt of a new push notification. For that, in AppDelegate you can use OrangeChatNotificationManager instead of UNUserNotificationCenterDelegate.

    See more

    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 OrangeChatManager instance and is accessible by using OrangeChatManager.roomList.

    See more

    Declaration

    Swift

    public final class RoomList : ObservableObject, OrangeChatLoggable
  • Declaration

    Swift

    public class VersionComparator : ObservableObject