One Logo Pool Ball
RoomPlan · IOS API REFERENCE

ChairType

enum · iOS 17.0+ · SDK 27.1

enum ChairType

Types of chair that 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 chair's look. 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.

Members (5)

get · iOS 17.0+

parentCategory

TypeScript
get parentCategory(): (CapturedElementCategory) | null
Swift declaration
static var parentCategory: CapturedElementCategory? { get }

A category to which this room attribute belongs.

get · iOS 17.0+

shortIdentifier

TypeScript
getShortIdentifier($self: ChairType): string
Swift declaration
var shortIdentifier: String { get }

A human-readable identifier for the attribute.

get · iOS 17.0+

allCases

TypeScript
get allCases(): Array<ChairType>
Swift declaration
nonisolated static var allCases: [ChairType] { get }

A collection of all values of this type.

init · iOS 17.0+

init

TypeScript
init(rawValue: string): (ChairType) | null
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 17.0+

rawValue

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

Skipped declarations

No declarations were skipped in this snapshot.

All RoomPlan types →