ACAcceptanceViewController

open class ACAcceptanceViewController : UIViewController

View controller for the the acceptance part of the authentication process. The Activeconnect Framework includes a default UI for this authentication stage. ACAcceptanceViewControllers are created by ACAuthenticationViewController. A custom UI can be provided by creating a nib file containing an ACAcceptanceViewController and set the values of ACAuthenticationViewController.acceptanceBundleIdentifier and ACAuthenticationViewController.acceptanceNibName.

  • The delegate that receives the accept, reject response.

    Declaration

    Swift

    @IBOutlet
    public var acceptanceDelegate: ACAcceptanceViewControllerDelegate!
  • Creates an ACAcceptanceViewController, which is used to determin if a user accepts an authentication request. If bundleIndentifier and nibName are nil, Activeconnects default acceptance view cotroller is created. By specifiying these values you can override the asppearance of the acceptance view controller in your application. To do this create a new ViewController in Interface Builder and set the Class and Module properties in the Identity Inspector. Then set the acceptanceBundleIdentifier and acceptanceNibName of your ACAuthenticationViewController.

    Declaration

    Swift

    public init?(delegate: ACAcceptanceViewControllerDelegate, bundleIdentifier: String?, nibName: String?)

    Parameters

    delegate

    ACAcceptanceViewControllerDelegate called when the acceptance request is accepted or rejected.

    bundleIndentifier

    String? The bundle in which to search for the nib file.

    nibName

    String? The name of the nib file to associate with the view controller.

  • The button that is used to accept the authentication request Do not add a tap handler for the button. If you implement a custom UI for the acceptance authentication stage you should connect the Yes/OK button to this member in InterfaceBuilder.

    Declaration

    Swift

    @IBOutlet
    public weak var acceptButton: UIButton!
  • The button that is used to reject the authentication request Do not add a tap handler for the button. If you implement a custom UI for the acceptance authentication stage you should connect the No/Cancel button to this member in InterfaceBuilder.

    Declaration

    Swift

    @IBOutlet
    public weak var rejectButton: UIButton!