UnbluClientDelegate

public protocol UnbluClientDelegate : AnyObject

The delegate for Unblu. Callbacks are always called on the Main thread.

  • unbluDidInitialize() Default implementation

    Called when Unblu is initialized

    Default Implementation

    Declaration

    Swift

    func unbluDidInitialize()
  • unbluDidDeinitialize() Default implementation

    Called when Unblu is de-initialized

    Default Implementation

    Declaration

    Swift

    func unbluDidDeinitialize()
  • unbluUiIsReady() Default implementation

    Called when the Unblu UI is ready

    Default Implementation

    Declaration

    Swift

    func unbluUiIsReady()
  • unbluDidPreloadUi() Default implementation

    Called 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 updated

    Default Implementation

    Declaration

    Swift

    func unblu(didUpdatePersonInfo personInfo: PersonInfo)

    Parameters

    personInfo

    The updated PersonInfo

  • Called when the PersonActivityInfo is updated

    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.

  • Called when Unblu requests the UnbluView is hidden

    Default 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 Unblu requests the UnbluView is shown

    Default 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:description:) Default implementation

    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

  • 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

  • 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

  • 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