You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Kommunicate/Classes/Kommunicate.swift
+84Lines changed: 84 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,9 @@ open class Kommunicate: NSObject, Localizable {
137
137
case clientConversationIdNotPresent
138
138
case conversationOpenFailed
139
139
case zendeskKeyNotPresent
140
+
case logoutUserFailed
141
+
case loginUserFailed
142
+
case appIDIsMissing
140
143
}
141
144
142
145
// MARK: - Private properties
@@ -528,6 +531,87 @@ open class Kommunicate: NSObject, Localizable {
528
531
}
529
532
}
530
533
534
+
/// This is a Universal function handle login -> conversation building -> conversation launching
535
+
/// - Parameter appID: `AppID` is compulsory when the `KMUser` is not passed or If `kmUser` `applicationId` is not present.
536
+
/// - Parameter kmUser : A `KMUser` object which contains user details. If `kmUser` is not passed then it will create new Visitor Login everytime.
537
+
/// - Parameter viewController: `ViewController` from which the group chat will be launched.
538
+
/// - Parameter conversation: An instance of `KMConversation` object.
539
+
/// - Parameter shouldMaintainSession: Determines whether to maintain the session when `kmUser` is not provided and a random (visitor) user is used for login.
540
+
/// - Parameter completion: If successful the success callback will have a conversationId else it will be `KommunicateError` on failure.
0 commit comments