|
@@ -1,6 +1,6 @@
|
|
|
#if 0
|
|
|
#elif defined(__arm64__) && __arm64__
|
|
|
-// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
|
|
|
+// Generated by Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
|
|
|
#ifndef FBAEMKIT_SWIFT_H
|
|
|
#define FBAEMKIT_SWIFT_H
|
|
|
#pragma clang diagnostic push
|
|
@@ -23,20 +23,11 @@
|
|
|
# include <swift/objc-prologue.h>
|
|
|
#endif
|
|
|
|
|
|
-#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
|
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
|
-#if defined(__OBJC__)
|
|
|
#include <Foundation/Foundation.h>
|
|
|
-#endif
|
|
|
-#if defined(__cplusplus)
|
|
|
-#include <cstdint>
|
|
|
-#include <cstddef>
|
|
|
-#include <cstdbool>
|
|
|
-#else
|
|
|
#include <stdint.h>
|
|
|
#include <stddef.h>
|
|
|
#include <stdbool.h>
|
|
|
-#endif
|
|
|
|
|
|
#if !defined(SWIFT_TYPEDEFS)
|
|
|
# define SWIFT_TYPEDEFS 1
|
|
@@ -192,40 +183,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
#else
|
|
|
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
|
#endif
|
|
|
-#if defined(__OBJC__)
|
|
|
#if !defined(IBSegueAction)
|
|
|
# define IBSegueAction
|
|
|
#endif
|
|
|
-#endif
|
|
|
-#if !defined(SWIFT_EXTERN)
|
|
|
-# if defined(__cplusplus)
|
|
|
-# define SWIFT_EXTERN extern "C"
|
|
|
-# else
|
|
|
-# define SWIFT_EXTERN extern
|
|
|
-# endif
|
|
|
-#endif
|
|
|
-#if !defined(SWIFT_CALL)
|
|
|
-# define SWIFT_CALL __attribute__((swiftcall))
|
|
|
-#endif
|
|
|
-#if defined(__cplusplus)
|
|
|
-#if !defined(SWIFT_NOEXCEPT)
|
|
|
-# define SWIFT_NOEXCEPT noexcept
|
|
|
-#endif
|
|
|
-#else
|
|
|
-#if !defined(SWIFT_NOEXCEPT)
|
|
|
-# define SWIFT_NOEXCEPT
|
|
|
-#endif
|
|
|
-#endif
|
|
|
-#if defined(__cplusplus)
|
|
|
-#if !defined(SWIFT_CXX_INT_DEFINED)
|
|
|
-#define SWIFT_CXX_INT_DEFINED
|
|
|
-namespace swift {
|
|
|
-using Int = ptrdiff_t;
|
|
|
-using UInt = size_t;
|
|
|
-}
|
|
|
-#endif
|
|
|
-#endif
|
|
|
-#if defined(__OBJC__)
|
|
|
#if __has_feature(modules)
|
|
|
#if __has_warning("-Watimport-in-framework-header")
|
|
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
@@ -234,7 +194,8 @@ using UInt = size_t;
|
|
|
@import ObjectiveC;
|
|
|
#endif
|
|
|
|
|
|
-#endif
|
|
|
+#import <FBAEMKit/FBAEMKit.h>
|
|
|
+
|
|
|
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
|
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
|
#if __has_warning("-Wpragma-clang-attribute")
|
|
@@ -242,7 +203,6 @@ using UInt = size_t;
|
|
|
#endif
|
|
|
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
|
#pragma clang diagnostic ignored "-Wnullability"
|
|
|
-#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
|
|
|
|
#if __has_attribute(external_source_symbol)
|
|
|
# pragma push_macro("any")
|
|
@@ -251,56 +211,276 @@ using UInt = size_t;
|
|
|
# pragma pop_macro("any")
|
|
|
#endif
|
|
|
|
|
|
-#if defined(__OBJC__)
|
|
|
+@class NSNumber;
|
|
|
@class NSString;
|
|
|
|
|
|
-SWIFT_PROTOCOL_NAMED("AEMNetworking")
|
|
|
-@protocol FBAEMNetworking
|
|
|
-- (void)startGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary<NSString *, id> * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(NSString * _Nullable)method completion:(void (^ _Nonnull)(id _Nullable, NSError * _Nullable))completion;
|
|
|
+SWIFT_PROTOCOL_NAMED("SKAdNetworkReporting")
|
|
|
+@protocol FBSKAdNetworkReporting
|
|
|
+- (BOOL)shouldCutoff SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isReportingEvent:(NSString * _Nonnull)event SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (void)checkAndRevokeTimer;
|
|
|
@end
|
|
|
|
|
|
-@protocol FBSKAdNetworkReporting;
|
|
|
-@protocol FBSDKDataPersisting;
|
|
|
-@class NSURL;
|
|
|
-@class NSNumber;
|
|
|
+enum FBAEMAdvertiserRuleOperator : NSInteger;
|
|
|
+@class NSCoder;
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMAdvertiserMultiEntryRule")
|
|
|
+@interface FBAEMAdvertiserMultiEntryRule : NSObject <FBAEMAdvertiserRuleMatching, NSCopying, NSSecureCoding>
|
|
|
+- (nonnull instancetype)initWithOperator:(enum FBAEMAdvertiserRuleOperator)operator_ rules:(NSArray<id <FBAEMAdvertiserRuleMatching>> * _Nonnull)rules OBJC_DESIGNATED_INITIALIZER;
|
|
|
+- (BOOL)isMatchedEventParameters:(NSDictionary<NSString *, id> * _Nullable)eventParams SWIFT_WARN_UNUSED_RESULT;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
+@end
|
|
|
|
|
|
-SWIFT_CLASS_NAMED("AEMReporter")
|
|
|
-@interface FBAEMReporter : NSObject
|
|
|
-+ (void)configureWithNetworker:(id <FBAEMNetworking> _Nullable)networker appID:(NSString * _Nullable)appID reporter:(id <FBSKAdNetworkReporting> _Nullable)reporter;
|
|
|
-+ (void)configureWithNetworker:(id <FBAEMNetworking> _Nullable)networker appID:(NSString * _Nullable)appID reporter:(id <FBSKAdNetworkReporting> _Nullable)reporter analyticsAppID:(NSString * _Nullable)analyticsAppID store:(id <FBSDKDataPersisting> _Nullable)store;
|
|
|
-/// Enable AEM reporting
|
|
|
-/// This function should be called in application(_:open:options:) from ApplicationDelegate
|
|
|
-+ (void)enable;
|
|
|
-/// Control whether to enable conversion filtering
|
|
|
-/// This function should be called in <code>application(_:open:options:)</code> from ApplicationDelegate
|
|
|
-+ (void)setConversionFilteringEnabled:(BOOL)enabled;
|
|
|
-/// Control whether to enable catalog matching
|
|
|
-/// This function should be called in <code>application(_:open:options:)</code> from ApplicationDelegate
|
|
|
-+ (void)setCatalogMatchingEnabled:(BOOL)enabled;
|
|
|
-/// Control whether to enable advertiser rule match enabled in server side. This is expected
|
|
|
-/// to be called internally by FB SDK and will be removed in the future
|
|
|
-/// This function should be called in <code>application(_:open:options:)</code> from ApplicationDelegate
|
|
|
-+ (void)setAdvertiserRuleMatchInServerEnabled:(BOOL)enabled;
|
|
|
-/// Handle deeplink
|
|
|
-/// This function should be called in <code>application(_:open:options:) </code>from ApplicationDelegate
|
|
|
-+ (void)handle:(NSURL * _Nonnull)url;
|
|
|
-/// Calculate the conversion value for the app event based on the AEM configuration
|
|
|
-/// This function should be called when you log any in-app events
|
|
|
-+ (void)recordAndUpdateEvent:(NSString * _Nonnull)event currency:(NSString * _Nullable)currency value:(NSNumber * _Nullable)value parameters:(NSDictionary<NSString *, id> * _Nullable)parameters;
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+/// Describes anything that can provide instances of <code>AEMAdvertiserRuleMatching</code>
|
|
|
+SWIFT_PROTOCOL_NAMED("_AEMAdvertiserRuleProviding")
|
|
|
+@protocol FBAEMAdvertiserRuleProviding
|
|
|
+- (id <FBAEMAdvertiserRuleMatching> _Nullable)createRuleWithJson:(NSString * _Nullable)json SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (id <FBAEMAdvertiserRuleMatching> _Nullable)createRuleWithDict:(NSDictionary<NSString *, id> * _Nonnull)dictionary SWIFT_WARN_UNUSED_RESULT;
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMAdvertiserRuleFactory")
|
|
|
+@interface FBAEMAdvertiserRuleFactory : NSObject <FBAEMAdvertiserRuleProviding>
|
|
|
+- (id <FBAEMAdvertiserRuleMatching> _Nullable)createRuleWithJson:(NSString * _Nullable)json SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (id <FBAEMAdvertiserRuleMatching> _Nullable)createRuleWithDict:(NSDictionary<NSString *, id> * _Nonnull)dictionary SWIFT_WARN_UNUSED_RESULT;
|
|
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
|
@end
|
|
|
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+typedef SWIFT_ENUM_NAMED(NSInteger, FBAEMAdvertiserRuleOperator, "_AEMAdvertiserRuleOperator", open) {
|
|
|
+ FBAEMAdvertiserRuleOperatorUnknown = 0,
|
|
|
+ FBAEMAdvertiserRuleOperatorAnd = 1,
|
|
|
+ FBAEMAdvertiserRuleOperatorOr = 2,
|
|
|
+ FBAEMAdvertiserRuleOperatorNot = 3,
|
|
|
+ FBAEMAdvertiserRuleOperatorContains = 4,
|
|
|
+ FBAEMAdvertiserRuleOperatorNotContains = 5,
|
|
|
+ FBAEMAdvertiserRuleOperatorStartsWith = 6,
|
|
|
+ FBAEMAdvertiserRuleOperatorCaseInsensitiveContains = 7,
|
|
|
+ FBAEMAdvertiserRuleOperatorCaseInsensitiveNotContains = 8,
|
|
|
+ FBAEMAdvertiserRuleOperatorCaseInsensitiveStartsWith = 9,
|
|
|
+ FBAEMAdvertiserRuleOperatorRegexMatch = 10,
|
|
|
+ FBAEMAdvertiserRuleOperatorEqual = 11,
|
|
|
+ FBAEMAdvertiserRuleOperatorNotEqual = 12,
|
|
|
+ FBAEMAdvertiserRuleOperatorLessThan = 13,
|
|
|
+ FBAEMAdvertiserRuleOperatorLessThanOrEqual = 14,
|
|
|
+ FBAEMAdvertiserRuleOperatorGreaterThan = 15,
|
|
|
+ FBAEMAdvertiserRuleOperatorGreaterThanOrEqual = 16,
|
|
|
+ FBAEMAdvertiserRuleOperatorCaseInsensitiveIsAny = 17,
|
|
|
+ FBAEMAdvertiserRuleOperatorCaseInsensitiveIsNotAny = 18,
|
|
|
+ FBAEMAdvertiserRuleOperatorIsAny = 19,
|
|
|
+ FBAEMAdvertiserRuleOperatorIsNotAny = 20,
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMAdvertiserSingleEntryRule")
|
|
|
+@interface FBAEMAdvertiserSingleEntryRule : NSObject <FBAEMAdvertiserRuleMatching, NSCopying, NSSecureCoding>
|
|
|
+@property (nonatomic, readonly, getter=operator) enum FBAEMAdvertiserRuleOperator operator_;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull paramKey;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nullable linguisticCondition;
|
|
|
+@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nullable arrayCondition;
|
|
|
+- (nonnull instancetype)initWithOperator:(enum FBAEMAdvertiserRuleOperator)operator_ paramKey:(NSString * _Nonnull)paramKey linguisticCondition:(NSString * _Nullable)linguisticCondition numericalCondition:(NSNumber * _Nullable)numericalCondition arrayCondition:(NSArray<NSString *> * _Nullable)arrayCondition;
|
|
|
+- (BOOL)isMatchedEventParameters:(NSDictionary<NSString *, id> * _Nullable)eventParams SWIFT_WARN_UNUSED_RESULT;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
++ (void)setSupportsSecureCoding:(BOOL)value;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
+@end
|
|
|
|
|
|
-SWIFT_PROTOCOL_NAMED("SKAdNetworkReporting")
|
|
|
-@protocol FBSKAdNetworkReporting
|
|
|
-- (BOOL)shouldCutoff SWIFT_WARN_UNUSED_RESULT;
|
|
|
-- (BOOL)isReportingEvent:(NSString * _Nonnull)event SWIFT_WARN_UNUSED_RESULT;
|
|
|
-- (void)checkAndRevokeTimer;
|
|
|
+@class FBAEMRule;
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMConfiguration")
|
|
|
+@interface FBAEMConfiguration : NSObject <NSCopying, NSSecureCoding>
|
|
|
+@property (nonatomic, readonly) NSInteger cutoffTime;
|
|
|
+/// The UNIX timestamp of configuration’s valid date and works as a unqiue identifier of the configuration
|
|
|
+@property (nonatomic, readonly) NSInteger validFrom;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull defaultCurrency;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull mode;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nullable businessID;
|
|
|
+@property (nonatomic, readonly, strong) id <FBAEMAdvertiserRuleMatching> _Nullable matchingRule;
|
|
|
+@property (nonatomic, readonly, copy) NSArray<FBAEMRule *> * _Nonnull conversionValueRules;
|
|
|
+@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull eventSet;
|
|
|
+@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull currencySet;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) id <FBAEMAdvertiserRuleProviding> _Nullable ruleProvider;)
|
|
|
++ (id <FBAEMAdvertiserRuleProviding> _Nullable)ruleProvider SWIFT_WARN_UNUSED_RESULT;
|
|
|
++ (void)configureWithRuleProvider:(id <FBAEMAdvertiserRuleProviding> _Nonnull)ruleProvider;
|
|
|
+- (nullable instancetype)initWithJSON:(NSDictionary<NSString *, id> * _Nullable)dict OBJC_DESIGNATED_INITIALIZER;
|
|
|
+- (BOOL)isSameValidFrom:(NSInteger)validFrom businessID:(NSString * _Nullable)businessID SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isSameBusinessID:(NSString * _Nullable)businessID SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMEvent")
|
|
|
+@interface FBAEMEvent : NSObject <NSCopying, NSSecureCoding>
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull eventName;
|
|
|
+@property (nonatomic, readonly, copy) NSDictionary<NSString *, NSNumber *> * _Nullable values;
|
|
|
+- (nullable instancetype)initWithJSON:(NSDictionary<NSString *, id> * _Nullable)dict OBJC_DESIGNATED_INITIALIZER;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMInvocation")
|
|
|
+@interface FBAEMInvocation : NSObject <NSSecureCoding>
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull campaignID;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull acsToken;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nullable acsConfigurationID;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nullable businessID;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nullable catalogID;
|
|
|
+@property (nonatomic, readonly) BOOL isTestMode;
|
|
|
+@property (nonatomic) BOOL hasStoreKitAdNetwork;
|
|
|
+@property (nonatomic) BOOL isConversionFilteringEligible;
|
|
|
+/// The unique identifier of the configuration, it’s the same as configuration’s validFrom
|
|
|
+@property (nonatomic, readonly) NSInteger configurationID;
|
|
|
+@property (nonatomic, readonly) NSInteger conversionValue;
|
|
|
+@property (nonatomic) BOOL isAggregated;
|
|
|
+- (nullable instancetype)initWithAppLinkData:(NSDictionary * _Nullable)appLinkData;
|
|
|
+- (BOOL)attributeEvent:(NSString * _Nonnull)event currency:(NSString * _Nullable)potentialValueCurrency value:(NSNumber * _Nullable)potentialValue parameters:(NSDictionary<NSString *, id> * _Nullable)parameters configurations:(NSDictionary<NSString *, NSArray<FBAEMConfiguration *> *> * _Nullable)configurations shouldUpdateCache:(BOOL)shouldUpdateCache isRuleMatchInServer:(BOOL)isRuleMatchInServer;
|
|
|
+- (BOOL)updateConversionValueWithConfigurations:(NSDictionary<NSString *, NSArray<FBAEMConfiguration *> *> * _Nullable)configurations event:(NSString * _Nonnull)event shouldBoostPriority:(BOOL)shouldBoostPriority SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isOptimizedEvent:(NSString * _Nonnull)event configurations:(NSDictionary<NSString *, NSArray<FBAEMConfiguration *> *> * _Nullable)configurations SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isOutOfWindowWithConfigurations:(NSDictionary<NSString *, NSArray<FBAEMConfiguration *> *> * _Nullable)configurations SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (NSString * _Nullable)getHMACWithDelay:(NSInteger)delay SWIFT_WARN_UNUSED_RESULT;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)decoder OBJC_DESIGNATED_INITIALIZER;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)encoder;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMNetworker")
|
|
|
+@interface FBAEMNetworker : NSObject <FBAEMNetworking, NSURLSessionDataDelegate>
|
|
|
+@property (nonatomic, copy) NSString * _Nullable userAgentSuffix;
|
|
|
+- (void)startGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary<NSString *, id> * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(NSString * _Nullable)method completion:(FBGraphRequestCompletion _Nonnull)completion;
|
|
|
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
|
+@end
|
|
|
+
|
|
|
+@class NSData;
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMRequestBody")
|
|
|
+@interface FBAEMRequestBody : NSObject
|
|
|
+/// Compressed version of <code>data</code>
|
|
|
+- (NSData * _Nullable)compressedData SWIFT_WARN_UNUSED_RESULT;
|
|
|
+@property (nonatomic, readonly, copy) NSData * _Nonnull data;
|
|
|
+- (void)appendWithKey:(NSString * _Nullable)key formValue:(NSString * _Nullable)value;
|
|
|
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMRule")
|
|
|
+@interface FBAEMRule : NSObject <NSCopying, NSSecureCoding>
|
|
|
+@property (nonatomic, readonly) NSInteger conversionValue;
|
|
|
+@property (nonatomic, readonly) NSInteger priority;
|
|
|
+@property (nonatomic, readonly, copy) NSArray<FBAEMEvent *> * _Nonnull events;
|
|
|
+- (nullable instancetype)initWithJSON:(NSDictionary<NSString *, id> * _Nonnull)dict OBJC_DESIGNATED_INITIALIZER;
|
|
|
+/// Check if event contains target event with name
|
|
|
+/// \param event Event name to check for
|
|
|
+///
|
|
|
+///
|
|
|
+/// returns:
|
|
|
+/// Boolean
|
|
|
+- (BOOL)containsEvent:(NSString * _Nonnull)event SWIFT_WARN_UNUSED_RESULT;
|
|
|
+/// Check if recorded events and values match <code>events</code>
|
|
|
+/// \param recordedEvents Recorded events to check
|
|
|
+///
|
|
|
+/// \param recordedValues Recorded values to check
|
|
|
+///
|
|
|
+///
|
|
|
+/// returns:
|
|
|
+/// Boolean
|
|
|
+- (BOOL)isMatchedWithRecordedEvents:(NSSet<NSString *> * _Nullable)recordedEvents recordedValues:(NSDictionary<NSString *, NSDictionary<NSString *, id> *> * _Nullable)recordedValues SWIFT_WARN_UNUSED_RESULT;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMSettings")
|
|
|
+@interface FBAEMSettings : NSObject
|
|
|
++ (NSString * _Nullable)appID SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+SWIFT_CLASS_NAMED("_AEMUtility")
|
|
|
+@interface FBAEMUtility : NSObject
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBAEMUtility * _Nonnull sharedUtility;)
|
|
|
++ (FBAEMUtility * _Nonnull)sharedUtility SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (FBAEMInvocation * _Nullable)getMatchedInvocation:(NSArray<FBAEMInvocation *> * _Nonnull)invocations businessID:(NSString * _Nullable)businessID SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (NSNumber * _Nonnull)getInSegmentValue:(NSDictionary<NSString *, id> * _Nullable)parameters matchingRule:(id <FBAEMAdvertiserRuleMatching> _Nullable)matchingRule SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (NSString * _Nullable)getContent:(NSDictionary<NSString *, id> * _Nullable)parameters SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (NSString * _Nullable)getContentID:(NSDictionary<NSString *, id> * _Nullable)parameters SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (NSArray<NSString *> * _Nonnull)getBusinessIDsInOrder:(NSArray<FBAEMInvocation *> * _Nonnull)invocations SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
|
@end
|
|
|
|
|
|
-#endif
|
|
|
-#if defined(__cplusplus)
|
|
|
-#endif
|
|
|
#if __has_attribute(external_source_symbol)
|
|
|
# pragma clang attribute pop
|
|
|
#endif
|
|
@@ -308,7 +488,7 @@ SWIFT_PROTOCOL_NAMED("SKAdNetworkReporting")
|
|
|
#endif
|
|
|
|
|
|
#elif defined(__x86_64__) && __x86_64__
|
|
|
-// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
|
|
|
+// Generated by Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
|
|
|
#ifndef FBAEMKIT_SWIFT_H
|
|
|
#define FBAEMKIT_SWIFT_H
|
|
|
#pragma clang diagnostic push
|
|
@@ -331,20 +511,11 @@ SWIFT_PROTOCOL_NAMED("SKAdNetworkReporting")
|
|
|
# include <swift/objc-prologue.h>
|
|
|
#endif
|
|
|
|
|
|
-#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
|
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
|
-#if defined(__OBJC__)
|
|
|
#include <Foundation/Foundation.h>
|
|
|
-#endif
|
|
|
-#if defined(__cplusplus)
|
|
|
-#include <cstdint>
|
|
|
-#include <cstddef>
|
|
|
-#include <cstdbool>
|
|
|
-#else
|
|
|
#include <stdint.h>
|
|
|
#include <stddef.h>
|
|
|
#include <stdbool.h>
|
|
|
-#endif
|
|
|
|
|
|
#if !defined(SWIFT_TYPEDEFS)
|
|
|
# define SWIFT_TYPEDEFS 1
|
|
@@ -500,40 +671,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
#else
|
|
|
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
|
#endif
|
|
|
-#if defined(__OBJC__)
|
|
|
#if !defined(IBSegueAction)
|
|
|
# define IBSegueAction
|
|
|
#endif
|
|
|
-#endif
|
|
|
-#if !defined(SWIFT_EXTERN)
|
|
|
-# if defined(__cplusplus)
|
|
|
-# define SWIFT_EXTERN extern "C"
|
|
|
-# else
|
|
|
-# define SWIFT_EXTERN extern
|
|
|
-# endif
|
|
|
-#endif
|
|
|
-#if !defined(SWIFT_CALL)
|
|
|
-# define SWIFT_CALL __attribute__((swiftcall))
|
|
|
-#endif
|
|
|
-#if defined(__cplusplus)
|
|
|
-#if !defined(SWIFT_NOEXCEPT)
|
|
|
-# define SWIFT_NOEXCEPT noexcept
|
|
|
-#endif
|
|
|
-#else
|
|
|
-#if !defined(SWIFT_NOEXCEPT)
|
|
|
-# define SWIFT_NOEXCEPT
|
|
|
-#endif
|
|
|
-#endif
|
|
|
-#if defined(__cplusplus)
|
|
|
-#if !defined(SWIFT_CXX_INT_DEFINED)
|
|
|
-#define SWIFT_CXX_INT_DEFINED
|
|
|
-namespace swift {
|
|
|
-using Int = ptrdiff_t;
|
|
|
-using UInt = size_t;
|
|
|
-}
|
|
|
-#endif
|
|
|
-#endif
|
|
|
-#if defined(__OBJC__)
|
|
|
#if __has_feature(modules)
|
|
|
#if __has_warning("-Watimport-in-framework-header")
|
|
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
@@ -542,7 +682,8 @@ using UInt = size_t;
|
|
|
@import ObjectiveC;
|
|
|
#endif
|
|
|
|
|
|
-#endif
|
|
|
+#import <FBAEMKit/FBAEMKit.h>
|
|
|
+
|
|
|
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
|
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
|
#if __has_warning("-Wpragma-clang-attribute")
|
|
@@ -550,7 +691,6 @@ using UInt = size_t;
|
|
|
#endif
|
|
|
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
|
#pragma clang diagnostic ignored "-Wnullability"
|
|
|
-#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
|
|
|
|
#if __has_attribute(external_source_symbol)
|
|
|
# pragma push_macro("any")
|
|
@@ -559,62 +699,280 @@ using UInt = size_t;
|
|
|
# pragma pop_macro("any")
|
|
|
#endif
|
|
|
|
|
|
-#if defined(__OBJC__)
|
|
|
+@class NSNumber;
|
|
|
@class NSString;
|
|
|
|
|
|
-SWIFT_PROTOCOL_NAMED("AEMNetworking")
|
|
|
-@protocol FBAEMNetworking
|
|
|
-- (void)startGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary<NSString *, id> * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(NSString * _Nullable)method completion:(void (^ _Nonnull)(id _Nullable, NSError * _Nullable))completion;
|
|
|
+SWIFT_PROTOCOL_NAMED("SKAdNetworkReporting")
|
|
|
+@protocol FBSKAdNetworkReporting
|
|
|
+- (BOOL)shouldCutoff SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isReportingEvent:(NSString * _Nonnull)event SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (void)checkAndRevokeTimer;
|
|
|
+@end
|
|
|
+
|
|
|
+enum FBAEMAdvertiserRuleOperator : NSInteger;
|
|
|
+@class NSCoder;
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMAdvertiserMultiEntryRule")
|
|
|
+@interface FBAEMAdvertiserMultiEntryRule : NSObject <FBAEMAdvertiserRuleMatching, NSCopying, NSSecureCoding>
|
|
|
+- (nonnull instancetype)initWithOperator:(enum FBAEMAdvertiserRuleOperator)operator_ rules:(NSArray<id <FBAEMAdvertiserRuleMatching>> * _Nonnull)rules OBJC_DESIGNATED_INITIALIZER;
|
|
|
+- (BOOL)isMatchedEventParameters:(NSDictionary<NSString *, id> * _Nullable)eventParams SWIFT_WARN_UNUSED_RESULT;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
@end
|
|
|
|
|
|
-@protocol FBSKAdNetworkReporting;
|
|
|
-@protocol FBSDKDataPersisting;
|
|
|
-@class NSURL;
|
|
|
-@class NSNumber;
|
|
|
|
|
|
-SWIFT_CLASS_NAMED("AEMReporter")
|
|
|
-@interface FBAEMReporter : NSObject
|
|
|
-+ (void)configureWithNetworker:(id <FBAEMNetworking> _Nullable)networker appID:(NSString * _Nullable)appID reporter:(id <FBSKAdNetworkReporting> _Nullable)reporter;
|
|
|
-+ (void)configureWithNetworker:(id <FBAEMNetworking> _Nullable)networker appID:(NSString * _Nullable)appID reporter:(id <FBSKAdNetworkReporting> _Nullable)reporter analyticsAppID:(NSString * _Nullable)analyticsAppID store:(id <FBSDKDataPersisting> _Nullable)store;
|
|
|
-/// Enable AEM reporting
|
|
|
-/// This function should be called in application(_:open:options:) from ApplicationDelegate
|
|
|
-+ (void)enable;
|
|
|
-/// Control whether to enable conversion filtering
|
|
|
-/// This function should be called in <code>application(_:open:options:)</code> from ApplicationDelegate
|
|
|
-+ (void)setConversionFilteringEnabled:(BOOL)enabled;
|
|
|
-/// Control whether to enable catalog matching
|
|
|
-/// This function should be called in <code>application(_:open:options:)</code> from ApplicationDelegate
|
|
|
-+ (void)setCatalogMatchingEnabled:(BOOL)enabled;
|
|
|
-/// Control whether to enable advertiser rule match enabled in server side. This is expected
|
|
|
-/// to be called internally by FB SDK and will be removed in the future
|
|
|
-/// This function should be called in <code>application(_:open:options:)</code> from ApplicationDelegate
|
|
|
-+ (void)setAdvertiserRuleMatchInServerEnabled:(BOOL)enabled;
|
|
|
-/// Handle deeplink
|
|
|
-/// This function should be called in <code>application(_:open:options:) </code>from ApplicationDelegate
|
|
|
-+ (void)handle:(NSURL * _Nonnull)url;
|
|
|
-/// Calculate the conversion value for the app event based on the AEM configuration
|
|
|
-/// This function should be called when you log any in-app events
|
|
|
-+ (void)recordAndUpdateEvent:(NSString * _Nonnull)event currency:(NSString * _Nullable)currency value:(NSNumber * _Nullable)value parameters:(NSDictionary<NSString *, id> * _Nullable)parameters;
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+/// Describes anything that can provide instances of <code>AEMAdvertiserRuleMatching</code>
|
|
|
+SWIFT_PROTOCOL_NAMED("_AEMAdvertiserRuleProviding")
|
|
|
+@protocol FBAEMAdvertiserRuleProviding
|
|
|
+- (id <FBAEMAdvertiserRuleMatching> _Nullable)createRuleWithJson:(NSString * _Nullable)json SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (id <FBAEMAdvertiserRuleMatching> _Nullable)createRuleWithDict:(NSDictionary<NSString *, id> * _Nonnull)dictionary SWIFT_WARN_UNUSED_RESULT;
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMAdvertiserRuleFactory")
|
|
|
+@interface FBAEMAdvertiserRuleFactory : NSObject <FBAEMAdvertiserRuleProviding>
|
|
|
+- (id <FBAEMAdvertiserRuleMatching> _Nullable)createRuleWithJson:(NSString * _Nullable)json SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (id <FBAEMAdvertiserRuleMatching> _Nullable)createRuleWithDict:(NSDictionary<NSString *, id> * _Nonnull)dictionary SWIFT_WARN_UNUSED_RESULT;
|
|
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
|
@end
|
|
|
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+typedef SWIFT_ENUM_NAMED(NSInteger, FBAEMAdvertiserRuleOperator, "_AEMAdvertiserRuleOperator", open) {
|
|
|
+ FBAEMAdvertiserRuleOperatorUnknown = 0,
|
|
|
+ FBAEMAdvertiserRuleOperatorAnd = 1,
|
|
|
+ FBAEMAdvertiserRuleOperatorOr = 2,
|
|
|
+ FBAEMAdvertiserRuleOperatorNot = 3,
|
|
|
+ FBAEMAdvertiserRuleOperatorContains = 4,
|
|
|
+ FBAEMAdvertiserRuleOperatorNotContains = 5,
|
|
|
+ FBAEMAdvertiserRuleOperatorStartsWith = 6,
|
|
|
+ FBAEMAdvertiserRuleOperatorCaseInsensitiveContains = 7,
|
|
|
+ FBAEMAdvertiserRuleOperatorCaseInsensitiveNotContains = 8,
|
|
|
+ FBAEMAdvertiserRuleOperatorCaseInsensitiveStartsWith = 9,
|
|
|
+ FBAEMAdvertiserRuleOperatorRegexMatch = 10,
|
|
|
+ FBAEMAdvertiserRuleOperatorEqual = 11,
|
|
|
+ FBAEMAdvertiserRuleOperatorNotEqual = 12,
|
|
|
+ FBAEMAdvertiserRuleOperatorLessThan = 13,
|
|
|
+ FBAEMAdvertiserRuleOperatorLessThanOrEqual = 14,
|
|
|
+ FBAEMAdvertiserRuleOperatorGreaterThan = 15,
|
|
|
+ FBAEMAdvertiserRuleOperatorGreaterThanOrEqual = 16,
|
|
|
+ FBAEMAdvertiserRuleOperatorCaseInsensitiveIsAny = 17,
|
|
|
+ FBAEMAdvertiserRuleOperatorCaseInsensitiveIsNotAny = 18,
|
|
|
+ FBAEMAdvertiserRuleOperatorIsAny = 19,
|
|
|
+ FBAEMAdvertiserRuleOperatorIsNotAny = 20,
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMAdvertiserSingleEntryRule")
|
|
|
+@interface FBAEMAdvertiserSingleEntryRule : NSObject <FBAEMAdvertiserRuleMatching, NSCopying, NSSecureCoding>
|
|
|
+@property (nonatomic, readonly, getter=operator) enum FBAEMAdvertiserRuleOperator operator_;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull paramKey;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nullable linguisticCondition;
|
|
|
+@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nullable arrayCondition;
|
|
|
+- (nonnull instancetype)initWithOperator:(enum FBAEMAdvertiserRuleOperator)operator_ paramKey:(NSString * _Nonnull)paramKey linguisticCondition:(NSString * _Nullable)linguisticCondition numericalCondition:(NSNumber * _Nullable)numericalCondition arrayCondition:(NSArray<NSString *> * _Nullable)arrayCondition;
|
|
|
+- (BOOL)isMatchedEventParameters:(NSDictionary<NSString *, id> * _Nullable)eventParams SWIFT_WARN_UNUSED_RESULT;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
++ (void)setSupportsSecureCoding:(BOOL)value;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
+@end
|
|
|
|
|
|
-SWIFT_PROTOCOL_NAMED("SKAdNetworkReporting")
|
|
|
-@protocol FBSKAdNetworkReporting
|
|
|
-- (BOOL)shouldCutoff SWIFT_WARN_UNUSED_RESULT;
|
|
|
-- (BOOL)isReportingEvent:(NSString * _Nonnull)event SWIFT_WARN_UNUSED_RESULT;
|
|
|
-- (void)checkAndRevokeTimer;
|
|
|
+@class FBAEMRule;
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMConfiguration")
|
|
|
+@interface FBAEMConfiguration : NSObject <NSCopying, NSSecureCoding>
|
|
|
+@property (nonatomic, readonly) NSInteger cutoffTime;
|
|
|
+/// The UNIX timestamp of configuration’s valid date and works as a unqiue identifier of the configuration
|
|
|
+@property (nonatomic, readonly) NSInteger validFrom;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull defaultCurrency;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull mode;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nullable businessID;
|
|
|
+@property (nonatomic, readonly, strong) id <FBAEMAdvertiserRuleMatching> _Nullable matchingRule;
|
|
|
+@property (nonatomic, readonly, copy) NSArray<FBAEMRule *> * _Nonnull conversionValueRules;
|
|
|
+@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull eventSet;
|
|
|
+@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nonnull currencySet;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) id <FBAEMAdvertiserRuleProviding> _Nullable ruleProvider;)
|
|
|
++ (id <FBAEMAdvertiserRuleProviding> _Nullable)ruleProvider SWIFT_WARN_UNUSED_RESULT;
|
|
|
++ (void)configureWithRuleProvider:(id <FBAEMAdvertiserRuleProviding> _Nonnull)ruleProvider;
|
|
|
+- (nullable instancetype)initWithJSON:(NSDictionary<NSString *, id> * _Nullable)dict OBJC_DESIGNATED_INITIALIZER;
|
|
|
+- (BOOL)isSameValidFrom:(NSInteger)validFrom businessID:(NSString * _Nullable)businessID SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isSameBusinessID:(NSString * _Nullable)businessID SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMEvent")
|
|
|
+@interface FBAEMEvent : NSObject <NSCopying, NSSecureCoding>
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull eventName;
|
|
|
+@property (nonatomic, readonly, copy) NSDictionary<NSString *, NSNumber *> * _Nullable values;
|
|
|
+- (nullable instancetype)initWithJSON:(NSDictionary<NSString *, id> * _Nullable)dict OBJC_DESIGNATED_INITIALIZER;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMInvocation")
|
|
|
+@interface FBAEMInvocation : NSObject <NSSecureCoding>
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull campaignID;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nonnull acsToken;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nullable acsConfigurationID;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nullable businessID;
|
|
|
+@property (nonatomic, readonly, copy) NSString * _Nullable catalogID;
|
|
|
+@property (nonatomic, readonly) BOOL isTestMode;
|
|
|
+@property (nonatomic) BOOL hasStoreKitAdNetwork;
|
|
|
+@property (nonatomic) BOOL isConversionFilteringEligible;
|
|
|
+/// The unique identifier of the configuration, it’s the same as configuration’s validFrom
|
|
|
+@property (nonatomic, readonly) NSInteger configurationID;
|
|
|
+@property (nonatomic, readonly) NSInteger conversionValue;
|
|
|
+@property (nonatomic) BOOL isAggregated;
|
|
|
+- (nullable instancetype)initWithAppLinkData:(NSDictionary * _Nullable)appLinkData;
|
|
|
+- (BOOL)attributeEvent:(NSString * _Nonnull)event currency:(NSString * _Nullable)potentialValueCurrency value:(NSNumber * _Nullable)potentialValue parameters:(NSDictionary<NSString *, id> * _Nullable)parameters configurations:(NSDictionary<NSString *, NSArray<FBAEMConfiguration *> *> * _Nullable)configurations shouldUpdateCache:(BOOL)shouldUpdateCache isRuleMatchInServer:(BOOL)isRuleMatchInServer;
|
|
|
+- (BOOL)updateConversionValueWithConfigurations:(NSDictionary<NSString *, NSArray<FBAEMConfiguration *> *> * _Nullable)configurations event:(NSString * _Nonnull)event shouldBoostPriority:(BOOL)shouldBoostPriority SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isOptimizedEvent:(NSString * _Nonnull)event configurations:(NSDictionary<NSString *, NSArray<FBAEMConfiguration *> *> * _Nullable)configurations SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isOutOfWindowWithConfigurations:(NSDictionary<NSString *, NSArray<FBAEMConfiguration *> *> * _Nullable)configurations SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (NSString * _Nullable)getHMACWithDelay:(NSInteger)delay SWIFT_WARN_UNUSED_RESULT;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)decoder OBJC_DESIGNATED_INITIALIZER;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)encoder;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMNetworker")
|
|
|
+@interface FBAEMNetworker : NSObject <FBAEMNetworking, NSURLSessionDataDelegate>
|
|
|
+@property (nonatomic, copy) NSString * _Nullable userAgentSuffix;
|
|
|
+- (void)startGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary<NSString *, id> * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(NSString * _Nullable)method completion:(FBGraphRequestCompletion _Nonnull)completion;
|
|
|
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
|
+@end
|
|
|
+
|
|
|
+@class NSData;
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMRequestBody")
|
|
|
+@interface FBAEMRequestBody : NSObject
|
|
|
+/// Compressed version of <code>data</code>
|
|
|
+- (NSData * _Nullable)compressedData SWIFT_WARN_UNUSED_RESULT;
|
|
|
+@property (nonatomic, readonly, copy) NSData * _Nonnull data;
|
|
|
+- (void)appendWithKey:(NSString * _Nullable)key formValue:(NSString * _Nullable)value;
|
|
|
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMRule")
|
|
|
+@interface FBAEMRule : NSObject <NSCopying, NSSecureCoding>
|
|
|
+@property (nonatomic, readonly) NSInteger conversionValue;
|
|
|
+@property (nonatomic, readonly) NSInteger priority;
|
|
|
+@property (nonatomic, readonly, copy) NSArray<FBAEMEvent *> * _Nonnull events;
|
|
|
+- (nullable instancetype)initWithJSON:(NSDictionary<NSString *, id> * _Nonnull)dict OBJC_DESIGNATED_INITIALIZER;
|
|
|
+/// Check if event contains target event with name
|
|
|
+/// \param event Event name to check for
|
|
|
+///
|
|
|
+///
|
|
|
+/// returns:
|
|
|
+/// Boolean
|
|
|
+- (BOOL)containsEvent:(NSString * _Nonnull)event SWIFT_WARN_UNUSED_RESULT;
|
|
|
+/// Check if recorded events and values match <code>events</code>
|
|
|
+/// \param recordedEvents Recorded events to check
|
|
|
+///
|
|
|
+/// \param recordedValues Recorded values to check
|
|
|
+///
|
|
|
+///
|
|
|
+/// returns:
|
|
|
+/// Boolean
|
|
|
+- (BOOL)isMatchedWithRecordedEvents:(NSSet<NSString *> * _Nullable)recordedEvents recordedValues:(NSDictionary<NSString *, NSDictionary<NSString *, id> *> * _Nullable)recordedValues SWIFT_WARN_UNUSED_RESULT;
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;)
|
|
|
++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
|
+- (void)encodeWithCoder:(NSCoder * _Nonnull)coder;
|
|
|
+- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
|
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+/// Internal Type exposed to facilitate transition to Swift.
|
|
|
+/// API Subject to change or removal without warning. Do not use.
|
|
|
+/// @warning INTERNAL - DO NOT USE
|
|
|
+SWIFT_CLASS_NAMED("_AEMSettings")
|
|
|
+@interface FBAEMSettings : NSObject
|
|
|
++ (NSString * _Nullable)appID SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
|
+@end
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+SWIFT_CLASS_NAMED("_AEMUtility")
|
|
|
+@interface FBAEMUtility : NSObject
|
|
|
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBAEMUtility * _Nonnull sharedUtility;)
|
|
|
++ (FBAEMUtility * _Nonnull)sharedUtility SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (FBAEMInvocation * _Nullable)getMatchedInvocation:(NSArray<FBAEMInvocation *> * _Nonnull)invocations businessID:(NSString * _Nullable)businessID SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (NSNumber * _Nonnull)getInSegmentValue:(NSDictionary<NSString *, id> * _Nullable)parameters matchingRule:(id <FBAEMAdvertiserRuleMatching> _Nullable)matchingRule SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (NSString * _Nullable)getContent:(NSDictionary<NSString *, id> * _Nullable)parameters SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (NSString * _Nullable)getContentID:(NSDictionary<NSString *, id> * _Nullable)parameters SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (NSArray<NSString *> * _Nonnull)getBusinessIDsInOrder:(NSArray<FBAEMInvocation *> * _Nonnull)invocations SWIFT_WARN_UNUSED_RESULT;
|
|
|
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
|
@end
|
|
|
|
|
|
-#endif
|
|
|
-#if defined(__cplusplus)
|
|
|
-#endif
|
|
|
#if __has_attribute(external_source_symbol)
|
|
|
# pragma clang attribute pop
|
|
|
#endif
|
|
|
#pragma clang diagnostic pop
|
|
|
#endif
|
|
|
|
|
|
-#else
|
|
|
-#error unsupported Swift architecture
|
|
|
#endif
|