SINClientDelegate

Objective-C

@protocol SINClientDelegate <NSObject>

Swift

protocol SINClientDelegate : NSObjectProtocol

The delegate of a SINClient object must adopt the SINClientDelegate 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.

    See

    SINClient

    Declaration

    Objective-C

    - (void)client:(id<SINClient>)client
        requiresRegistrationCredentials:
            (id<SINClientRegistration>)registrationCallback;

    Parameters

    client

    The client informing the delegate that it requires additional registration details.

    registrationCallback

    The callback object that is to be called when registration credentials have been fetched.

  • Tells the delegate that the client started the calling functionality.

    See

    SINClient

    Declaration

    Objective-C

    - (void)clientDidStart:(id<SINClient>)client;

    Swift

    func clientDidStart(_ client: SINClient!)

    Parameters

    client

    The client informing the delegate that the calling functionality started successfully.

  • Tells the delegate that a client failure occurred.

    See

    SINClient

    Declaration

    Objective-C

    - (void)clientDidFail:(id<SINClient>)client error:(NSError *)error;

    Swift

    func clientDidFail(_ client: SINClient!, error: Error!)

    Parameters

    client

    The client informing the delegate that it failed to start or start listening.

    error

    Error object that describes the problem.