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, @unchecked Sendable
  • 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, @unchecked Sendable
  • 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, @unchecked Sendable
  • Undocumented

    See more

    Declaration

    Objective-C

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

    Swift

    enum LCServiceModule : Int, @unchecked Sendable
  • Cache policies

    See more

    Declaration

    Objective-C

    enum LCCachePolicy : NSInteger {}

    Swift

    enum LCCachePolicy : Int, @unchecked Sendable
  • Undocumented

    See more

    Declaration

    Objective-C

    enum LCQueryDistanceUnit : NSInteger {}

    Swift

    enum LCQueryDistanceUnit : Int, @unchecked Sendable
  • Enumeration of short message types.

    See more

    Declaration

    Objective-C

    enum LCShortMessageType : NSInteger {}

    Swift

    enum LCShortMessageType : Int, @unchecked Sendable
  • Internal error code for client.

    See more

    Declaration

    Objective-C

    enum LCErrorInternalErrorCode : NSInteger {}

    Swift

    enum LCErrorInternalErrorCode : Int, @unchecked Sendable
  • error code

    See more

    Declaration

    Objective-C

    enum LCIMErrorCode : NSInteger {}

    Swift

    enum LCIMErrorCode : Int, @unchecked Sendable
  • client status

    See more

    Declaration

    Objective-C

    enum LCIMClientStatus : NSUInteger {}

    Swift

    enum LCIMClientStatus : UInt, @unchecked Sendable
  • open option for client

    See more

    Declaration

    Objective-C

    enum LCIMClientOpenOption : NSUInteger {}

    Swift

    enum LCIMClientOpenOption : UInt, @unchecked Sendable
  • Conversation Member Role.

    See more

    Declaration

    Objective-C

    enum LCIMConversationMemberRole : NSUInteger {}

    Swift

    enum LCIMConversationMemberRole : UInt, @unchecked Sendable
  • Query Option

    See more

    Declaration

    Objective-C

    enum LCIMConversationQueryOption : uint64_t {}

    Swift

    struct LCIMConversationQueryOption : OptionSet, @unchecked Sendable
  • Cache policy

    See more

    Declaration

    Objective-C

    enum LCIMCachePolicy : NSUInteger {}

    Swift

    enum LCIMCachePolicy : UInt, @unchecked Sendable
  • Enumerations that define message query direction.

    See more

    Declaration

    Objective-C

    enum LCIMMessageQueryDirection : NSUInteger {}

    Swift

    enum LCIMMessageQueryDirection : UInt, @unchecked Sendable
  • Deprecated

    Deprecated! please use LCIMMessageMediaType instead, this ENUM may be removed in the future.

    Undocumented

    See more

    Declaration

    Objective-C

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

    Swift

    enum kLCIMMessageMediaType : Int32, @unchecked Sendable
  • Undocumented

    See more

    Declaration

    Objective-C

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

    Swift

    enum LCIMMessageIOType : Int8, @unchecked Sendable
  • Undocumented

    See more

    Declaration

    Objective-C

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

    Swift

    enum LCIMMessageStatus : Int8, @unchecked Sendable
  • Undocumented

    See more

    Declaration

    Objective-C

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

    Swift

    enum LCIMMessagePriority : Int, @unchecked Sendable
  • Undocumented

    See more

    Declaration

    Objective-C

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

    Swift

    enum LCNetworkReachabilityStatus : Int, @unchecked Sendable
  • Undocumented

    See more

    Declaration

    Objective-C

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

    Swift

    enum LCSSLPinningMode : UInt, @unchecked Sendable
  • Declaration

    Objective-C

    enum LCHTTPRequestQueryStringSerializationStyle : NSUInteger {}

    Swift

    enum LCHTTPRequestQueryStringSerializationStyle : UInt, @unchecked Sendable
  • 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, @unchecked Sendable
  • Undocumented

    See more

    Declaration

    Objective-C

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

    Swift

    enum LCRTMWebSocketMessageType : Int, @unchecked Sendable