IPTrainingRequiredViewController

open class IPTrainingRequiredViewController : UIViewController

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

  • Undocumented

    Declaration

    Swift

    public var onStart: ((_ sender: IPTrainingRequiredViewController) -> Void)?
  • Creates an IPTrainingRequiredViewController

    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?(bundleIdentifier: String?, nibName: String?, onStart: @escaping (_ sender: IPTrainingRequiredViewController) -> Void)

    Parameters

    bundleIdentifier

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

    nibName

    The name of the nib file containing the UI.

    onSTart

    Code block to execute when the start button is tapped.

    Return Value

    IPTrainingRequiredViewController

  • 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)