FIRConfiguration.h 810 Bytes
Newer Older
Libin Lu's avatar
Libin Lu committed
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
#import <Foundation/Foundation.h>

#import "FIRAnalyticsConfiguration.h"

/**
 * The log levels used by FIRConfiguration.
 */
typedef NS_ENUM(NSInteger, FIRLogLevel) {
  kFIRLogLevelError = 0,
  kFIRLogLevelWarning,
  kFIRLogLevelInfo,
  kFIRLogLevelDebug,
  kFIRLogLevelAssert,
  kFIRLogLevelMax = kFIRLogLevelAssert
};

/**
 * This interface provides global level properties that the developer can tweak, and the singleton
 * of each Google service configuration class.
 */
@interface FIRConfiguration : NSObject

+ (FIRConfiguration *)sharedInstance;

// The configuration class for Firebase Analytics.
@property(nonatomic, readwrite) FIRAnalyticsConfiguration *analyticsConfiguration;

// Global log level. Defaults to kFIRLogLevelError.
@property(nonatomic, readwrite, assign) FIRLogLevel logLevel;

@end