Classes
The following classes are available globally.
-
The authentication challenge handler provided by Unblu allows you to provide certificate
Data
and public keys to be used in certificate pinning. You can provide as many certificates as you want. If using this class, you should initialize usingUnbluAuthenticationChallengeCertificate
or a dictionary containingUnbluAuthenticationChallengePolicy
objects.Example of initialization using
UnbluAuthenticationChallengeCertificate
:do { let certificate = try UnbluAuthenticationChallengeCertificate(name: "certificate", extension: "cer") let challengeHandler = UnbluAuthenticationChallengeHandler(data: [certificate]) } catch { }
Example of initialization using
UnbluAuthenticationChallengePolicy
:
See moredo { let certificate = try UnbluAuthenticationChallengeCertificate(name: "certificate", extension: "cer") let policies = [ "example.com": UnbluAuthenticationChallengePolicy(certificates: [certificate]) ] let challengeHandler = UnbluAuthenticationChallengeHandler(policies: policies) } catch { }
Declaration
Swift
public class UnbluAuthenticationChallengeHandler
extension UnbluAuthenticationChallengeHandler: AuthenticationChallengeDelegate
-
Provides a default basic implementation of the
See moreUnbluExternalLinkHandler
. Use this class when assigning an external link handler to theUnbluClientConfiguration
.Declaration
Swift
public class UnbluDefaultExternalLinkHandler : UnbluExternalLinkHandler
-
Information about a conversation
See moreDeclaration
Swift
public class ConversationInfo
-
Information about a person
See moreDeclaration
Swift
public class PersonActivityInfo
extension PersonActivityInfo: Equatable
-
Information about a person
See moreDeclaration
Swift
public class PersonInfo
extension PersonInfo: Equatable
-
Declaration
Swift
public class UnbluEncryptedNotificationServiceHelper
-
Interface to use notifications with unblu. As Firebase Cloud Messaging (FCM) SDK is build as a static library, we can not include it here. Most functions of this api should be called for specific notification callbacks typically fired in the AppDelegate.
Unblu will display/handle notifications as shown in the following table. Api helper to check mainly if notifications are from unblu or not
Unblu will display/handle notifications as shown in the following table.
App state New Message Incoming Call background show notification show notification foreground unblu UI closed show notification Trigger UnbluUiEventApi.UiVisibilityRequest foreground unblu UI open Does nothing Does nothing Whenever a notification is clicked, the event
See moreUnbluUiEventApi.UiVisibilityRequest
is triggered.Declaration
Swift
public class UnbluNotificationApi : NSObject, UnbluNotificationApiProtocol
extension UnbluNotificationApi : AVSpeechSynthesizerDelegate
-
A notification center delegate which checks if a notification is from unblu or not. it will then decide to display it or not, while the app is open. This handler is always set at startapp to the current notification center. If you want to use your own implementation of UNUserNotificationCenterDelegate, you can instanciate a new instance of this class and provide a delegate to it. Then assign it to the current UNNotificationCenter. This class will then forward all requests (except for the unblu notifications) to your implementation.
See moreDeclaration
Swift
public class UnbluNotificationCenterDelegate : NSObject, UNUserNotificationCenterDelegate
-
The default file downloader provided by Unblu. Use this when configuring the UnbluCoreSDK unless you want to provide your own file downloader. In that case, provide a file conforming to the
See moreUnbluFileDownloader
protocol.Declaration
Swift
public class UnbluDefaultFileDownloadHandler : NSObject, UnbluFileDownloadHandlerWithAuthorizationToken
-
When this class is passed to the CoreSDK at configuration, Unblu will store certain preferences securely in the Keychain.
See moreDeclaration
Swift
public class UnbluKeychainPreferencesStorage : UnbluPreferencesStorage
-
Default implementation to store SDK preferences.
Uses the UserDefaults.standard of the app.
The values are not encrypted.
See moreDeclaration
Swift
public class UserDefaultsPreferencesStorage : UnbluPreferencesStorage
-
A class representing configuration properties for the hidden Unblu
See moreUIWindow
. Unblu uses a hiddenUIWindow
to make sure the connection with Unblu remains active in the background when the Unblu UI is closed.Declaration
Swift
public class UnbluHiddenUIWindowConfiguration
-
Facilitates notifications with Firebase. You should only use this if you’re not inheriting your AppDelegate from
See moreUnbluFirebaseUIApplicationDelegate
.Declaration
Swift
public class UnbluFirebaseNotificationCoordinator : NSObject
extension UnbluFirebaseNotificationCoordinator: MessagingDelegate
-
Basic implementation of UIApplicationDelegate which overrides some application notification api callbacks for easy Firebase integration. Always call the super implementation of the delegate first, before handling the functions by your own.
See moreDeclaration
Swift
open class UnbluFirebaseUIApplicationDelegate : UIResponder, UIApplicationDelegate
extension UnbluFirebaseUIApplicationDelegate: UnbluFirebaseNotificationCoordinatorDelegate
-
Entry point to use the mobile co-browsing functionality of Unblu to share the screen of the app. This module has to be registered via
See moreUnbluClientConfiguration.register(module: ...)
. To use the api of theUnbluMobileCoBrowsingModule
in the application, useUnbluMobileCoBrowsingModuleProvider.create(...)
.Declaration
Swift
public class UnbluMobileCoBrowsingModuleProvider
-
An object that represents an area of the screen that will be obscured during a mobile co-browsing session
See moreDeclaration
Swift
public class UnbluMobileCoBrowsingPrivateArea