iOS SDK  12.0.0
 All Classes Functions Enumerations Enumerator Groups Pages
FlurrySessionBuilder.h
1 //
2 // FlurrySessionBuilder.h
3 // Flurry
4 //
5 // Created by Akshay Bhandary on 7/14/16.
6 // Copyright (c) 2021 Yahoo. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "FlurryConsent.h"
11 #import "FlurryCCPA.h"
12 
13 
19 typedef NS_ENUM(NSUInteger, FlurryLogLevel){
20  FlurryLogLevelNone NS_SWIFT_NAME(none) = 0, // No output
21  FlurryLogLevelCriticalOnly NS_SWIFT_NAME(criticalOnly), // Default, outputs only critical log events
22  FlurryLogLevelDebug NS_SWIFT_NAME(debug), // Debug level, outputs critical and main log events
23  FlurryLogLevelAll NS_SWIFT_NAME(all), // Highest level, outputs all log events
24 };
25 
26 
27 #if !TARGET_OS_WATCH
28 
29 
30 @interface FlurrySessionBuilder : NSObject
31 
39 - (FlurrySessionBuilder*) withDataSaleOptOut:(BOOL)value
40 NS_SWIFT_NAME(build(dataSaleOptOut:));
41 
42 
54 - (FlurrySessionBuilder*) withAppVersion:(NSString *)value
55 NS_SWIFT_NAME(build(appVersion:));
56 
57 
68 - (FlurrySessionBuilder*) withSessionContinueSeconds:(NSInteger)value
69 NS_SWIFT_NAME(build(sessionContinueSeconds:));
70 
71 
81 - (FlurrySessionBuilder*) withCrashReporting:(BOOL)value
82 NS_SWIFT_NAME(build(crashReportingEnabled:));
83 
97 - (FlurrySessionBuilder*) withLogLevel:(FlurryLogLevel) value
98 NS_SWIFT_NAME(build(logLevel:));
99 
100 
101 
119 - (FlurrySessionBuilder*) withShowErrorInLog:(BOOL) value
120 NS_SWIFT_NAME(build(showErrorInLogEnabled:));
121 
122 
135 - (FlurrySessionBuilder*) withConsent:(FlurryConsent*)consent
136 NS_SWIFT_NAME(build(consent:));
137 
138 
149 - (FlurrySessionBuilder*) withIAPReportingEnabled:(BOOL) value
150 NS_SWIFT_NAME(build(iapReportingEnabled:));
151 
163 - (FlurrySessionBuilder*) withIncludeBackgroundSessionsInMetrics:(BOOL) value
164 NS_SWIFT_NAME(build(includeBackgroundSessionInMetrics:));
165 
174 - (FlurrySessionBuilder*) withSessionOrigin:(NSString*) origin
175 NS_SWIFT_NAME(build(sessionOrigin:));
176 
185 - (FlurrySessionBuilder*) withSessionOriginVerion:(NSString*) version
186 NS_SWIFT_NAME(build(sessionOriginVersion:));
187 
196 - (FlurrySessionBuilder*) withSessionOriginParameters:(NSDictionary*) parameters
197 NS_SWIFT_NAME(build(sessionOriginParameters:));
198 
207 - (FlurrySessionBuilder*) withSessionDeeplink:(NSString*) deeplink
208 NS_SWIFT_NAME(build(sessionDeepLink:));
209 
218 - (FlurrySessionBuilder*) withSessionProperties:(NSDictionary*) properties
219 NS_SWIFT_NAME(build(sessionProperties:));
220 
221 
222 #if TARGET_OS_TV
223 
235 - (FlurrySessionBuilder*) withTVSessionReportingInterval:(NSInteger) value
236 NS_SWIFT_NAME(build(tvSessionReportingInterval:));
237 
249 - (FlurrySessionBuilder*) withTVEventCountThreshold:(NSInteger) value
250 NS_SWIFT_NAME(build(tvEventCountThreshold:));
251 #endif
252 
253 @end
254 
255 #endif