Type Aliases

The following type aliases are available globally.

  • Void handler

    Declaration

    Swift

    public typealias VoidHandler = (() -> Void)
  • Error handler

    Declaration

    Swift

    public typealias SBErrorHandler = ((_ error: SBError?) -> Void)
  • User handler

    Declaration

    Swift

    public typealias UserHandler = ((_ user: User?, _ error: SBError?) -> Void)
  • Push token handler

    Declaration

    Swift

    public typealias GetPushTokensHandler = ((_ pushTokens: [String],
                                              _ pushTokenType: PushTokenType,
                                              _ hasMore: Bool,
                                              _ token: String?,
                                              _ error: SBError?) -> Void)
  • Channel Change log handler

    Declaration

    Swift

    public typealias ChannelChangeLogsHandler = ((_ updatedChannel: [GroupChannel]?,
                                                     _ deletedChannelURLs: [String]?,
                                                     _ hasMore: Bool,
                                                     _ token: String?,
                                                     _ error: SBError?) -> Void)
  • Channel Change log pager handler

    Declaration

    Swift

    public typealias ChannelChangeLogsPagerHandler = ((_ updatedChannels: [GroupChannel],
                                                _ deletedChannelURLs: [String],
                                                _ token: String?,
                                                _ error: SBError?) -> Void)
  • Snooze Period handler

    Declaration

    Swift

    public typealias SnoozePeriodHandler = ((_ enabled: Bool,
                                                 _ startTimestamp: Int64,
                                                 _ endTimestamp: Int64,
                                                 _ error: SBError?) -> Void)
  • Push trigger option handler

    Declaration

    Swift

    public typealias PushTriggerOptionHandler = ((_ pushTriggerOption: PushTriggerOption,
                                                     _ error: SBError?) -> Void)
  • reaction event handler

    Declaration

    Swift

    public typealias ReactionEventHandler = ((_ event: ReactionEvent?, _ error: SBError?) -> Void)
  • Message handler

    Declaration

    Swift

    public typealias BaseMessageHandler = ((_ message: BaseMessage?, _ error: SBError?) -> Void)
  • User Message handler

    Declaration

    Swift

    public typealias UserMessageHandler = ((_ message: UserMessage?, _ error: SBError?) -> Void)
  • File Message handler

    Declaration

    Swift

    public typealias FileMessageHandler = ((_ message: FileMessage?, _ error: SBError?) -> Void)
  • Binary progress handler

    Declaration

    Swift

    public typealias ProgressHandler = ((_ bytesSent: Int64,
                                            _ totalBytesSent: Int64,
                                            _ totalBytesExpectedToSend: Int64) -> Void)
  • multi file progress handler

    Declaration

    Swift

    public typealias MultiProgressHandler = ((_ requestId: String?,
                                              _ bytesSent: Int64,
                                            _ totalBytesSent: Int64,
                                            _ totalBytesExpectedToSend: Int64) -> Void)
  • Message change log handler

    Declaration

    Swift

    public typealias MessageChangeLogHandler = ((_ updatedMessages: [BaseMessage]?,
                                                    _ deletedMessageIds: [Int64]?,
                                                    _ hasMore: Bool,
                                                    _ token: String?,
                                                    _ error: SBError?) -> Void)
  • Message List handler

    Declaration

    Swift

    public typealias MessageListHandler = ((_ messages: [BaseMessage]?, _ error: SBError?) -> Void)
  • Message request IDs handler

    Declaration

    Swift

    public typealias MessageRequestIdsHandler = ((_ requestIds: [String]?, _ error: SBError?) -> Void)
  • Channel meta data handler

    Declaration

    Swift

    public typealias MetaDataHandler = ((_ metaData: [String : String]?, _ error: SBError?) -> Void)
  • Channel meta counter handler

    Declaration

    Swift

    public typealias MetaCountersHandler = ((_ metaData: [String : Int]?, _ error: SBError?) -> Void)
  • Base channel handler

    Declaration

    Swift

    public typealias BaseChannelHandler = ((_ channel: BaseChannel?, _ error: SBError?) -> Void)
  • Group channel handler

    Declaration

    Swift

    public typealias GroupChannelHandler = ((_ channel: GroupChannel?, _ error: SBError?) -> Void)
  • Distinct group channel handler

    Declaration

    Swift

    public typealias DistinctGroupChannelHandler = ((_ channel: GroupChannel?, _ isCreated: Bool, _ error: SBError?) -> Void)
  • Group channel handler

    Declaration

    Swift

    public typealias OpenChannelHandler = ((_ channel: OpenChannel?, _ error: SBError?) -> Void)
  • Push trigger option handler

    Declaration

    Swift

    public typealias GroupChannelPushTriggerOptionHandler = ((_ option: GroupChannelPushTriggerOption, _ error: SBError?) -> Void)
  • Threaded handler

    Declaration

    Swift

    public typealias ThreadedMessageListHandler = ((_ parentMessage: BaseMessage?,
                                                       _ messages: [BaseMessage]?,
                                                       _ error: SBError?) -> Void)
  • MuteInfo handler

    Declaration

    Swift

    public typealias MuteInfoHandler = ((_ isMuted: Bool,
                                            _ description: String,
                                            _ startAt: Int64,
                                            _ endAt: Int64,
                                            _ remainingDuration: Int64,
                                            _ error: SBError?) -> Void)
  • General response handler

    Declaration

    Swift

    public typealias SBDResponseHandler = ((_ response: Any?, _ error: SBError?) -> Void)
  • Poll handler

    Declaration

    Swift

    public typealias PollHandler = (_ poll: Poll?, _ error: SBError?) -> Void
  • Poll List Handler

    Declaration

    Swift

    public typealias PollListHandler = (_ polls: [Poll]?, _ error: SBError?) -> Void
  • Poll Option handler

    Declaration

    Swift

    public typealias PollOptionHandler = (_ option: PollOption?, _ error: SBError?) -> Void
  • Poll ChangeLogs handler

    Declaration

    Swift

    public typealias PollChangeLogsHandler = ((_ updatedPolls: [Poll]?,
                                               _ deletedPollIds: [Int64]?,
                                               _ hasMore: Bool,
                                               _ token: String?,
                                               _ error: SBError?) -> Void)
  • Poll temp handler

    Declaration

    Swift

    public typealias PollVoteEventHandler = ((_ event: PollVoteEvent?, _ error: SBError?) -> Void)?
  • Group channel list handler

    Declaration

    Swift

    public typealias GroupChannelListHandler = (_ channels: [GroupChannel]?, _ error: SBError?) -> Void
  • Open channel list handler

    Declaration

    Swift

    public typealias OpenChannelListHandler = (_ channels: [OpenChannel]?, _ error: SBError?) -> Void
  • User list handler

    Declaration

    Swift

    public typealias UserListHandler = (_ users: [User]?, _ error: SBError?) -> Void
  • RestrictedUser list handler

    Declaration

    Swift

    public typealias RestrictedUserListHandler = (_ users: [RestrictedUser]?, _ error: SBError?) -> Void
  • Voter list Handler

    Declaration

    Swift

    public typealias VoterListHandler = (_ voters: [User]?, _ error: SBError?) -> Void
  • Member list handler

    Declaration

    Swift

    public typealias MemberListHandler = (_ members: [Member]?, _ error: SBError?) -> Void
  • Count handler

    Declaration

    Swift

    public typealias CountHandler = (_ count: UInt, _ error: SBError?) -> Void
  • Sendbird objc comparator

    Declaration

    Swift

    public typealias SBObjectComparator = (_ obj1: Any?, _ obj2: Any?) -> ComparisonResult