Instance Method

shouldEnableAction(for:identifier:)

Sent to the delegate to determine whether the action should be enabled.

Declaration

func shouldEnableAction(for person: ABPerson!, identifier: String!) -> Bool

Parameters

person

The person on which the action will be taken.

identifier

The unique identifier of the selected value.

Return Value

true if the action is applicable; otherwise, false.

Discussion

If the property returned by actionProperty() is a multivalue property, identifier contains the unique identifier of the value selected.

See Also

Querying

func actionProperty() -> String!

Sent to the delegate to request the property the action applies to.

func title(for: ABPerson!, identifier: String!) -> String!

Sent to the delegate to request the title of the menu item for the action.