LCValue

public protocol LCValue : NSCoding, NSCopying, LCValueConvertible, NSObjectProtocol

Abstract data type.

All LeanCloud data types must confirm this protocol.

  • The JSON representation.

    Declaration

    Swift

    var jsonValue: Any { get }
  • The raw value of current value.

    For JSON-compatible objects, such as string, array, etc., raw value is the value of corresponding Swift built-in type. For some objects of other types, such as LCObject, LCACL etc., raw value is itself.

    Declaration

    Swift

    var rawValue: Any { get }
  • intValue Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var intValue: Int? { get }
  • uintValue Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var uintValue: UInt? { get }
  • int8Value Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var int8Value: Int8? { get }
  • uint8Value Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var uint8Value: UInt8? { get }
  • int16Value Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var int16Value: Int16? { get }
  • uint16Value Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var uint16Value: UInt16? { get }
  • int32Value Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var int32Value: Int32? { get }
  • uint32Value Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var uint32Value: UInt32? { get }
  • int64Value Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var int64Value: Int64? { get }
  • uint64Value Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var uint64Value: UInt64? { get }
  • floatValue Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var floatValue: Float? { get }
  • doubleValue Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var doubleValue: Double? { get }
  • boolValue Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var boolValue: Bool? { get }
  • stringValue Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var stringValue: String? { get }
  • arrayValue Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var arrayValue: [Any]? { get }
  • dictionaryValue Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var dictionaryValue: [String : Any]? { get }
  • dataValue Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var dataValue: Data? { get }
  • dateValue Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var dateValue: Date? { get }