@@ -277,6 +277,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
277
277
#if __has_warning("-Watimport-in-framework-header")
278
278
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
279
279
#endif
280
+ @import AmplitudeCore;
280
281
@import Foundation;
281
282
@import ObjectiveC;
282
283
@import UIKit;
@@ -301,40 +302,28 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
301
302
302
303
#if defined(__OBJC__)
303
304
304
- @class NSString;
305
-
306
- SWIFT_PROTOCOL("_TtP22AmplitudeSessionReplay6Logger_")
307
- @protocol Logger
308
- - (void)errorWithMessage:(NSString * _Nonnull)message;
309
- - (void)warnWithMessage:(NSString * _Nonnull)message;
310
- - (void)logWithMessage:(NSString * _Nonnull)message;
311
- - (void)debugWithMessage:(NSString * _Nonnull)message;
312
- @end
313
-
314
305
typedef SWIFT_ENUM(NSInteger, MaskLevel, open) {
315
306
MaskLevelLight = 0,
316
307
MaskLevelMedium = 1,
317
308
MaskLevelConservative = 2,
318
309
};
319
310
320
- typedef SWIFT_ENUM(NSInteger, ServerZone, open) {
321
- ServerZoneUS = 0,
322
- ServerZoneEU = 1,
323
- };
324
-
311
+ @class NSString;
312
+ @protocol CoreLogger;
313
+ @class RemoteConfigClient;
325
314
326
315
SWIFT_CLASS_NAMED("SessionReplay")
327
316
@interface AMPSessionReplay : NSObject
328
317
@property (nonatomic, readonly, copy) NSString * _Nonnull apiKey;
329
- @property (nonatomic, readonly, strong) id <Logger > _Nonnull logger;
318
+ @property (nonatomic, readonly, strong) id <CoreLogger > _Nonnull logger;
330
319
@property (nonatomic, readonly) BOOL enableRemoteConfig;
331
320
@property (nonatomic, readonly) float sampleRate;
332
321
@property (nonatomic, readonly) enum MaskLevel maskLevel;
333
322
@property (nonatomic) BOOL optOut;
334
323
@property (nonatomic) int64_t sessionId;
335
324
@property (nonatomic, copy) NSString * _Nullable deviceId;
336
325
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull additionalEventProperties;
337
- - (nonnull instancetype)initWithApiKey:(NSString * _Nonnull)apiKey deviceId:(NSString * _Nullable)deviceId sessionId:(int64_t)sessionId optOut:(BOOL)optOut sampleRate:(float)sampleRate webviewMappings:(NSDictionary<NSString *, NSString *> * _Nonnull)webviewMappings logger:(id <Logger > _Nullable)logger serverZone:(enum ServerZone )serverZone maskLevel:(enum MaskLevel)maskLevel enableRemoteConfig:(BOOL)enableRemoteConfig OBJC_DESIGNATED_INITIALIZER;
326
+ - (nonnull instancetype)initWithApiKey:(NSString * _Nonnull)apiKey deviceId:(NSString * _Nullable)deviceId sessionId:(int64_t)sessionId optOut:(BOOL)optOut sampleRate:(float)sampleRate webviewMappings:(NSDictionary<NSString *, NSString *> * _Nonnull)webviewMappings logger:(id <CoreLogger > _Nullable)logger serverZone:(enum AMPServerZone )serverZone maskLevel:(enum MaskLevel)maskLevel enableRemoteConfig:(BOOL)enableRemoteConfig remoteConfigClient:(RemoteConfigClient * _Nullable)remoteConfigClient OBJC_DESIGNATED_INITIALIZER;
338
327
- (void)start;
339
328
- (void)stop;
340
329
- (void)flush;
@@ -345,6 +334,14 @@ SWIFT_CLASS_NAMED("SessionReplay")
345
334
346
335
347
336
337
+ SWIFT_CLASS("_TtC22AmplitudeSessionReplay19SessionReplayPlugin")
338
+ @interface SessionReplayPlugin : NSObject
339
+ - (nonnull instancetype)initWithSampleRate:(float)sampleRate maskLevel:(enum MaskLevel)maskLevel enableRemoteConfig:(BOOL)enableRemoteConfig webviewMappings:(NSDictionary<NSString *, NSString *> * _Nonnull)webviewMappings autoStart:(BOOL)autoStart;
340
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
341
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
342
+ @end
343
+
344
+
348
345
@interface UIView (SWIFT_EXTENSION(AmplitudeSessionReplay))
349
346
@property (nonatomic) BOOL amp_isBlocked;
350
347
@end
0 commit comments