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)
-
Push token handler
Declaration
Swift
public typealias GetPushTokensHandler = ((_ pushTokens: [String], _ pushTokenType: PushTokenType, _ hasMore: Bool, _ token: String?, _ error: SBError?) -> Void)
-
Group Channel Change log handler
Declaration
Swift
public typealias ChannelChangeLogsHandler = ((_ updatedChannel: [GroupChannel]?, _ deletedChannelURLs: [String]?, _ hasMore: Bool, _ token: String?, _ error: SBError?) -> Void)
-
Feed Channel Change log handler
Declaration
Swift
public typealias FeedChannelChangeLogsHandler = ((_ updatedChannel: [FeedChannel]?, _ 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)
-
Members Change logs handler
Declaration
Swift
public typealias MembersChangeLogsHandler = ((_ result: MembersChangeLogsResult?, _ 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)
-
MultipleFiles Message handler
Declaration
Swift
public typealias MultipleFilesMessageHandler = ((_ message: MultipleFilesMessage?, _ error: SBError?) -> Void)
-
File-upload handler when sending a MultipleFilesMessage
Declaration
Swift
public typealias FileUploadHandler = ((_ requestId: String, _ index: Int, _ uploadableFileInfo: UploadableFileInfo, _ error: SBError?) -> 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)
-
Feed channel handler
Since
4.6.0Declaration
Swift
public typealias FeedChannelHandler = ((_ channel: FeedChannel?, _ 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 Option handler
Declaration
Swift
public typealias PollOptionHandler = (_ option: PollOption?, _ 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
-
Feed channel list handler
Declaration
Swift
public typealias FeedChannelListHandler = (_ channels: [FeedChannel]?, _ error: SBError?) -> Void
-
Open channel list handler
Declaration
Swift
public typealias OpenChannelListHandler = (_ channels: [OpenChannel]?, _ error: SBError?) -> Void
-
RestrictedUser list handler
Declaration
Swift
public typealias RestrictedUserListHandler = (_ users: [RestrictedUser]?, _ error: SBError?) -> Void
-
Count handler
Declaration
Swift
public typealias CountHandler = (_ count: UInt, _ error: SBError?) -> Void
-
Unread message count handler
Since
4.6.0Declaration
Swift
public typealias UnreadMessageCountHandler = (_ groupChannelCount: UInt, _ feedChannelCount: UInt, _ error: SBError?) -> Void
-
Since
4.6.0Declaration
Swift
public typealias NotificationTemplateHandler = (_ notificationTemplate: NotificationTemplate?, _ error: SBError?) -> Void
-
Since
4.6.0Declaration
Swift
public typealias NotificationTemplateListHandler = (_ notificationTemplateList: NotificationTemplateList?, _ hasMore: Bool, _ token: String?, _ error: SBError?) -> Void
-
Since
4.6.0Declaration
Swift
public typealias GlobalNotificationChannelSettingHandler = (_ globalNotificationChannelSetting: GlobalNotificationChannelSetting?, _ error: SBError?) -> Void
-
Since
4.8.0Declaration
Swift
public typealias PinnedMessageListHandler = (_ messages: [PinnedMessage]?, _ error: SBError?) -> Void
-
Since
4.8.4Declaration
Swift
public typealias UIKitConfigurationHandler = (_ uikitConfiguration: UIKitConfiguration?, _ error: SBError?) -> Void
-
Since
4.17.0Declaration
Swift
public typealias MessageTemplateHandler = (_ messageTemplate: MessageTemplate?, _ error: SBError?) -> Void
-
Since
4.17.0Declaration
Swift
public typealias MessageTemplateListHandler = (_ messageTemplateList: MessageTemplateList?, _ hasMore: Bool, _ token: String?, _ error: SBError?) -> Void
-
Since
4.23.0Declaration
Swift
public typealias ReportCategoryInfoListHandler = ( _ reportCategoryInfoList: [ReportCategoryInfo]?, _ error: SBError? ) -> Void
-
Sendbird objc comparator
Declaration
Swift
public typealias SBObjectComparator = (_ obj1: Any?, _ obj2: Any?) -> ComparisonResult