---
title: keyboardInputSources
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextinputcontext/keyboardinputsources
---

# keyboardInputSources

The array of keyboard text input source identifier strings available to the receiver. (read-only)

## Declaration

```swift
var keyboardInputSources: [NSTextInputSourceIdentifier]? { get }
```

## Discussion

Discussion The Text Input Source Services API identifies text input sources with text input source identifier strings (for example, com.apple.inputmethod.Kotoeri.Japanese) supplied by the underlying text input sources framework. The ID corresponds to the kTISPropertyInputSourceID attribute. For more information on the Text Input Source Services API, see Text Input Source Services.

## See Also

### Handling Input Sources

- [handleEvent(_:)](appkit/nstextinputcontext/handleevent(_:).md)
- [discardMarkedText()](appkit/nstextinputcontext/discardmarkedtext().md)
- [invalidateCharacterCoordinates()](appkit/nstextinputcontext/invalidatecharactercoordinates().md)
- [selectedKeyboardInputSource](appkit/nstextinputcontext/selectedkeyboardinputsource.md)
- [localizedName(forInputSource:)](appkit/nstextinputcontext/localizedname(forinputsource:).md)
- [NSTextInputSourceIdentifier](appkit/nstextinputsourceidentifier.md)
