Inherits from NSObject
Declared in UAActionRegistryEntry.h

Overview

An entry in the UAActionRegistry.

Properties

action

The entry’s action.

@property (nonatomic, strong) UAAction *action

Declared In

UAActionRegistryEntry.h

names

Registered names

@property (nonatomic, readonly) NSArray<NSString*> *names

Declared In

UAActionRegistryEntry.h

predicate

The entry’s predicate.

@property (nonatomic, copy, nullable) UAActionPredicate predicate

Declared In

UAActionRegistryEntry.h

Class Methods

entryForAction:predicate:

UAActionRegistryEntry class factory method.

+ (instancetype)entryForAction:(UAAction *)action predicate:(UAActionPredicate)predicate

Parameters

action

The entry’s action.

predicate

The entry’s predicate.

Declared In

UAActionRegistryEntry.h

Instance Methods

actionForSituation:

Returns the action for the situation, or the default action if there are no situation overrides.

- (UAAction *)actionForSituation:(UASituation)situation

Parameters

situation

The specified UASituation enum value

Return Value

UAAction for the situation.

Declared In

UAActionRegistryEntry.h