Type Aliases
The following type aliases are available globally.
-
Returns a
DirectCall
and an error after a call toSendBirdCall.dial
.Since
1.0.0Declaration
Swift
public typealias DirectCallHandler = (_ call: DirectCall?, _ error: SBCError?) -> Void
Parameters
call
DirectCall
instance of the newly initiated call.error
An 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?) -> Void
Parameters
customItems
Key-value dictionary of the updated custom items.
error
An 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?) -> Void
Parameters
customItems
Key-value dictionary of the updated custom items.
affectedKeys
Array of String keys that are modified as a result of the function call.
error
An 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?) -> Void
Parameters
error
An error that could occur while processing the request.
-
Returns an
UIImage
and an error after capturing a video call.Since
1.3.0Declaration
Swift
public typealias CaptureVideoViewHandler = (_ image: UIImage?, _ error: SBCError?) -> Void
Parameters
image
Captured image of the video view.
error
An 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
DirectCallLog
and an error after a call toDirectCallLogListQuery.next
.Since
1.0.0
Declaration
Swift
public typealias CallLogsResultHandler = (_ callLogs: [DirectCallLog]?, _ error: SBCError?) -> Void
Parameters
callLogs
An array of
DirectCallLog
from the query request.error
An 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?) -> Void
Parameters
callUUID
A unique identifier(
UUID
) value of a specific call. -
Handles the
recordingId
and 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?) -> Void
Parameters
recordingId
A unique value for the specific recording session used to identify and stop the recording.
error
An error that could occur while starting a recording session.