---
title: "candidates(_:)"
framework: Objective-C Runtime
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/candidates(_:)"
---

# candidates(_:)

Returns an array of candidates.

## Declaration

```swift
func candidates(_ sender: Any!) -> [Any]!
```

## Parameters

- `sender`: The client object requesting the candidates.

## Return Value

Return Value An array of candidates. The returned array should be an autoreleased object.

## Discussion

Discussion An input method should look up its currently composed string and return a list of candidate strings that the composed string might map to.
