CommandOptions

public class CommandOptions : ConstantOptions

A ConstantOptions instance that is mapping a command name string to the “command_name” property in the result payload. Intended to be used for so called Remote Command Dispatchers.

  • Configures this command mapping to only apply to event-type dispatches. This adds a filter condition that checks if the event type equals “event”.

    Declaration

    Swift

    public func forAllEvents()
  • Configures this command mapping to only apply to view-type dispatches. This adds a filter condition that checks if the event type equals “view”.

    Declaration

    Swift

    public func forAllViews()