One Logo Pool Ball
DeviceActivity · IOS API REFERENCE

DeviceActivityName

struct · iOS 15.0+ · SDK 27.1

struct DeviceActivityName

The 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.

Members (4)

init · iOS 15.0+

init

TypeScript
initRawValue(rawValue: string): DeviceActivityName
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: DeviceActivityName): 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: DeviceActivityName, 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): DeviceActivityName
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 →