init
TypeScriptinitRawValue(rawValue: string): DeviceActivityNameSwift 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 DeviceActivityNameThe unique name of an activity. Use `DeviceActivityName` to associate an activity with some of your application's data. It's not possible to have multiple activities with the same name. Monitoring a second activity with the same name as a previous activity overwrites the schedule for the first one.
initRawValue(rawValue: string): DeviceActivityNameSwift 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: DeviceActivityName): 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: DeviceActivityName, 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): DeviceActivityNameSwift 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.