LCRelation
public final class LCRelation : NSObject, LCValue, LCValueExtension, Sequence
extension LCRelation: LCValueConvertible
LeanCloud relation type.
This type can be used to make one-to-many relationship between objects.
-
Declaration
Swift
public typealias Element = LCObject -
Undocumented
Declaration
Swift
public let application: LCApplication -
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
Swift
public func makeIterator() -> IndexingIterator<[Element]> -
Declaration
Swift
public var jsonValue: Any { get } -
Declaration
Swift
public var rawValue: Any { get } -
Insert a child into relation.
Declaration
Swift
public func insert(_ child: LCObject) throwsParameters
childThe child that you want to insert.
-
Remove a child from relation.
Declaration
Swift
public func remove(_ child: LCObject) throwsParameters
childThe child that you want to remove.
-
Get query of current relation.
Declaration
Swift
public var query: LCQuery { get } -
Declaration
Swift
public var lcValue: LCValue { get }
View on GitHub
Install in Dash
LCRelation Class Reference