RSDActiveUIStepCommand

public struct RSDActiveUIStepCommand : RSDStringLiteralOptionSet

RSDActiveUIStepCommand is an OptionSet for certain commonly used commands that are used at the beginning and end of an active step.

Seealso

RSDActiveUIStep
  • The corresponding value of the raw type.

    A new instance initialized with rawValue will be equivalent to this instance.

    Declaration

    Swift

    public let rawValue: Int
  • Required initializer for a RawRepresentable.

    Declaration

    Swift

    public init(rawValue: Int)

    Parameters

    rawValue

    The raw value for this command.

  • Initializer for a command (or set of commands) that are represented by a string value.

    Declaration

    Swift

    public init(_ unionSet: RSDActiveUIStepCommand, codingKey: String)

    Parameters

    unionSet

    The set of commands included in this set.

    codingKey

    The string representation.

  • Creates a new instance by decoding from the given decoder.

    This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder to read data from.

  • A mapping of an option to a string value. This is used to allow Codable protocol conformance using human-readable strings rather than Binary flags.

    Declaration

    Swift

    public private(set) static var stringMapping: [String : Int] {
      get
      }
  • A convenience method for mapping a rawValue to a String.

    Declaration

    Swift

    public static func set(rawValue: RawValue, forKey: String)

    Parameters

    rawValue

    The raw value for this command.

    forKey

    The string representation.

  • Play a default sound when the step starts.

    Declaration

    Swift

    public static let playSoundOnStart: RSDActiveUIStepCommand
  • Play a default sound when the step finishes.

    Declaration

    Swift

    public static let playSoundOnFinish: RSDActiveUIStepCommand
  • Play a default sound when the step starts and finishes.

    Declaration

    Swift

    public static let playSound: RSDActiveUIStepCommand
  • Vibrate when the step starts.

    Declaration

    Swift

    public static let vibrateOnStart: RSDActiveUIStepCommand
  • Vibrate when the step finishes.

    Declaration

    Swift

    public static let vibrateOnFinish: RSDActiveUIStepCommand
  • Vibrate when the step starts and finishes.

    Declaration

    Swift

    public static let vibrate: RSDActiveUIStepCommand
  • Start the count down timer automatically when the step start.

    Declaration

    Swift

    public static let startTimerAutomatically: RSDActiveUIStepCommand
  • Transition automatically when the step finishes.

    Declaration

    Swift

    public static let continueOnFinish: RSDActiveUIStepCommand
  • Start the count down timer automatically when the step starts and transition automatically when the step finishes.

    Declaration

    Swift

    public static let transitionAutomatically: RSDActiveUIStepCommand
  • Disable the idle timer if included.

    Declaration

    Swift

    public static let shouldDisableIdleTimer: RSDActiveUIStepCommand
  • Speak a warning when the pause button is tapped.

    Declaration

    Swift

    public static let speakWarningOnPause: RSDActiveUIStepCommand
  • The default commands for a step.

    Declaration

    Swift

    public static let defaultCommands: RSDActiveUIStepCommand