One Logo Pool Ball
MetricKit · IOS API REFERENCE

StateReportingDomain

struct · iOS 27.0+ · SDK 27.1

struct StateReportingDomain

The reverse-DNS notation StateReporting domain

Members (5)

get · iOS 27.0+

description

TypeScript
getDescription($self: StateReportingDomain): string
Swift declaration
var description: String { get }

A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.

init · iOS 27.0+

init

TypeScript
initStringLiteral(value: string): StateReportingDomain
Swift declaration
init(stringLiteral value: String)

Creates an instance initialized to the given string value. - Parameter value: The value of the new instance.

init · iOS 27.0+

init

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

Creates a new instance with the specified raw value. If there is no value of the type that corresponds with the specified raw value, this initializer returns `nil`. For example: enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil" - Parameter rawValue: The raw value to use for the new instance.

get · iOS 27.0+

rawValue

TypeScript
getRawValue($self: StateReportingDomain): string
Swift declaration
let 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"

get · iOS 27.0+

codingKey

TypeScript
getCodingKey($self: StateReportingDomain): SDKHandle
Swift declaration
var codingKey: any CodingKey { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

StateReportingDomain.init(codingKey:)

This declaration needs Swift generic type arguments. (no canonical witness for T)

All MetricKit types →