LCDictionary
@dynamicMemberLookup
public final class LCDictionary : NSObject, LCValue, LCValueExtension, Collection, ExpressibleByDictionaryLiteral
extension LCDictionary: LCDictionaryConvertible
LeanCloud dictionary type.
It is a wrapper of Swift.Dictionary
type, used to store a dictionary value.
-
Declaration
Swift
public typealias Key = String
-
Declaration
Swift
public typealias Value = LCValue
-
-
Undocumented
-
Undocumented
Declaration
Swift
public override init()
-
Undocumented
-
Undocumented
Declaration
Swift
public convenience init(_ value: [Key : LCValueConvertible])
-
Create copy of dictionary.
Declaration
Swift
public convenience init(_ dictionary: LCDictionary)
Parameters
dictionary
The dictionary to be copied.
-
-
Undocumented
Declaration
Swift
public convenience init( application: LCApplication = LCApplication.default, unsafeObject: Any) throws
-
Undocumented
Declaration
Swift
public required init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
public func encode(with aCoder: NSCoder)
-
Undocumented
Declaration
Swift
public func copy(with zone: NSZone?) -> Any
-
Undocumented
Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool
-
-
-
-
Declaration
-
Declaration
-
Undocumented
Declaration
Swift
public subscript(key: Key) -> LCValueConvertible? { get set }
-
Undocumented
Declaration
Swift
public subscript(dynamicMember key: String) -> LCValueConvertible? { get set }
-
Removes the given key and its associated value from dictionary.
Parameters
key
The key to remove along with its associated value.
Return Value
The value that was removed, or
nil
if the key was not found. -
Undocumented
Declaration
Swift
public func removeAll(keepingCapacity keepCapacity: Bool = false)
-
Declaration
Swift
public var jsonValue: Any { get }
-
Declaration
Swift
public var rawValue: Any { get }
-
Undocumented
Declaration
Swift
public var lcValue: LCValue { get }
-
Undocumented
Declaration
Swift
public var lcDictionary: LCDictionary { get }