Inherits from NSObject
Declared in UAActionRunner.h

Overview

A helper class for running actions by name or by reference.

Class Methods

runAction:value:situation:

Runs an action.

+ (void)runAction:(UAAction *)action value:(nullable id)value situation:(UASituation)situation

Parameters

action

The action to run

value

The action’s argument value.

situation

The action’s situation.

Declared In

UAActionRunner.h

runAction:value:situation:completionHandler:

Runs an action.

+ (void)runAction:(UAAction *)action value:(nullable id)value situation:(UASituation)situation completionHandler:(UAActionCompletionHandler)completionHandler

Parameters

action

The action to run

value

The action’s argument value.

situation

The action’s situation.

completionHandler

Optional completion handler to run when the action completes.

Declared In

UAActionRunner.h

runAction:value:situation:metadata:

Runs an action.

+ (void)runAction:(UAAction *)action value:(nullable id)value situation:(UASituation)situation metadata:(nullable NSDictionary *)metadata

Parameters

action

The action to run

value

The action’s argument value.

situation

The action’s situation.

metadata

The action’s metadata.

Declared In

UAActionRunner.h

runAction:value:situation:metadata:completionHandler:

Runs an action.

+ (void)runAction:(UAAction *)action value:(nullable id)value situation:(UASituation)situation metadata:(nullable NSDictionary *)metadata completionHandler:(nullable UAActionCompletionHandler)completionHandler

Parameters

action

The action to run

value

The action’s argument value.

situation

The action’s situation.

metadata

The action’s metadata.

completionHandler

Optional completion handler to run when the action completes.

Declared In

UAActionRunner.h

runActionWithName:value:situation:

Runs a registered action with the given name.

+ (void)runActionWithName:(NSString *)actionName value:(nullable id)value situation:(UASituation)situation

Parameters

actionName

The name of the action to run

value

The action’s argument value.

situation

The action’s situation.

Discussion

If the action is not registered the completion handler will be called immediately with [UAActionResult emptyResult]

Declared In

UAActionRunner.h

runActionWithName:value:situation:completionHandler:

Runs a registered action with the given name.

+ (void)runActionWithName:(NSString *)actionName value:(nullable id)value situation:(UASituation)situation completionHandler:(UAActionCompletionHandler)completionHandler

Parameters

actionName

The name of the action to run

value

The action’s argument value.

situation

The action’s situation.

completionHandler

Optional completion handler to run when the action completes.

Discussion

If the action is not registered the completion handler will be called immediately with [UAActionResult emptyResult]

Declared In

UAActionRunner.h

runActionWithName:value:situation:metadata:

Runs a registered action with the given name.

+ (void)runActionWithName:(NSString *)actionName value:(nullable id)value situation:(UASituation)situation metadata:(NSDictionary *)metadata

Parameters

actionName

The name of the action to run

value

The action’s argument value.

situation

The action’s situation.

metadata

The action’s metadata.

Discussion

If the action is not registered the completion handler will be called immediately with [UAActionResult emptyResult]

Declared In

UAActionRunner.h

runActionWithName:value:situation:metadata:completionHandler:

Runs a registered action with the given name.

+ (void)runActionWithName:(NSString *)actionName value:(nullable id)value situation:(UASituation)situation metadata:(nullable NSDictionary *)metadata completionHandler:(nullable UAActionCompletionHandler)completionHandler

Parameters

actionName

The name of the action to run

value

The action’s argument value.

situation

The action’s situation.

metadata

The action’s metadata.

completionHandler

Optional completion handler to run when the action completes.

Discussion

If the action is not registered the completion handler will be called immediately with [UAActionResult emptyResult]

Declared In

UAActionRunner.h