Type Aliases
The following type aliases are available globally.
-
Returns a
DirectCalland an error after a call toSendBirdCall.dial.Since
1.0.0Declaration
Swift
public typealias DirectCallHandler = (_ call: DirectCall?, _ error: SBCError?) -> VoidParameters
callDirectCallinstance of the newly initiated call.errorAn error that could occur while processing the request.
-
Returns a customItems and an error after a call to get the CustomItems.
Since
1.8.0Declaration
Swift
public typealias CustomItemsResultHandler = (_ customItems: [String : String]?, _ error: SBCError?) -> VoidParameters
customItemsKey-value dictionary of the updated custom items.
errorAn error that could occur while changing
CustomItems. -
Returns a customItems, an affectedKeys, and an error after a call to modify the CustomItems.
Since
1.0.0Declaration
Swift
public typealias CustomItemsHandler = (_ customItems: [String : String]?, _ affectedKeys: [String]?, _ error: SBCError?) -> VoidParameters
customItemsKey-value dictionary of the updated custom items.
affectedKeysArray of String keys that are modified as a result of the function call.
errorAn error that could occur while changing
CustomItems. -
Handler called when the processing completes. May contain an error if the request has failed.
Since
1.0.0Declaration
Swift
public typealias ErrorHandler = (_ error: SBCError?) -> VoidParameters
errorAn error that could occur while processing the request.
-
Returns an
UIImageand an error after capturing a video call.Since
1.3.0Declaration
Swift
public typealias CaptureVideoViewHandler = (_ image: UIImage?, _ error: SBCError?) -> VoidParameters
imageCaptured image of the video view.
errorAn error that could occur while capturing a video view.
-
Handler called when the processing completes.
Since
1.0.0Declaration
Swift
public typealias VoidHandler = () -> Void -
Returns a
DirectCallLogand an error after a call toDirectCallLogListQuery.next.Since
1.0.0
Declaration
Swift
public typealias CallLogsResultHandler = (_ callLogs: [DirectCallLog]?, _ error: SBCError?) -> VoidParameters
callLogsAn array of
DirectCallLogfrom the query request.errorAn error that could occur while querying call history.
-
Returns a unique identifier(
UUID) of a call after processing the push payload from CallKit.Since
1.0.0Declaration
Swift
public typealias PushRegistryHandler = (_ callUUID: UUID?) -> VoidParameters
callUUIDA unique identifier(
UUID) value of a specific call. -
Handles the
recordingIdand an error depending on the result at the start of a recording session.Since
1.3.0Declaration
Swift
public typealias RecordingStartedHandler = (_ recorderId: String?, _ error: SBCError?) -> VoidParameters
recordingIdA unique value for the specific recording session used to identify and stop the recording.
errorAn error that could occur while starting a recording session.
View on GitHub
Type Aliases Reference