One Logo Pool Ball
DeviceActivity · IOS API REFERENCE

DeviceActivityEvent.Name

struct · iOS 15.0+ · SDK 27.1

struct Name

The unique name of an event. `DeviceActivityEvent.Name` allows applications to associate an event with some of their own data.

Members (4)

init · iOS 15.0+

init

TypeScript
initRawValue(rawValue: string): DeviceActivityEvent_Name
Swift declaration
init(rawValue: String)

Creates a new instance with the specified raw value. - Parameters: - rawValue: The raw value to use for the new instance.

get · iOS 15.0+

rawValue

TypeScript
getRawValue($self: DeviceActivityEvent_Name): string
Swift declaration
var rawValue: String

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

set · iOS 15.0+

rawValue

TypeScript
setRawValue($self: DeviceActivityEvent_Name, value: string): void
Swift declaration
var rawValue: String

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

init · iOS 15.0+

init

TypeScript
init(rawValue: string): DeviceActivityEvent_Name
Swift declaration
init(_ rawValue: String)

Creates a new instance with the specified raw value. - Parameters: - rawValue: The raw value to use for the new instance.

Skipped declarations

No declarations were skipped in this snapshot.

All DeviceActivity types →