blob: da88556937dba5c66191610241bcd154768aa982 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
@protocol GGLInstanceIDDelegate;
typedef NS_ENUM(int8_t, GGLInstanceIDLogLevel) {
kGGLInstanceIDLogLevelDebug,
kGGLInstanceIDLogLevelInfo,
kGGLInstanceIDLogLevelError,
kGGLInstanceIDLogLevelAssert,
};
/**
* The config used to configure different options in GGLInstanceID library.
*/
@interface GGLInstanceIDConfig : NSObject <NSCopying, NSMutableCopying>
/**
* Set the GGLInstanceIDDelegate to receive callbacks.
*
* @see GGLInstanceIDDelegate
*/
@property(nonatomic, readwrite, weak) id<GGLInstanceIDDelegate> delegate;
// the log level for the GGLInstanceID library.
@property(nonatomic, readwrite, assign) GGLInstanceIDLogLevel logLevel;
/**
* Initialize a default config with logLevel set to `kGGLInstanceIDLogLevelError`.
*
* @return A default config for GGLInstanceID.
*/
+ (instancetype)defaultConfig;
@end
|