---
title: SRTextInputSession
framework: sensorkit
role: symbol
role_heading: Class
path: sensorkit/srtextinputsession
---

# SRTextInputSession

The characters a user types for a particular keyboard.

## Declaration

```swift
class SRTextInputSession
```

## Overview

Overview The framework instantiates a new instance of this class every time the keyboard displays after dismissal.

## Topics

### Identifying the Session

- [sessionIdentifier](sensorkit/srtextinputsession/sessionidentifier.md)

### Timing Text Input

- [duration](sensorkit/srtextinputsession/duration.md)

### Inspecting Text Source

- [sessionType](sensorkit/srtextinputsession/sessiontype-swift.property.md)
- [SRTextInputSession.SessionType](sensorkit/srtextinputsession/sessiontype-swift.enum.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Inspecting Text Input

- [textInputSessions](sensorkit/srdeviceusagereport/applicationusage/textinputsessions.md)
