init
TypeScriptinitRawValue(rawValue: string): DeviceActivityEvent_NameSwift declarationinit(rawValue: String)Creates a new instance with the specified raw value. - Parameters: - rawValue: The raw value to use for the new instance.
struct · iOS 15.0+ · SDK 27.1
struct NameThe unique name of an event. `DeviceActivityEvent.Name` allows applications to associate an event with some of their own data.
initRawValue(rawValue: string): DeviceActivityEvent_NameSwift declarationinit(rawValue: String)Creates a new instance with the specified raw value. - Parameters: - rawValue: The raw value to use for the new instance.
getRawValue($self: DeviceActivityEvent_Name): stringSwift declarationvar rawValue: StringThe 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"
setRawValue($self: DeviceActivityEvent_Name, value: string): voidSwift declarationvar rawValue: StringThe 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(rawValue: string): DeviceActivityEvent_NameSwift declarationinit(_ rawValue: String)Creates a new instance with the specified raw value. - Parameters: - rawValue: The raw value to use for the new instance.
No declarations were skipped in this snapshot.