<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRMessagesUsageReport",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SRMessagesUsageReport"
  },
  "title" : "SRMessagesUsageReport"
}
-->

# SRMessagesUsageReport

An object that describes the user’s Messages app activity over a period of time.

```
class SRMessagesUsageReport
```

## Overview

This object describes the frequency that the user sends or receives messages, and the relative amount of time the user uses the Messages app.

The [`messagesUsageReport`](/documentation/SensorKit/SRSensor/messagesUsageReport) sensor provides this class as its [`sample`](/documentation/SensorKit/SRFetchResult/sample) type.

## Topics

### Analyzing Message Use

[`duration`](/documentation/SensorKit/SRMessagesUsageReport/duration)

The duration that the report spans.

[`totalIncomingMessages`](/documentation/SensorKit/SRMessagesUsageReport/totalIncomingMessages)

The number of messages the user receives.

[`totalOutgoingMessages`](/documentation/SensorKit/SRMessagesUsageReport/totalOutgoingMessages)

The number of messages the user sends.

[`totalUniqueContacts`](/documentation/SensorKit/SRMessagesUsageReport/totalUniqueContacts)

The user’s number of contacts.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)