parentCategory
TypeScriptget parentCategory(): (CapturedElementCategory) | nullSwift declarationstatic var parentCategory: CapturedElementCategory? { get }A category to which this room attribute belongs.
enum · iOS 17.0+ · SDK 27.1
enum ChairBackTypeTypes of chair back the framework identifies in a captured room. When the framework observes a chair in the physical environment during a scan, it chooses a type among these options that best matches the look of the chair's back. The framework adds that instance of this enum to the ``CapturedRoom/Object/attributes`` array for the object (see ``CapturedRoom/objects``) that represents the chair in the captured room.
get parentCategory(): (CapturedElementCategory) | nullSwift declarationstatic var parentCategory: CapturedElementCategory? { get }A category to which this room attribute belongs.
getShortIdentifier($self: ChairBackType): stringSwift declarationvar shortIdentifier: String { get }A human-readable identifier for the attribute.
get allCases(): Array<ChairBackType>Swift declarationnonisolated static var allCases: [ChairBackType] { get }A collection of all values of this type.
init(rawValue: string): (ChairBackType) | nullSwift declarationinit?(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.
getRawValue($self: ChairBackType): stringSwift declarationvar rawValue: String { get }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"
No declarations were skipped in this snapshot.