ChoiceCallback

@objc(FRChoiceCallback)
public class ChoiceCallback : SingleValueCallback

ChoiceCallback is a representation of OpenAM’s ChoiceCallback to collect single user input from available choices, and with predefined default choice, and to retrieve selected choice from user interaction.

Properties

  • List of available options for ChoiceCallback

    Declaration

    Swift

    @objc
    public var choices: [String]
  • Default choice value defined from OpenAM

    Declaration

    Swift

    @objc
    public var defaultChoice: Int

Init method

  • Sets Int input value of the choice for ChoiceCallback.

    Declaration

    Swift

    public func setValue(_ val: Int)

    Parameters

    val

    Int input value for ChoiceCallback