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 StorageTypeTypes of storage area that the framework identifies in a captured room. When the framework observes a storage area in the physical environment, it chooses a type among these options that best matches the type of storage. The framework adds that instance of this enum to the ``CapturedRoom/Object/attributes`` array for the object (see ``CapturedRoom/objects``) in the captured room that represents the storage in the captured room.
get parentCategory(): (CapturedElementCategory) | nullSwift declarationstatic var parentCategory: CapturedElementCategory? { get }A category to which this room attribute belongs.
getShortIdentifier($self: StorageType): stringSwift declarationvar shortIdentifier: String { get }A human-readable identifier for the attribute.
get allCases(): Array<StorageType>Swift declarationnonisolated static var allCases: [StorageType] { get }A collection of all values of this type.
init(rawValue: string): (StorageType) | 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: StorageType): 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.