UAActionArguments

@interface UAActionArguments : NSObject

Contains the arguments passed into an action during execution.

  • Situation of the action

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) UASituation situation;

    Swift

    var situation: UASituation { get }
  • The value associated with the action

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) id value;

    Swift

    var value: Any? { get }
  • The argument’s metadata. Metadata provides more information about the environment that the action was triggered from.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSDictionary *metadata;

    Swift

    var metadata: [AnyHashable : Any]? { get }
  • UAActionArguments factory method.

    Declaration

    Objective-C

    + (nonnull instancetype)argumentsWithValue:(nullable id)value
                                 withSituation:(UASituation)situation;

    Swift

    convenience init(value: Any?, with situation: UASituation)

    Parameters

    value

    The value associated with the arguments.

    situation

    The situation of the action.

  • UAActionArguments factory method.

    Declaration

    Objective-C

    + (nonnull instancetype)argumentsWithValue:(nullable id)value
                                 withSituation:(UASituation)situation
                                      metadata:(nullable NSDictionary *)metadata;

    Swift

    convenience init(value: Any?, with situation: UASituation, metadata: [AnyHashable : Any]?)

    Parameters

    value

    The value associated with the arguments.

    situation

    The situation of the action.

    metadata

    for the action - e.g. webview, payload, etc.