Enumerations

The following enumerations are available globally.

  • Undocumented

    See more

    Declaration

    Objective-C

    NS_OPTIONS(NSUInteger, LCFileUploadOption) {
        
        /// default option. Data or File will be persistent cached after successfully uploading.
        /// Note: Remote URL not be cached after successfully uploading.
        LCFileUploadOptionCachingData = 0,
        
        /// Data or File will not be persistent cached after successfully uploading.
        LCFileUploadOptionIgnoringCachingData = 1 << 0
    }

    Swift

    struct LCFileUploadOption : OptionSet
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_OPTIONS(NSUInteger, LCFileDownloadOption) {
        
        /// default option. When start downloading, if cached file exist, then return the cached file directly; else downloading from URL.
        LCFileDownloadOptionCachedData = 0,
        
        /// Always downloading from URL.
        LCFileDownloadOptionIgnoringCachedData = 1 << 0
    }

    Swift

    struct LCFileDownloadOption : OptionSet
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_OPTIONS(NSUInteger, LCLogLevel) {
        LCLogLevelNone      = 0,
        LCLogLevelError     = 1 << 0,
        LCLogLevelWarning   = 1 << 1,
        LCLogLevelInfo      = 1 << 2,
        LCLogLevelVerbose   = 1 << 3,
        LCLogLevelDefault   = LCLogLevelError | LCLogLevelWarning
    }

    Swift

    struct LCLogLevel : OptionSet
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, LCServiceModule) {
        LCServiceModuleAPI = 1,
        LCServiceModuleEngine,
        LCServiceModulePush,
        LCServiceModuleRTM,
        LCServiceModuleStatistics
    }

    Swift

    enum LCServiceModule : Int
  • Cache policies

    See more

    Declaration

    Objective-C

    enum LCCachePolicy : NSInteger {}

    Swift

    enum LCCachePolicy : Int
  • Undocumented

    See more

    Declaration

    Objective-C

    enum LCQueryDistanceUnit : NSInteger {}

    Swift

    enum LCQueryDistanceUnit : Int
  • Enumeration of short message types.

    See more

    Declaration

    Objective-C

    enum LCShortMessageType : NSInteger {}

    Swift

    enum LCShortMessageType : Int
  • Internal error code for client.

    See more

    Declaration

    Objective-C

    enum LCErrorInternalErrorCode : NSInteger {}

    Swift

    enum LCErrorInternalErrorCode : Int
  • error code

    See more

    Declaration

    Objective-C

    enum LCIMErrorCode : NSInteger {}

    Swift

    enum LCIMErrorCode : Int
  • client status

    See more

    Declaration

    Objective-C

    enum LCIMClientStatus : NSUInteger {}

    Swift

    enum LCIMClientStatus : UInt
  • open option for client

    See more

    Declaration

    Objective-C

    enum LCIMClientOpenOption : NSUInteger {}

    Swift

    enum LCIMClientOpenOption : UInt
  • Conversation Member Role.

    See more

    Declaration

    Objective-C

    enum LCIMConversationMemberRole : NSUInteger {}

    Swift

    enum LCIMConversationMemberRole : UInt
  • Query Option

    See more

    Declaration

    Objective-C

    enum LCIMConversationQueryOption : uint64_t {}

    Swift

    struct LCIMConversationQueryOption : OptionSet
  • Cache policy

    See more

    Declaration

    Objective-C

    enum LCIMCachePolicy : NSUInteger {}

    Swift

    enum LCIMCachePolicy : UInt
  • Enumerations that define message query direction.

    See more

    Declaration

    Objective-C

    enum LCIMMessageQueryDirection : NSUInteger {}

    Swift

    enum LCIMMessageQueryDirection : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(int32_t, LCIMMessageMediaType) {
        kLCIMMessageMediaTypeNone = 0,
        kLCIMMessageMediaTypeText = -1,
        kLCIMMessageMediaTypeImage = -2,
        kLCIMMessageMediaTypeAudio = -3,
        kLCIMMessageMediaTypeVideo = -4,
        kLCIMMessageMediaTypeLocation = -5,
        kLCIMMessageMediaTypeFile = -6,
        kLCIMMessageMediaTypeRecalled = -127
    }

    Swift

    enum LCIMMessageMediaType : Int32
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(int8_t, LCIMMessageIOType) {
        LCIMMessageIOTypeIn = 1,
        LCIMMessageIOTypeOut,
    }

    Swift

    enum LCIMMessageIOType : Int8
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(int8_t, LCIMMessageStatus) {
        LCIMMessageStatusNone = 0,
        LCIMMessageStatusSending = 1,
        LCIMMessageStatusSent,
        LCIMMessageStatusDelivered,
        LCIMMessageStatusFailed,
        LCIMMessageStatusRead
    }

    Swift

    enum LCIMMessageStatus : Int8
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, LCIMMessagePriority) {
        LCIMMessagePriorityHigh    = 1,
        LCIMMessagePriorityNormal  = 2,
        LCIMMessagePriorityLow     = 3,
    }

    Swift

    enum LCIMMessagePriority : Int
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, LCNetworkReachabilityStatus) {
        LCNetworkReachabilityStatusUnknown          = -1,
        LCNetworkReachabilityStatusNotReachable     = 0,
        LCNetworkReachabilityStatusReachableViaWWAN = 1,
        LCNetworkReachabilityStatusReachableViaWiFi = 2,
    }

    Swift

    enum LCNetworkReachabilityStatus : Int
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSUInteger, LCSSLPinningMode) {
        LCSSLPinningModeNone,
        LCSSLPinningModePublicKey,
        LCSSLPinningModeCertificate,
    }

    Swift

    enum LCSSLPinningMode : UInt
  • Declaration

    Objective-C

    enum LCHTTPRequestQueryStringSerializationStyle : NSUInteger {}

    Swift

    enum LCHTTPRequestQueryStringSerializationStyle : UInt
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, LCRTMWebSocketCloseCode)
    {
        LCRTMWebSocketCloseCodeInvalid =                             0,
        LCRTMWebSocketCloseCodeNormalClosure =                    1000,
        LCRTMWebSocketCloseCodeGoingAway =                        1001,
        LCRTMWebSocketCloseCodeProtocolError =                    1002,
        LCRTMWebSocketCloseCodeUnsupportedData =                  1003,
        LCRTMWebSocketCloseCodeNoStatusReceived =                 1005,
        LCRTMWebSocketCloseCodeAbnormalClosure =                  1006,
        LCRTMWebSocketCloseCodeInvalidFramePayloadData =          1007,
        LCRTMWebSocketCloseCodePolicyViolation =                  1008,
        LCRTMWebSocketCloseCodeMessageTooBig =                    1009,
        LCRTMWebSocketCloseCodeMandatoryExtensionMissing =        1010,
        LCRTMWebSocketCloseCodeInternalServerError =              1011,
        LCRTMWebSocketCloseCodeTLSHandshakeFailure =              1015,
    }

    Swift

    enum LCRTMWebSocketCloseCode : Int
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger, LCRTMWebSocketMessageType) {
        LCRTMWebSocketMessageTypeData = 0,
        LCRTMWebSocketMessageTypeString = 1,
    }

    Swift

    enum LCRTMWebSocketMessageType : Int