<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StateReporting",
  "identifier" : "/documentation/StateReporting/SRStateReporter/reporterForDomain:",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "StateReporting"
    ],
    "preciseIdentifier" : "c:objc(cs)SRStateReporter(cm)reporterForDomain:"
  },
  "title" : "reporterForDomain:"
}
-->

# reporterForDomain:

Returns the reporter instance unique to the given domain name.

```
+ (instancetype) reporterForDomain:(NSString *) domain;
```

## Parameters

`domain`

The reverse DNS-style name of the domain whose state you are reporting.

## Return Value

The reporter instance for the specified domain.

## Discussion

This method is the only way to obtain an `SRStateReporter`. Calling it multiple times with
the same domain string always returns the same object.

---

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)