UnbluClientDelegate
public protocol UnbluClientDelegate : AnyObject
The delegate for Unblu. Callbacks are always called on the Main thread.
-
unbluDidInitialize()
Default implementationCalled when Unblu is initialized
Default Implementation
Declaration
Swift
func unbluDidInitialize()
-
unbluDidDeinitialize()
Default implementationCalled when Unblu is de-initialized
Default Implementation
Declaration
Swift
func unbluDidDeinitialize()
-
unbluUiIsReady()
Default implementationCalled when the Unblu UI is ready
Default Implementation
Declaration
Swift
func unbluUiIsReady()
-
unbluDidPreloadUi()
Default implementationCalled when Unblu successfully preloads it’s UI. This will only be called if preloading is enabled via
UnbluClientConfiguration
.Default Implementation
Declaration
Swift
func unbluDidPreloadUi()
-
unblu(didTransitionUiWithTransition:
Default implementation) Called when the Unblu UI inside the
UnbluView
is transitioned, e.g. when the Unblu UI fades in.Default Implementation
Declaration
Swift
func unblu(didTransitionUiWithTransition transition: UnbluUiVisibilityTransition)
Parameters
transition
The
UnbluUiVisibilityTransition
that occured -
unblu(didUpdateUnreadMessages:
Default implementation) Called when the number of unread messages is updated
Default Implementation
Declaration
Swift
func unblu(didUpdateUnreadMessages count: Int)
Parameters
count
The number of unread messages
-
unblu(didUpdatePersonInfo:
Default implementation) Called when the
PersonInfo
is updatedDefault Implementation
Declaration
Swift
func unblu(didUpdatePersonInfo personInfo: PersonInfo)
Parameters
personInfo
The updated
PersonInfo
-
unblu(didUpdatePersonActivityInfo:
Default implementation) Called when the
PersonActivityInfo
is updatedDefault Implementation
Declaration
Swift
func unblu(didUpdatePersonActivityInfo personActivity: PersonActivityInfo)
Parameters
personActivity
The updated
PersonActivityInfo
-
unblu(didChangeOpenConversation:
Default implementation) Called when the current open conversation is changed
Default Implementation
Declaration
Swift
func unblu(didChangeOpenConversation openConversation: UnbluConversation?)
Parameters
openConversation
The current open
UnbluConversation
, or nil if no conversation is currently open. -
unblu(didRequestHideUi:
Default implementationconversationId: ) Called when Unblu requests the
UnbluView
is hiddenDefault Implementation
Declaration
Swift
func unblu(didRequestHideUi reason: UnbluUiHideRequestReason, conversationId: String?)
Parameters
reason
The reason for the request
conversationId
The id of the conversation where the request originated, or nil if the request did not come from a conversation.
-
Called when an
UnbluView
placed in a modal window is hidden by a swipe down gesture.Declaration
Swift
func didHideModalUi()
-
unblu(didRequestShowUi:
Default implementationrequestedByUser: ) Called when Unblu requests the
UnbluView
is shownDefault Implementation
Declaration
Swift
func unblu(didRequestShowUi reason: UnbluUiRequestReason, requestedByUser: Bool)
Parameters
reason
The reason for the request
requestedByUser
A Bool value indicating whether the request was made by the user, e.g. in response to tapping on a notification.
-
unblu(didToggleCallUi:
Default implementation) Called when the Unblu call UI is shown/hidden
Default Implementation
Declaration
Swift
func unblu(didToggleCallUi isOpen: Bool)
Parameters
isOpen
A value indicating whether the Call UI is open
-
unblu(didReceiveError:
Default implementationdescription: ) Called when Unblu receives an error
Default Implementation
Declaration
Swift
func unblu(didReceiveError type: UnbluClientErrorType, description: String)
Parameters
type
The type of the error
description
A String representing more information about the error
-
unblu(onCustomConversationActionInvocation:
Default implementation) Called when a custom conversation action was invoked for the mobile SDK
Default Implementation
Declaration
Swift
func unblu(onCustomConversationActionInvocation invocation: CustomConversationActionInvocation)
Parameters
invocation
custom conversation action invocation
-
unblu(onCustomMessageActionInvocation:
Default implementation) Called when a custom message action was invoked for the mobile SDK
Default Implementation
Declaration
Swift
func unblu(onCustomMessageActionInvocation invocation: CustomMessageActionInvocation)
Parameters
invocation
custom message action invocation
-
unblu(onCustomPersonActionInvocation:
Default implementation) Called when a custom person action was invoked for the mobile SDK
Default Implementation
Declaration
Swift
func unblu(onCustomPersonActionInvocation invocation: CustomPersonActionInvocation)
Parameters
invocation
custom person action invocation
-
Called when the
ConversationInfo
s are updatedDeclaration
Swift
func unblu(updatedConversationInfos conversationInfos: [ConversationInfo])
Parameters
conversationInfos
The updated
ConversationInfo
array -
Called whenever an active conversation button is clicked to define the behavior and potentially implement a custom handling of clicks
Declaration
Swift
func handleActiveConversationButtonClick() -> ButtonInterceptorAction
-
Called each time a menu item or collapse button is clicked.
Declaration
Swift
func handleUnbluCollapsed() -> ButtonInterceptorAction