---
title: "shouldEnableAction(for:identifier:)"
framework: Objective-C Runtime
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/shouldenableaction(for:identifier:)"
---

# shouldEnableAction(for:identifier:)

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

## Declaration

```swift
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

Return Value YES if the action is applicable; otherwise, NO.

## Discussion

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