UserEventDelegate

@objc(SBDUserEventDelegate)
public protocol UserEventDelegate

Represents a delegate to receive user relates events

  • Invoked when list of users has been discovered

    Declaration

    Swift

    @objc
    optional func didDiscoverFriends(_ friends: [User]?)

    Parameters

    friends

    list of user

  • Invoked when total unread message count has been updated

    Since

    3.0.154

    Declaration

    Swift

    @objc
    optional func didUpdateTotalUnreadMessageCount(
        _ totalCount: Int32,
        totalCountByCustomType: [String: Int]?
    )

    Parameters

    totalCount

    New total unread count

    totalCountByCustomType

    Dictionary with key of custom tyeps and value of unread count