---
title: UCKeyStateRecordsIndex
framework: coreservices
role: symbol
role_heading: Structure
path: coreservices/uckeystaterecordsindex
---

# UCKeyStateRecordsIndex

Provides a count of, and offsets to, dead-key state records in a 'uchr' resource.

## Declaration

```swift
struct UCKeyStateRecordsIndex
```

## Overview

Overview The Unicode keyboard-layout ('uchr') resource contains the data necessary to map virtual key codes to Unicode character codes for a given keyboard layout. The 'uchr' format consists of a header information section and five key mapping data sections. The UCKeyStateRecordsIndex type is used in the third key mapping section of the 'uchr' resource. The UCKeyStateRecordsIndex structure is an index to dead-key state records of type  UCKeyStateRecord. Any keycode-modifier combination which initiates a dead-key state or which is a valid terminator of a dead-key state refers to one of these records, via the UCKeyStateRecordsIndex structure.

## Topics

### Initializers

- [init()](coreservices/uckeystaterecordsindex/1444702-init.md)
- [init(keyStateRecordsIndexFormat:keyStateRecordCount:keyStateRecordOffsets:)](coreservices/uckeystaterecordsindex/1449991-init.md)

### Instance Properties

- [keyStateRecordCount](coreservices/uckeystaterecordsindex/1390398-keystaterecordcount.md)
- [keyStateRecordOffsets](coreservices/uckeystaterecordsindex/1390490-keystaterecordoffsets.md)
- [keyStateRecordsIndexFormat](coreservices/uckeystaterecordsindex/1390380-keystaterecordsindexformat.md)
