CLFloor
public class CLFloor : NSObject, NSCopying, NSSecureCoding
Represents the logical floor level of a location inside a building. Apple Documentation
-
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).
Declaration
Swift
public let level: Int
- Floor
-
Indicates that
CLFloor
supports secure coding. Apple DocumentationDeclaration
Swift
public static let supportsSecureCoding: Bool
-
Creates a
CLFloor
instance with the specified floor level.Declaration
Swift
public init(level: Int)
Parameters
level
The logical floor number. Apple Documentation
-
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
-
Initializes a
CLFloor
from anNSCoder
.Declaration
Swift
public required init?(coder: NSCoder)
Parameters
coder
The
NSCoder
instance used to decode the properties. -
Encodes this
CLFloor
into anNSCoder
.Declaration
Swift
public func encode(with coder: NSCoder)
Parameters
coder
The
NSCoder
instance used to encode the properties.