123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- #import <Foundation/Foundation.h>
- #import "RLMSyncUtil.h"
- @class RLMSyncSession;
- typedef NS_ENUM(NSUInteger, RLMSyncLogLevel) {
-
- RLMSyncLogLevelOff,
-
- RLMSyncLogLevelFatal,
-
- RLMSyncLogLevelError,
-
- RLMSyncLogLevelWarn,
-
- RLMSyncLogLevelInfo,
-
- RLMSyncLogLevelDetail,
-
-
-
- RLMSyncLogLevelDebug,
-
-
-
- RLMSyncLogLevelTrace,
-
-
-
- RLMSyncLogLevelAll
- };
- NS_ASSUME_NONNULL_BEGIN
- typedef void(^RLMSyncErrorReportingBlock)(NSError *, RLMSyncSession * _Nullable);
- @interface RLMSyncManager : NSObject
- @property (nullable, nonatomic, copy) RLMSyncErrorReportingBlock errorHandler;
- @property (nonatomic, copy) NSString *appID;
- @property (nonatomic) RLMSyncLogLevel logLevel;
- @property (nullable, nonatomic, copy) NSString *authorizationHeaderName;
- @property (nullable, nonatomic, copy) NSDictionary<NSString *, NSString *> *customRequestHeaders;
- + (instancetype)sharedManager NS_REFINED_FOR_SWIFT;
- - (instancetype)init __attribute__((unavailable("RLMSyncManager cannot be created directly")));
- + (instancetype)new __attribute__((unavailable("RLMSyncManager cannot be created directly")));
- NS_ASSUME_NONNULL_END
- @end
|