TechCentrixSDK
public final class TechCentrixSDK
Undocumented
-
Configuration struct used within the SDK.
See moreDeclaration
Swift
public struct Configuration -
Configures the SDK with given
ConfigurationDeclaration
Swift
public static func configure(with configuration: TechCentrixSDK.Configuration)Parameters
configurationContains images, api token, colors and host name
-
Declaration
Swift
public static func isSignedIn() -> BoolReturn Value
trueif user is signed in. -
Signs the user in using one time token
Declaration
Swift
public static func signIn(with oneTimeToken: String, completion: ((_ success: Bool) -> Void)?)Parameters
oneTimeTokenauthentication token with a short expiry date
completionOptional callback.
-
Undocumented
Declaration
Swift
public static func signOut(completion: (() -> Void)?) -
Presents TechCentrix UI on the given
UIViewControllerPrecondition
Use only after successful sign in
Declaration
Swift
public static func present(on viewController: UIViewController, animated: Bool = true)Parameters
viewControllerUIViewController to present on
animateddefault
true -
Returns
trueifuserInfofrom Remote Notification should be handled by TechCentrixSDK.Declaration
Swift
public static func isTechCentrixPush(userInfo: [String : Any]) -> BoolReturn Value
trueifmessageshould be handled by TechCentrix SDK;falseotherwise -
Handles
userInfodictionary from Remote Notification.Declaration
Swift
public static func handlePush(with userInfo: [String : Any], completion: ((_ success: Bool) -> Void)?)Parameters
userInfodictionary containing Remote Notification data
-
Handles
responsedictionary from User Notification.Declaration
Swift
public static func handleUserNotification(with response: UNNotificationResponse, completion: @escaping () -> Void)Parameters
responseUNNotificationResponse from userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void)
-
Stores Firebase Registration Identifier device token for using it later.
Declaration
Swift
public static func storeFirebaseRegistrationID(token: String)Parameters
deviceTokentoken data
View on GitHub
TechCentrixSDK Class Reference