CLFloor

public class CLFloor : NSObject, NSCopying, NSSecureCoding

Represents the logical floor level of a location inside a building. Apple Documentation

Properties

  • The floor level relative to the ground floor.

    • Floor 0 represents the ground floor.
    • Positive numbers indicate floors above ground level.
    • Negative numbers indicate floors below ground level (e.g., basements).

    Apple Documentation

    Declaration

    Swift

    public let level: Int

NSSecureCoding Conformance

Initialization

  • Creates a CLFloor instance with the specified floor level.

    Declaration

    Swift

    public init(level: Int)

    Parameters

    level

    The logical floor number. Apple Documentation

NSCopying Conformance

  • Creates a copy of this CLFloor instance.

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any

    Return Value

    A new CLFloor object with the same floor level. Apple Documentation

NSSecureCoding Conformance

  • Initializes a CLFloor from an NSCoder.

    Declaration

    Swift

    public required init?(coder: NSCoder)

    Parameters

    coder

    The NSCoder instance used to decode the properties.

  • Encodes this CLFloor into an NSCoder.

    Declaration

    Swift

    public func encode(with coder: NSCoder)

    Parameters

    coder

    The NSCoder instance used to encode the properties.