<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/WidgetCenter/UserInfoKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit0A6CenterC11UserInfoKeyV"
  },
  "title" : "WidgetCenter.UserInfoKey"
}
-->

# WidgetCenter.UserInfoKey

An object that defines keys for accessing information in a user info dictionary.

```
struct UserInfoKey
```

## Overview> Note: In Objective-C, use ``doc://com.apple.WidgetKit/documentation/WidgetKit/WGWidgetUserInfoKeyFamily`` and
> ``doc://com.apple.WidgetKit/documentation/WidgetKit/WGWidgetUserInfoKeyKind`` instead.

## Topics

### Describing a widget

[`family`](/documentation/WidgetKit/WidgetCenter/UserInfoKey/family)

A key you use to access the widget’s family.

[`kind`](/documentation/WidgetKit/WidgetCenter/UserInfoKey/kind)

A key you use to access the widget’s kind. The value matches the `kind`
property specified in the widget’s configuration.

### Describing a Live Activity

[`activityID`](/documentation/WidgetKit/WidgetCenter/UserInfoKey/activityID)

A key you use to access the activity ID if the widget represents a
Live Activity.



---

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)