One Logo Pool Ball
DeviceActivity · IOS API REFERENCE

DeviceActivityData.User

struct · iOS 16.0+ · SDK 27.1

struct User

Members (6)

get · iOS 16.0+

nameComponents

TypeScript
get nameComponents(): (_Foundation_PersonNameComponents) | null
Swift declaration
var nameComponents: PersonNameComponents?

The user's name. You can use this property to construct the user's name for display. Use the components with an instance of <doc://com.apple.documentation/documentation/foundation/personnamecomponentsformatter> to create a string representation for the current locale.

set · iOS 16.0+

nameComponents

TypeScript
set nameComponents(value: (_Foundation_PersonNameComponents) | null)
Swift declaration
var nameComponents: PersonNameComponents?

The user's name. You can use this property to construct the user's name for display. Use the components with an instance of <doc://com.apple.documentation/documentation/foundation/personnamecomponentsformatter> to create a string representation for the current locale.

get · iOS 16.0+

role

TypeScript
get role(): DeviceActivityData_User_FamilyRole
Swift declaration
var role: DeviceActivityData.User.FamilyRole

The type of the user.

set · iOS 16.0+

role

TypeScript
set role(value: DeviceActivityData_User_FamilyRole)
Swift declaration
var role: DeviceActivityData.User.FamilyRole

The type of the user.

get · iOS 16.0+

appleID

TypeScript
get appleID(): (string) | null
Swift declaration
var appleID: String?

The AppleID of the user.

set · iOS 16.0+

appleID

TypeScript
set appleID(value: (string) | null)
Swift declaration
var appleID: String?

The AppleID of the user.

Skipped declarations

No declarations were skipped in this snapshot.

All DeviceActivity types →