SinchClientRegistration

public final class SinchClientRegistration

Callback object to be used to proceed in user registration process when registration credentials for the user in question have been obtained.

  • Call to inform SinchClient that it can register itself using provided token

    Declaration

    Swift

    public func register(withJWT jwt: String)

    Parameters

    jwt

    JWT token

  • If the application fails to provide a signed user registration token (JWT), it must notify the Sinch client via this method.

    Calling this method will have the effect that the client delegate will receive a call to SinchClientDelegate.clientDidFail(_:error:).

    Declaration

    Swift

    public func registerDidFail(error: Error)

    Parameters

    error

    Error that prevented obtaining a user registration token (JWT).