One Logo Pool Ball
WidgetKit · IOS API REFERENCE

WidgetCenter.UserInfoKey

struct · iOS 14.0+ · SDK 27.1

struct UserInfoKey

An object that defines keys for accessing information in a user info dictionary. - Note: In Objective-C, use ``WGWidgetUserInfoKeyFamily`` and ``WGWidgetUserInfoKeyKind`` instead.

Members (3)

get · iOS 14.0+

activityID

TypeScript
static get activityID(): string
Swift declaration
static let activityID: String

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

get · iOS 14.0+

kind

TypeScript
static get kind(): string
Swift declaration
static let kind: String

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

get · iOS 14.0+

family

TypeScript
static get family(): string
Swift declaration
static let family: String

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

Skipped declarations

No declarations were skipped in this snapshot.

All WidgetKit types →