ACTrainingRequiredViewController

open class ACTrainingRequiredViewController : UIViewController

View controller that informs the user that training is required. Activeconnect includes a default UI for this view controller. A custom UI can be provided by creating a nib file containing an ACTrainingRequiredViewController and set the values of ACTrainingViewController.instructionsBundleIdentifier and ACTrainingViewController.instructionsNibName.

  • Creates an ACTrainingRequiredViewControllerDelegate

    If bundleIdentifier or nibName are nil the default UI for the status controller are used. Applications that implemenent custom a custom UI should have a start button that is connected to the ACTrainingRequiredViewController.onStart member.

    Declaration

    Swift

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

    Parameters

    statusDelegate

    The delegate that is called when the start button is tapped.

    bundleIdentifier

    The ID of the bundle containing the UI for the view controller.

    nibName

    The name of the nib file containing the UI.

    Return Value

    ACTrainingRequiredViewController

  • Handler for the starting training. Applications that provide a custom UI should connect their start button to this handler.

    Declaration

    Swift

    @IBAction
    public func onStart(_ sender: Any)