ACNotificationHandlerDelegate

public protocol ACNotificationHandlerDelegate

Protocol used by ACNotificationHandler to communicate with the application

  • Called by ACNotificationHandler when the application should present the UI for handling Authentication Requests. The implementor should create an instance of ACAuthenticationViewController and present it.

    Declaration

    Swift

    func presentAuthenticationUI(request: ACAuthenticationRequest, device: ACMobileDevice)

    Parameters

    request

    The authentication request to process. This value should be used when creating the ACAuthenticationViewController that will process the request.

    device

    The ACMobileDevice stored locally that contains information to complete the authentication process. This value should be used when creating the ACAuthenticationViewController that will process the request.

  • Called by ACNotificationHandler when a status chaned notification is received. The client application does not have to do anything with this notification bur can do something like display an alert to inform the user that session status has changed.

    Declaration

    Swift

    func sessionStatusChanged(status: ACSessionStatus)

    Parameters

    status

    Data describing the status of the session. This value can be used to get information to display to the user, such as application name, status.