UAAggregateActionResult

@interface UAAggregateActionResult : UAActionResult

Convenience class for aggregating and merging multiple UAActionResults.

  • Adds a new result, merging with the existing result.

    Declaration

    Objective-C

    - (void)addResult:(nonnull UAActionResult *)result
            forAction:(nonnull NSString *)actionName;

    Swift

    func add(_ result: UAActionResult, forAction actionName: String)

    Parameters

    result

    The result to add.

    actionName

    The name of the action that produced the result.

  • Gets the results for an action

    Declaration

    Objective-C

    - (nonnull UAActionResult *)resultForAction:(nonnull NSString *)actionName;

    Swift

    func result(forAction actionName: String) -> UAActionResult

    Parameters

    actionName

    Name of the action

    Return Value

    UAActionResult for the action