LCUtils
Objective-C
@interface LCUtils : NSObject
// MARK: JSON String
+ (NSString * _Nullable)jsonStringFromDictionary:(NSDictionary *)dictionary;
+ (NSString * _Nullable)jsonStringFromArray:(NSArray *)array;
+ (NSString * _Nullable)jsonStringFromJSONObject:(id)JSONObject;
// MARK: Call Block
+ (void)callBooleanResultBlock:(LCBooleanResultBlock)block error:(NSError * _Nullable)error;
+ (void)callIntegerResultBlock:(LCIntegerResultBlock)block number:(NSInteger)number error:(NSError * _Nullable)error;
+ (void)callStringResultBlock:(LCStringResultBlock)block string:(NSString * _Nullable)string error:(NSError * _Nullable)error;
+ (void)callDataResultBlock:(LCDataResultBlock)block data:(NSData * _Nullable)data error:(NSError * _Nullable)error;
+ (void)callArrayResultBlock:(LCArrayResultBlock)block array:(NSArray * _Nullable)array error:(NSError * _Nullable)error;
+ (void)callSetResultBlock:(LCSetResultBlock)block set:(NSSet * _Nullable)set error:(NSError * _Nullable)error;
+ (void)callDictionaryResultBlock:(LCDictionaryResultBlock)block dictionary:(NSDictionary * _Nullable)dictionary error:(NSError * _Nullable)error;
+ (void)callIdResultBlock:(LCIdResultBlock)block object:(id _Nullable)object error:(NSError * _Nullable)error;
+ (void)callProgressBlock:(LCProgressBlock)block percent:(NSInteger)percent;
+ (void)callObjectResultBlock:(LCObjectResultBlock)block object:(LCObject * _Nullable)object error:(NSError * _Nullable)error;
+ (void)callUserResultBlock:(LCUserResultBlock)block user:(LCUser * _Nullable)user error:(NSError * _Nullable)error;
+ (void)callFileResultBlock:(LCFileResultBlock)block file:(LCFile * _Nullable)file error:(NSError * _Nullable)error;
+ (void)callCloudQueryCallback:(LCCloudQueryCallback)block result:(LCCloudQueryResult * _Nullable)result error:(NSError * _Nullable)error;
@end
Swift
class LCUtils : NSObject
Undocumented
-
Undocumented
Declaration
Objective-C
+ (NSString * _Nullable)jsonStringFromDictionary:(NSDictionary *)dictionary;
Swift
class func jsonString(from dictionary: [AnyHashable : Any]) -> String?
-
Undocumented
Declaration
Objective-C
+ (NSString * _Nullable)jsonStringFromArray:(NSArray *)array;
Swift
class func jsonString(from array: [Any]) -> String?
-
Undocumented
Declaration
Objective-C
+ (NSString * _Nullable)jsonStringFromJSONObject:(id)JSONObject;
Swift
class func jsonString(fromJSONObject JSONObject: Any) -> String?
-
Undocumented
Declaration
Objective-C
+ (void)callBooleanResultBlock:(LCBooleanResultBlock)block error:(NSError * _Nullable)error;
Swift
class func callBooleanResultBlock(_ block: @escaping LCBooleanResultBlock, error: Error?)
-
Undocumented
Declaration
Objective-C
+ (void)callIntegerResultBlock:(LCIntegerResultBlock)block number:(NSInteger)number error:(NSError * _Nullable)error;
Swift
class func callIntegerResultBlock(_ block: @escaping LCIntegerResultBlock, number: Int, error: Error?)
-
Undocumented
Declaration
Objective-C
+ (void)callStringResultBlock:(LCStringResultBlock)block string:(NSString * _Nullable)string error:(NSError * _Nullable)error;
Swift
class func callStringResultBlock(_ block: @escaping LCStringResultBlock, string: String?, error: Error?)
-
Undocumented
Declaration
Objective-C
+ (void)callDataResultBlock:(LCDataResultBlock)block data:(NSData * _Nullable)data error:(NSError * _Nullable)error;
Swift
class func callDataResultBlock(_ block: @escaping LCDataResultBlock, data: Data?, error: Error?)
-
Undocumented
Declaration
Objective-C
+ (void)callArrayResultBlock:(LCArrayResultBlock)block array:(NSArray * _Nullable)array error:(NSError * _Nullable)error;
Swift
class func callArrayResultBlock(_ block: @escaping LCArrayResultBlock, array: [Any]?, error: Error?)
-
Undocumented
Declaration
Objective-C
+ (void)callSetResultBlock:(LCSetResultBlock)block set:(NSSet * _Nullable)set error:(NSError * _Nullable)error;
Swift
class func callSetResultBlock(_ block: @escaping LCSetResultBlock, set: Set<AnyHashable>?, error: Error?)
-
Undocumented
Declaration
Objective-C
+ (void)callDictionaryResultBlock:(LCDictionaryResultBlock)block dictionary:(NSDictionary * _Nullable)dictionary error:(NSError * _Nullable)error;
Swift
class func callDictionaryResultBlock(_ block: @escaping LCDictionaryResultBlock, dictionary: [AnyHashable : Any]?, error: Error?)
-
Undocumented
Declaration
Objective-C
+ (void)callIdResultBlock:(LCIdResultBlock)block object:(id _Nullable)object error:(NSError * _Nullable)error;
Swift
class func callIdResultBlock(_ block: @escaping LCIdResultBlock, object: Any?, error: Error?)
-
Undocumented
Declaration
Objective-C
+ (void)callProgressBlock:(LCProgressBlock)block percent:(NSInteger)percent;
Swift
class func callProgressBlock(_ block: @escaping LCProgressBlock, percent: Int)
-
Undocumented
Declaration
Objective-C
+ (void)callObjectResultBlock:(LCObjectResultBlock)block object:(LCObject * _Nullable)object error:(NSError * _Nullable)error;
Swift
class func callObjectResultBlock(_ block: @escaping LCObjectResultBlock, object: LCObject?, error: Error?)
-
Undocumented
Declaration
Objective-C
+ (void)callUserResultBlock:(LCUserResultBlock)block user:(LCUser * _Nullable)user error:(NSError * _Nullable)error;
Swift
class func callUserResultBlock(_ block: @escaping LCUserResultBlock, user: LCUser?, error: Error?)
-
Undocumented
Declaration
Objective-C
+ (void)callFileResultBlock:(LCFileResultBlock)block file:(LCFile * _Nullable)file error:(NSError * _Nullable)error;
Swift
class func callFileResultBlock(_ block: @escaping LCFileResultBlock, file: LCFile?, error: Error?)
-
Undocumented
Declaration
Objective-C
+ (void)callCloudQueryCallback:(LCCloudQueryCallback)block result:(LCCloudQueryResult * _Nullable)result error:(NSError * _Nullable)error;
Swift
class func callCloudQueryCallback(_ block: @escaping LCCloudQueryCallback, result: LCCloudQueryResult?, error: Error?)