SinchClientDelegate
public protocol SinchClientDelegate : AnyObject
The delegate of a SinchClient object must adopt the SinchClientDelegate protocol. The required methods allows responding to client state changes (start and stop), and providing user registration credentials (JWT).
-
Tells the delegate that it is required to provide additional registration credentials. This method is invoked on the queue specified via
-[Sinch setCallbackQueue:], which defaults to the main queue.See also
See also
Declaration
Swift
func clientRequiresRegistrationCredentials(_ client: SinchClient, withCallback callback: SinchClientRegistration)Parameters
clientThe client informing the delegate that it requires additional registration details.
callbackThe callback object that is to be called when registration credentials have been fetched.
-
Tells the delegate that the client started the calling functionality. This method is invoked on the queue specified via
-[Sinch setCallbackQueue:], which defaults to the main queue.See also
Declaration
Swift
func clientDidStart(_ client: SinchClient)Parameters
clientThe client informing the delegate that the calling functionality started successfully.
-
Tells the delegate that a client failure occurred. This method is invoked on the queue specified via
-[Sinch setCallbackQueue:], which defaults to the main queue.See also
Declaration
Swift
func clientDidFail(_ client: SinchClient, error: Error)Parameters
clientThe client informing the delegate that it failed to start or start listening.
errorError object that describes the problem.