| | |
| | | #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.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) |
| | | #ifndef FBSDKCOREKIT_SWIFT_H |
| | | #define FBSDKCOREKIT_SWIFT_H |
| | | #pragma clang diagnostic push |
| | |
| | | # 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> |
| | |
| | | #include <cstdint> |
| | | #include <cstddef> |
| | | #include <cstdbool> |
| | | #include <cstring> |
| | | #include <stdlib.h> |
| | | #include <new> |
| | | #include <type_traits> |
| | | #else |
| | | #include <stdint.h> |
| | | #include <stddef.h> |
| | | #include <stdbool.h> |
| | | #include <string.h> |
| | | #endif |
| | | #if defined(__cplusplus) |
| | | #if defined(__arm64e__) && __has_include(<ptrauth.h>) |
| | | # include <ptrauth.h> |
| | | #else |
| | | #pragma clang diagnostic push |
| | | #pragma clang diagnostic ignored "-Wreserved-macro-identifier" |
| | | # ifndef __ptrauth_swift_value_witness_function_pointer |
| | | # define __ptrauth_swift_value_witness_function_pointer(x) |
| | | # endif |
| | | # ifndef __ptrauth_swift_class_method_pointer |
| | | # define __ptrauth_swift_class_method_pointer(x) |
| | | # endif |
| | | #pragma clang diagnostic pop |
| | | #endif |
| | | #endif |
| | | |
| | | #if !defined(SWIFT_TYPEDEFS) |
| | |
| | | # if __has_feature(objc_class_property) |
| | | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ |
| | | # else |
| | | # define SWIFT_CLASS_PROPERTY(...) |
| | | # define SWIFT_CLASS_PROPERTY(...) |
| | | # endif |
| | | #endif |
| | | |
| | | #if __has_attribute(objc_runtime_name) |
| | | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) |
| | | #else |
| | | # define SWIFT_RUNTIME_NAME(X) |
| | | #if !defined(SWIFT_RUNTIME_NAME) |
| | | # if __has_attribute(objc_runtime_name) |
| | | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) |
| | | # else |
| | | # define SWIFT_RUNTIME_NAME(X) |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(swift_name) |
| | | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) |
| | | #else |
| | | # define SWIFT_COMPILE_NAME(X) |
| | | #if !defined(SWIFT_COMPILE_NAME) |
| | | # if __has_attribute(swift_name) |
| | | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) |
| | | # else |
| | | # define SWIFT_COMPILE_NAME(X) |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(objc_method_family) |
| | | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) |
| | | #else |
| | | # define SWIFT_METHOD_FAMILY(X) |
| | | #if !defined(SWIFT_METHOD_FAMILY) |
| | | # if __has_attribute(objc_method_family) |
| | | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) |
| | | # else |
| | | # define SWIFT_METHOD_FAMILY(X) |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(noescape) |
| | | # define SWIFT_NOESCAPE __attribute__((noescape)) |
| | | #else |
| | | # define SWIFT_NOESCAPE |
| | | #if !defined(SWIFT_NOESCAPE) |
| | | # if __has_attribute(noescape) |
| | | # define SWIFT_NOESCAPE __attribute__((noescape)) |
| | | # else |
| | | # define SWIFT_NOESCAPE |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(ns_consumed) |
| | | # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) |
| | | #else |
| | | # define SWIFT_RELEASES_ARGUMENT |
| | | #if !defined(SWIFT_RELEASES_ARGUMENT) |
| | | # if __has_attribute(ns_consumed) |
| | | # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) |
| | | # else |
| | | # define SWIFT_RELEASES_ARGUMENT |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(warn_unused_result) |
| | | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
| | | #else |
| | | # define SWIFT_WARN_UNUSED_RESULT |
| | | #if !defined(SWIFT_WARN_UNUSED_RESULT) |
| | | # if __has_attribute(warn_unused_result) |
| | | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
| | | # else |
| | | # define SWIFT_WARN_UNUSED_RESULT |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(noreturn) |
| | | # define SWIFT_NORETURN __attribute__((noreturn)) |
| | | #else |
| | | # define SWIFT_NORETURN |
| | | #if !defined(SWIFT_NORETURN) |
| | | # if __has_attribute(noreturn) |
| | | # define SWIFT_NORETURN __attribute__((noreturn)) |
| | | # else |
| | | # define SWIFT_NORETURN |
| | | # endif |
| | | #endif |
| | | #if !defined(SWIFT_CLASS_EXTRA) |
| | | # define SWIFT_CLASS_EXTRA |
| | | # define SWIFT_CLASS_EXTRA |
| | | #endif |
| | | #if !defined(SWIFT_PROTOCOL_EXTRA) |
| | | # define SWIFT_PROTOCOL_EXTRA |
| | | # define SWIFT_PROTOCOL_EXTRA |
| | | #endif |
| | | #if !defined(SWIFT_ENUM_EXTRA) |
| | | # define SWIFT_ENUM_EXTRA |
| | | # define SWIFT_ENUM_EXTRA |
| | | #endif |
| | | #if !defined(SWIFT_CLASS) |
| | | # if __has_attribute(objc_subclassing_restricted) |
| | |
| | | # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) |
| | | # endif |
| | | #endif |
| | | |
| | | #if !defined(SWIFT_PROTOCOL) |
| | | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
| | | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
| | | #endif |
| | | |
| | | #if !defined(SWIFT_EXTENSION) |
| | | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) |
| | | #endif |
| | | |
| | | #if !defined(OBJC_DESIGNATED_INITIALIZER) |
| | | # if __has_attribute(objc_designated_initializer) |
| | | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) |
| | | # else |
| | | # define OBJC_DESIGNATED_INITIALIZER |
| | | # define OBJC_DESIGNATED_INITIALIZER |
| | | # endif |
| | | #endif |
| | | #if !defined(SWIFT_ENUM_ATTR) |
| | | # if defined(__has_attribute) && __has_attribute(enum_extensibility) |
| | | # if __has_attribute(enum_extensibility) |
| | | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) |
| | | # else |
| | | # define SWIFT_ENUM_ATTR(_extensibility) |
| | | # define SWIFT_ENUM_ATTR(_extensibility) |
| | | # endif |
| | | #endif |
| | | #if !defined(SWIFT_ENUM) |
| | |
| | | #if !defined(SWIFT_DEPRECATED_MSG) |
| | | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) |
| | | #endif |
| | | #if __has_feature(attribute_diagnose_if_objc) |
| | | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) |
| | | #else |
| | | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) |
| | | #if !defined(SWIFT_DEPRECATED_OBJC) |
| | | # if __has_feature(attribute_diagnose_if_objc) |
| | | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) |
| | | # else |
| | | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) |
| | | # endif |
| | | #endif |
| | | #if defined(__OBJC__) |
| | | #if !defined(IBSegueAction) |
| | | # define IBSegueAction |
| | | # define IBSegueAction |
| | | #endif |
| | | #endif |
| | | #if !defined(SWIFT_EXTERN) |
| | |
| | | #if !defined(SWIFT_CALL) |
| | | # define SWIFT_CALL __attribute__((swiftcall)) |
| | | #endif |
| | | #if defined(__cplusplus) |
| | | #if !defined(SWIFT_NOEXCEPT) |
| | | # define SWIFT_NOEXCEPT noexcept |
| | | #if !defined(SWIFT_INDIRECT_RESULT) |
| | | # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) |
| | | #endif |
| | | #if !defined(SWIFT_CONTEXT) |
| | | # define SWIFT_CONTEXT __attribute__((swift_context)) |
| | | #endif |
| | | #if !defined(SWIFT_ERROR_RESULT) |
| | | # define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) |
| | | #endif |
| | | #if defined(__cplusplus) |
| | | # define SWIFT_NOEXCEPT noexcept |
| | | #else |
| | | #if !defined(SWIFT_NOEXCEPT) |
| | | # define SWIFT_NOEXCEPT |
| | | #endif |
| | | #if !defined(SWIFT_C_INLINE_THUNK) |
| | | # if __has_attribute(always_inline) |
| | | # if __has_attribute(nodebug) |
| | | # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) |
| | | # else |
| | | # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) |
| | | # endif |
| | | # else |
| | | # define SWIFT_C_INLINE_THUNK inline |
| | | # 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; |
| | | } |
| | | #if defined(_WIN32) |
| | | #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) |
| | | # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) |
| | | #endif |
| | | #else |
| | | #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) |
| | | # define SWIFT_IMPORT_STDLIB_SYMBOL |
| | | #endif |
| | | #endif |
| | | #if defined(__OBJC__) |
| | | #if __has_feature(modules) |
| | | #if __has_feature(objc_modules) |
| | | #if __has_warning("-Watimport-in-framework-header") |
| | | #pragma clang diagnostic ignored "-Watimport-in-framework-header" |
| | | #endif |
| | |
| | | @import CoreFoundation; |
| | | @import CoreGraphics; |
| | | @import FBAEMKit; |
| | | @import FBSDKCoreKit_Basics; |
| | | @import Foundation; |
| | | @import ObjectiveC; |
| | | @import SafariServices; |
| | |
| | | + (void)setConversionFilteringEnabled:(BOOL)isEnabled; |
| | | + (void)setCatalogMatchingEnabled:(BOOL)isEnabled; |
| | | + (void)setAdvertiserRuleMatchInServerEnabled:(BOOL)isEnabled; |
| | | + (void)handle:(NSURL * _Nonnull)url; |
| | | + (void)handle:(NSURL * _Nullable)url; |
| | | @end |
| | | |
| | | |
| | |
| | | /// in routing and handling an App Link request. |
| | | @property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull appLinkData; |
| | | /// The AppLink to navigate to |
| | | @property (nonatomic, readonly, strong) FBSDKAppLink * _Nonnull appLink; |
| | | @property (nonatomic, readonly, strong) FBSDKAppLink * _Nullable appLink; |
| | | /// Returns navigation type for current instance. It does not produce any side-effects as the <code>navigate</code> method. |
| | | @property (nonatomic, readonly) FBSDKAppLinkNavigationType navigationType; |
| | | /// Creates an AppLinkNavigation with the given link, extras, and App Link data |
| | | - (nonnull instancetype)initWithAppLink:(FBSDKAppLink * _Nonnull)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData OBJC_DESIGNATED_INITIALIZER; |
| | | - (nonnull instancetype)initWithAppLink:(FBSDKAppLink * _Nullable)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData OBJC_DESIGNATED_INITIALIZER; |
| | | /// Creates an AppLinkNavigation with the given link, extras, App Link data and settings |
| | | - (nonnull instancetype)initWithAppLink:(FBSDKAppLink * _Nonnull)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData settings:(id <FBSDKSettings> _Nonnull)settings SWIFT_DEPRECATED_MSG("\n Please use init(appLink:extras:appLinkData:) to instantiate an `AppLinkNavigation`.\n This method will be removed in the next major version.\"\n "); |
| | | /// Creates an AppLinkNavigation with the given link, extras, and App Link data. The <code>settings</code> argument will be ignored in favor of internal dependency injection. |
| | | + (FBSDKAppLinkNavigation * _Nonnull)navigationWithAppLink:(FBSDKAppLink * _Nonnull)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData settings:(id <FBSDKSettings> _Nonnull)settings SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("\n Please use designated init to instantiate an AppLinkNavigation. This method will be removed in future releases.\"\n "); |
| | | + (FBSDKAppLinkNavigation * _Nonnull)navigationWithAppLink:(FBSDKAppLink * _Nullable)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData settings:(id <FBSDKSettings> _Nonnull)settings SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("\n Please use designated init to instantiate an AppLinkNavigation. This method will be removed in future releases.\"\n "); |
| | | /// Creates an instance of <code>[String: [String: String]]</code> with the correct format for iOS callback URLs to be used as ‘appLinkData’ argument in the call to init(appLink:extras:appLinkData:). |
| | | + (NSDictionary<NSString *, NSDictionary<NSString *, NSString *> *> * _Nonnull)callbackAppLinkDataForAppWithName:(NSString * _Nonnull)appName url:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
| | | /// Performs the navigation |
| | |
| | | /// of your application delegate. It should be invoked for the proper use of the Facebook SDK. |
| | | /// As part of SDK initialization, basic auto-logging of app events will occur; this can be |
| | | /// controlled via the <code>FacebookAutoLogAppEventsEnabled</code> key in the project’s Info.plist file. |
| | | /// note: |
| | | /// If this method is called after calling <code>initializeSDK</code>, then the return value will always be <code>false</code>. |
| | | /// \param application The application as passed to <code>UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:)</code>. |
| | | /// |
| | | /// \param launchOptions The launch options as passed to <code>UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:)</code>. |
| | | /// |
| | | /// |
| | | /// returns: |
| | | /// <code>true</code> if there are any added application observers that themselves return true from calling <code>application(_:didFinishLaunchingWithOptions:)</code>. |
| | | /// Otherwise will return <code>false</code>. |
| | | /// <code>true</code> |
| | | - (BOOL)application:(UIApplication * _Nonnull)application didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> * _Nullable)launchOptions; |
| | | /// Adds an observer that will be informed about application lifecycle events. |
| | | /// note: |
| | |
| | | - (void)callCapiGatewayAPIWith:(NSDictionary<NSString *, id> * _Nonnull)parameters userAgent:(NSString * _Nonnull)userAgent; |
| | | @end |
| | | |
| | | |
| | | SWIFT_PROTOCOL_NAMED("MACARuleMatching") |
| | | @protocol FBSDKMACARuleMatching |
| | | - (void)enable; |
| | | - (NSDictionary * _Nullable)processParameters:(NSDictionary * _Nullable)params event:(NSString * _Nullable)event SWIFT_WARN_UNUSED_RESULT; |
| | | @end |
| | | |
| | | @class NSDate; |
| | | @class FBSDKUserAgeRange; |
| | | @class FBSDKLocation; |
| | |
| | | /// This field will only be populated if your user has granted your application |
| | | /// the <code>user_gender</code> permission. |
| | | @property (nonatomic, readonly, copy) NSString * _Nullable gender; |
| | | /// The user’s granted permissions. |
| | | /// important: |
| | | /// This field will only be populated if your user has granted permissions to your |
| | | /// application. |
| | | @property (nonatomic, readonly, copy) NSSet<NSString *> * _Nullable permissions; |
| | | /// Indicates whether this type will automatically observe access token changes |
| | | /// (via <code>AccessTokenDidChange</code> notifications). |
| | | /// If observing changes, this class will issue a Graph request for public profile data when the current token’s user |
| | |
| | | /// |
| | | /// \param refreshDate The date the profile was fetched. Defaults to the time of instantiation. |
| | | /// |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate; |
| | | /// \param permissions The user’s granted permissions. Defaults to <code>nil</code>. |
| | | /// |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate permissions:(NSSet<NSString *> * _Nullable)permissions; |
| | | /// Creates a new profile. |
| | | /// \param userID The user’s identifier. Defaults to <code>nil</code>. |
| | | /// |
| | |
| | | /// |
| | | /// \param gender The user’s gender. Defaults to <code>nil</code>. |
| | | /// |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate imageURL:(NSURL * _Nullable)imageURL email:(NSString * _Nullable)email friendIDs:(NSArray<NSString *> * _Nullable)friendIDs birthday:(NSDate * _Nullable)birthday ageRange:(FBSDKUserAgeRange * _Nullable)ageRange hometown:(FBSDKLocation * _Nullable)hometown location:(FBSDKLocation * _Nullable)location gender:(NSString * _Nullable)gender; |
| | | /// \param permissions The user’s granted permissions. Defaults to <code>nil</code>. |
| | | /// |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate imageURL:(NSURL * _Nullable)imageURL email:(NSString * _Nullable)email friendIDs:(NSArray<NSString *> * _Nullable)friendIDs birthday:(NSDate * _Nullable)birthday ageRange:(FBSDKUserAgeRange * _Nullable)ageRange hometown:(FBSDKLocation * _Nullable)hometown location:(FBSDKLocation * _Nullable)location gender:(NSString * _Nullable)gender permissions:(NSSet<NSString *> * _Nullable)permissions; |
| | | /// Creates a new profile. |
| | | /// <ul> |
| | | /// <li> |
| | | /// permissions: The user’s granted permissions. Defaults to <code>nil</code>. |
| | | /// </li> |
| | | /// </ul> |
| | | /// \param userID The user’s identifier. Defaults to <code>nil</code>. |
| | | /// |
| | | /// \param firstName The user’s first name. Defaults to <code>nil</code>. |
| | |
| | | /// When <code>true</code>, <code>loadCurrentProfile(completion:):</code> will assume the profile is incomplete and disregard |
| | | /// any cached profile. Defaults to <code>false</code>. |
| | | /// |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate imageURL:(NSURL * _Nullable)imageURL email:(NSString * _Nullable)email friendIDs:(NSArray<NSString *> * _Nullable)friendIDs birthday:(NSDate * _Nullable)birthday ageRange:(FBSDKUserAgeRange * _Nullable)ageRange hometown:(FBSDKLocation * _Nullable)hometown location:(FBSDKLocation * _Nullable)location gender:(NSString * _Nullable)gender isLimited:(BOOL)isLimited OBJC_DESIGNATED_INITIALIZER; |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate imageURL:(NSURL * _Nullable)imageURL email:(NSString * _Nullable)email friendIDs:(NSArray<NSString *> * _Nullable)friendIDs birthday:(NSDate * _Nullable)birthday ageRange:(FBSDKUserAgeRange * _Nullable)ageRange hometown:(FBSDKLocation * _Nullable)hometown location:(FBSDKLocation * _Nullable)location gender:(NSString * _Nullable)gender isLimited:(BOOL)isLimited permissions:(NSSet<NSString *> * _Nullable)permissions OBJC_DESIGNATED_INITIALIZER; |
| | | /// Indicates whether this type will automatically observe access token changes |
| | | /// (via <code>AccessTokenDidChange</code> notifications). |
| | | /// If observing changes, this class will issue a Graph request for public profile data when the current token’s user |
| | |
| | | |
| | | |
| | | |
| | | SWIFT_CLASS_NAMED("ProtectedModeManager") |
| | | @interface FBSDKProtectedModeManager : NSObject <FBSDKAppEventsParameterProcessing> |
| | | - (void)enable; |
| | | - (NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)processParameters:(NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)parameters eventName:(FBSDKAppEventName _Nullable)eventName SWIFT_WARN_UNUSED_RESULT; |
| | | + (BOOL)isProtectedModeAppliedWithParameters:(NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)parameters 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 |
| | |
| | | @property (nonatomic) BOOL isAdvertiserTrackingEnabled; |
| | | @property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; |
| | | @property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable persistableDataProcessingOptions; |
| | | @property (nonatomic) BOOL isDomainErrorEnabled; |
| | | /// Sets the data processing options. |
| | | /// \param options The list of options. |
| | | /// |
| | |
| | | /// @warning INTERNAL - DO NOT USE |
| | | @property (nonatomic, copy) NSString * _Nullable userAgentSuffix; |
| | | /// Controls the advertiser tracking status of the data sent to Facebook. |
| | | /// The default value is <code>false</code>. |
| | | @property (nonatomic) BOOL advertiserTrackingEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isAdvertiserTrackingEnabled` instead.\n "); |
| | | /// Controls the advertiser tracking status of the data sent to Facebook. |
| | | /// The default value is <code>false</code>. |
| | | @property (nonatomic) BOOL isAdvertiserTrackingEnabled; |
| | | /// Internal property exposed to facilitate transition to Swift. |
| | | /// API Subject to change or removal without warning. Do not use. |
| | |
| | | /// |
| | | - (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options; |
| | | /// Sets the data processing options. |
| | | /// \param options The list of the options. |
| | | /// |
| | | /// \param country The code for the country. |
| | | /// |
| | | /// \param state The code for the state. |
| | | /// |
| | | /// <ul> |
| | | /// <li> |
| | | /// Parameters: |
| | | /// </li> |
| | | /// <li> |
| | | /// options The list of the options. |
| | | /// </li> |
| | | /// <li> |
| | | /// country The code for the country. |
| | | /// </li> |
| | | /// <li> |
| | | /// state The code for the state. |
| | | /// </li> |
| | | /// </ul> |
| | | - (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options country:(int32_t)country state:(int32_t)state; |
| | | /// The current Facebook SDK logging behavior. This should consist of strings |
| | | /// defined as constants with <code>LoggingBehavior</code> that indicate what information should be logged. |
| | |
| | | /// API Subject to change or removal without warning. Do not use. |
| | | /// @warning INTERNAL - DO NOT USE |
| | | @property (nonatomic, readonly, copy) NSString * _Nullable graphAPIDebugParameterValue; |
| | | /// Controls whether to show domain errors. |
| | | @property (nonatomic) BOOL isDomainErrorEnabled; |
| | | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
| | | @end |
| | | |
| | |
| | | - (void)logIfSDKSettingsChanged; |
| | | @end |
| | | |
| | | |
| | | |
| | | @class NSURLRequest; |
| | | |
| | | /// Internal class 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("ShimGraphRequestInterceptor") |
| | | @interface FBSDKShimGraphRequestInterceptor : NSObject |
| | | SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKShimGraphRequestInterceptor * _Nonnull shared;) |
| | | + (FBSDKShimGraphRequestInterceptor * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
| | | - (BOOL)shouldInterceptRequest:(NSURLRequest * _Nonnull)request SWIFT_WARN_UNUSED_RESULT; |
| | | - (void)executeWithRequest:(NSURLRequest * _Nonnull)request completionHandler:(FBSDKURLSessionTaskBlock _Nonnull)completionHandler; |
| | | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
| | | @end |
| | | |
| | | |
| | | |
| | |
| | | @end |
| | | |
| | | #endif |
| | | #if defined(__cplusplus) |
| | | #endif |
| | | #if __has_attribute(external_source_symbol) |
| | | # pragma clang attribute pop |
| | | #endif |
| | | #if defined(__cplusplus) |
| | | #endif |
| | | #pragma clang diagnostic pop |
| | | #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.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) |
| | | #ifndef FBSDKCOREKIT_SWIFT_H |
| | | #define FBSDKCOREKIT_SWIFT_H |
| | | #pragma clang diagnostic push |
| | |
| | | # 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> |
| | |
| | | #include <cstdint> |
| | | #include <cstddef> |
| | | #include <cstdbool> |
| | | #include <cstring> |
| | | #include <stdlib.h> |
| | | #include <new> |
| | | #include <type_traits> |
| | | #else |
| | | #include <stdint.h> |
| | | #include <stddef.h> |
| | | #include <stdbool.h> |
| | | #include <string.h> |
| | | #endif |
| | | #if defined(__cplusplus) |
| | | #if defined(__arm64e__) && __has_include(<ptrauth.h>) |
| | | # include <ptrauth.h> |
| | | #else |
| | | #pragma clang diagnostic push |
| | | #pragma clang diagnostic ignored "-Wreserved-macro-identifier" |
| | | # ifndef __ptrauth_swift_value_witness_function_pointer |
| | | # define __ptrauth_swift_value_witness_function_pointer(x) |
| | | # endif |
| | | # ifndef __ptrauth_swift_class_method_pointer |
| | | # define __ptrauth_swift_class_method_pointer(x) |
| | | # endif |
| | | #pragma clang diagnostic pop |
| | | #endif |
| | | #endif |
| | | |
| | | #if !defined(SWIFT_TYPEDEFS) |
| | |
| | | # if __has_feature(objc_class_property) |
| | | # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ |
| | | # else |
| | | # define SWIFT_CLASS_PROPERTY(...) |
| | | # define SWIFT_CLASS_PROPERTY(...) |
| | | # endif |
| | | #endif |
| | | |
| | | #if __has_attribute(objc_runtime_name) |
| | | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) |
| | | #else |
| | | # define SWIFT_RUNTIME_NAME(X) |
| | | #if !defined(SWIFT_RUNTIME_NAME) |
| | | # if __has_attribute(objc_runtime_name) |
| | | # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) |
| | | # else |
| | | # define SWIFT_RUNTIME_NAME(X) |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(swift_name) |
| | | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) |
| | | #else |
| | | # define SWIFT_COMPILE_NAME(X) |
| | | #if !defined(SWIFT_COMPILE_NAME) |
| | | # if __has_attribute(swift_name) |
| | | # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) |
| | | # else |
| | | # define SWIFT_COMPILE_NAME(X) |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(objc_method_family) |
| | | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) |
| | | #else |
| | | # define SWIFT_METHOD_FAMILY(X) |
| | | #if !defined(SWIFT_METHOD_FAMILY) |
| | | # if __has_attribute(objc_method_family) |
| | | # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) |
| | | # else |
| | | # define SWIFT_METHOD_FAMILY(X) |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(noescape) |
| | | # define SWIFT_NOESCAPE __attribute__((noescape)) |
| | | #else |
| | | # define SWIFT_NOESCAPE |
| | | #if !defined(SWIFT_NOESCAPE) |
| | | # if __has_attribute(noescape) |
| | | # define SWIFT_NOESCAPE __attribute__((noescape)) |
| | | # else |
| | | # define SWIFT_NOESCAPE |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(ns_consumed) |
| | | # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) |
| | | #else |
| | | # define SWIFT_RELEASES_ARGUMENT |
| | | #if !defined(SWIFT_RELEASES_ARGUMENT) |
| | | # if __has_attribute(ns_consumed) |
| | | # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) |
| | | # else |
| | | # define SWIFT_RELEASES_ARGUMENT |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(warn_unused_result) |
| | | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
| | | #else |
| | | # define SWIFT_WARN_UNUSED_RESULT |
| | | #if !defined(SWIFT_WARN_UNUSED_RESULT) |
| | | # if __has_attribute(warn_unused_result) |
| | | # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
| | | # else |
| | | # define SWIFT_WARN_UNUSED_RESULT |
| | | # endif |
| | | #endif |
| | | #if __has_attribute(noreturn) |
| | | # define SWIFT_NORETURN __attribute__((noreturn)) |
| | | #else |
| | | # define SWIFT_NORETURN |
| | | #if !defined(SWIFT_NORETURN) |
| | | # if __has_attribute(noreturn) |
| | | # define SWIFT_NORETURN __attribute__((noreturn)) |
| | | # else |
| | | # define SWIFT_NORETURN |
| | | # endif |
| | | #endif |
| | | #if !defined(SWIFT_CLASS_EXTRA) |
| | | # define SWIFT_CLASS_EXTRA |
| | | # define SWIFT_CLASS_EXTRA |
| | | #endif |
| | | #if !defined(SWIFT_PROTOCOL_EXTRA) |
| | | # define SWIFT_PROTOCOL_EXTRA |
| | | # define SWIFT_PROTOCOL_EXTRA |
| | | #endif |
| | | #if !defined(SWIFT_ENUM_EXTRA) |
| | | # define SWIFT_ENUM_EXTRA |
| | | # define SWIFT_ENUM_EXTRA |
| | | #endif |
| | | #if !defined(SWIFT_CLASS) |
| | | # if __has_attribute(objc_subclassing_restricted) |
| | |
| | | # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) |
| | | # endif |
| | | #endif |
| | | |
| | | #if !defined(SWIFT_PROTOCOL) |
| | | # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
| | | # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
| | | #endif |
| | | |
| | | #if !defined(SWIFT_EXTENSION) |
| | | # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) |
| | | #endif |
| | | |
| | | #if !defined(OBJC_DESIGNATED_INITIALIZER) |
| | | # if __has_attribute(objc_designated_initializer) |
| | | # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) |
| | | # else |
| | | # define OBJC_DESIGNATED_INITIALIZER |
| | | # define OBJC_DESIGNATED_INITIALIZER |
| | | # endif |
| | | #endif |
| | | #if !defined(SWIFT_ENUM_ATTR) |
| | | # if defined(__has_attribute) && __has_attribute(enum_extensibility) |
| | | # if __has_attribute(enum_extensibility) |
| | | # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) |
| | | # else |
| | | # define SWIFT_ENUM_ATTR(_extensibility) |
| | | # define SWIFT_ENUM_ATTR(_extensibility) |
| | | # endif |
| | | #endif |
| | | #if !defined(SWIFT_ENUM) |
| | |
| | | #if !defined(SWIFT_DEPRECATED_MSG) |
| | | # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) |
| | | #endif |
| | | #if __has_feature(attribute_diagnose_if_objc) |
| | | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) |
| | | #else |
| | | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) |
| | | #if !defined(SWIFT_DEPRECATED_OBJC) |
| | | # if __has_feature(attribute_diagnose_if_objc) |
| | | # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) |
| | | # else |
| | | # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) |
| | | # endif |
| | | #endif |
| | | #if defined(__OBJC__) |
| | | #if !defined(IBSegueAction) |
| | | # define IBSegueAction |
| | | # define IBSegueAction |
| | | #endif |
| | | #endif |
| | | #if !defined(SWIFT_EXTERN) |
| | |
| | | #if !defined(SWIFT_CALL) |
| | | # define SWIFT_CALL __attribute__((swiftcall)) |
| | | #endif |
| | | #if defined(__cplusplus) |
| | | #if !defined(SWIFT_NOEXCEPT) |
| | | # define SWIFT_NOEXCEPT noexcept |
| | | #if !defined(SWIFT_INDIRECT_RESULT) |
| | | # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) |
| | | #endif |
| | | #if !defined(SWIFT_CONTEXT) |
| | | # define SWIFT_CONTEXT __attribute__((swift_context)) |
| | | #endif |
| | | #if !defined(SWIFT_ERROR_RESULT) |
| | | # define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) |
| | | #endif |
| | | #if defined(__cplusplus) |
| | | # define SWIFT_NOEXCEPT noexcept |
| | | #else |
| | | #if !defined(SWIFT_NOEXCEPT) |
| | | # define SWIFT_NOEXCEPT |
| | | #endif |
| | | #if !defined(SWIFT_C_INLINE_THUNK) |
| | | # if __has_attribute(always_inline) |
| | | # if __has_attribute(nodebug) |
| | | # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) |
| | | # else |
| | | # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) |
| | | # endif |
| | | # else |
| | | # define SWIFT_C_INLINE_THUNK inline |
| | | # 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; |
| | | } |
| | | #if defined(_WIN32) |
| | | #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) |
| | | # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) |
| | | #endif |
| | | #else |
| | | #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) |
| | | # define SWIFT_IMPORT_STDLIB_SYMBOL |
| | | #endif |
| | | #endif |
| | | #if defined(__OBJC__) |
| | | #if __has_feature(modules) |
| | | #if __has_feature(objc_modules) |
| | | #if __has_warning("-Watimport-in-framework-header") |
| | | #pragma clang diagnostic ignored "-Watimport-in-framework-header" |
| | | #endif |
| | |
| | | @import CoreFoundation; |
| | | @import CoreGraphics; |
| | | @import FBAEMKit; |
| | | @import FBSDKCoreKit_Basics; |
| | | @import Foundation; |
| | | @import ObjectiveC; |
| | | @import SafariServices; |
| | |
| | | + (void)setConversionFilteringEnabled:(BOOL)isEnabled; |
| | | + (void)setCatalogMatchingEnabled:(BOOL)isEnabled; |
| | | + (void)setAdvertiserRuleMatchInServerEnabled:(BOOL)isEnabled; |
| | | + (void)handle:(NSURL * _Nonnull)url; |
| | | + (void)handle:(NSURL * _Nullable)url; |
| | | @end |
| | | |
| | | |
| | |
| | | /// in routing and handling an App Link request. |
| | | @property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull appLinkData; |
| | | /// The AppLink to navigate to |
| | | @property (nonatomic, readonly, strong) FBSDKAppLink * _Nonnull appLink; |
| | | @property (nonatomic, readonly, strong) FBSDKAppLink * _Nullable appLink; |
| | | /// Returns navigation type for current instance. It does not produce any side-effects as the <code>navigate</code> method. |
| | | @property (nonatomic, readonly) FBSDKAppLinkNavigationType navigationType; |
| | | /// Creates an AppLinkNavigation with the given link, extras, and App Link data |
| | | - (nonnull instancetype)initWithAppLink:(FBSDKAppLink * _Nonnull)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData OBJC_DESIGNATED_INITIALIZER; |
| | | - (nonnull instancetype)initWithAppLink:(FBSDKAppLink * _Nullable)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData OBJC_DESIGNATED_INITIALIZER; |
| | | /// Creates an AppLinkNavigation with the given link, extras, App Link data and settings |
| | | - (nonnull instancetype)initWithAppLink:(FBSDKAppLink * _Nonnull)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData settings:(id <FBSDKSettings> _Nonnull)settings SWIFT_DEPRECATED_MSG("\n Please use init(appLink:extras:appLinkData:) to instantiate an `AppLinkNavigation`.\n This method will be removed in the next major version.\"\n "); |
| | | /// Creates an AppLinkNavigation with the given link, extras, and App Link data. The <code>settings</code> argument will be ignored in favor of internal dependency injection. |
| | | + (FBSDKAppLinkNavigation * _Nonnull)navigationWithAppLink:(FBSDKAppLink * _Nonnull)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData settings:(id <FBSDKSettings> _Nonnull)settings SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("\n Please use designated init to instantiate an AppLinkNavigation. This method will be removed in future releases.\"\n "); |
| | | + (FBSDKAppLinkNavigation * _Nonnull)navigationWithAppLink:(FBSDKAppLink * _Nullable)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData settings:(id <FBSDKSettings> _Nonnull)settings SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("\n Please use designated init to instantiate an AppLinkNavigation. This method will be removed in future releases.\"\n "); |
| | | /// Creates an instance of <code>[String: [String: String]]</code> with the correct format for iOS callback URLs to be used as ‘appLinkData’ argument in the call to init(appLink:extras:appLinkData:). |
| | | + (NSDictionary<NSString *, NSDictionary<NSString *, NSString *> *> * _Nonnull)callbackAppLinkDataForAppWithName:(NSString * _Nonnull)appName url:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
| | | /// Performs the navigation |
| | |
| | | /// of your application delegate. It should be invoked for the proper use of the Facebook SDK. |
| | | /// As part of SDK initialization, basic auto-logging of app events will occur; this can be |
| | | /// controlled via the <code>FacebookAutoLogAppEventsEnabled</code> key in the project’s Info.plist file. |
| | | /// note: |
| | | /// If this method is called after calling <code>initializeSDK</code>, then the return value will always be <code>false</code>. |
| | | /// \param application The application as passed to <code>UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:)</code>. |
| | | /// |
| | | /// \param launchOptions The launch options as passed to <code>UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:)</code>. |
| | | /// |
| | | /// |
| | | /// returns: |
| | | /// <code>true</code> if there are any added application observers that themselves return true from calling <code>application(_:didFinishLaunchingWithOptions:)</code>. |
| | | /// Otherwise will return <code>false</code>. |
| | | /// <code>true</code> |
| | | - (BOOL)application:(UIApplication * _Nonnull)application didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> * _Nullable)launchOptions; |
| | | /// Adds an observer that will be informed about application lifecycle events. |
| | | /// note: |
| | |
| | | - (void)callCapiGatewayAPIWith:(NSDictionary<NSString *, id> * _Nonnull)parameters userAgent:(NSString * _Nonnull)userAgent; |
| | | @end |
| | | |
| | | |
| | | SWIFT_PROTOCOL_NAMED("MACARuleMatching") |
| | | @protocol FBSDKMACARuleMatching |
| | | - (void)enable; |
| | | - (NSDictionary * _Nullable)processParameters:(NSDictionary * _Nullable)params event:(NSString * _Nullable)event SWIFT_WARN_UNUSED_RESULT; |
| | | @end |
| | | |
| | | @class NSDate; |
| | | @class FBSDKUserAgeRange; |
| | | @class FBSDKLocation; |
| | |
| | | /// This field will only be populated if your user has granted your application |
| | | /// the <code>user_gender</code> permission. |
| | | @property (nonatomic, readonly, copy) NSString * _Nullable gender; |
| | | /// The user’s granted permissions. |
| | | /// important: |
| | | /// This field will only be populated if your user has granted permissions to your |
| | | /// application. |
| | | @property (nonatomic, readonly, copy) NSSet<NSString *> * _Nullable permissions; |
| | | /// Indicates whether this type will automatically observe access token changes |
| | | /// (via <code>AccessTokenDidChange</code> notifications). |
| | | /// If observing changes, this class will issue a Graph request for public profile data when the current token’s user |
| | |
| | | /// |
| | | /// \param refreshDate The date the profile was fetched. Defaults to the time of instantiation. |
| | | /// |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate; |
| | | /// \param permissions The user’s granted permissions. Defaults to <code>nil</code>. |
| | | /// |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate permissions:(NSSet<NSString *> * _Nullable)permissions; |
| | | /// Creates a new profile. |
| | | /// \param userID The user’s identifier. Defaults to <code>nil</code>. |
| | | /// |
| | |
| | | /// |
| | | /// \param gender The user’s gender. Defaults to <code>nil</code>. |
| | | /// |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate imageURL:(NSURL * _Nullable)imageURL email:(NSString * _Nullable)email friendIDs:(NSArray<NSString *> * _Nullable)friendIDs birthday:(NSDate * _Nullable)birthday ageRange:(FBSDKUserAgeRange * _Nullable)ageRange hometown:(FBSDKLocation * _Nullable)hometown location:(FBSDKLocation * _Nullable)location gender:(NSString * _Nullable)gender; |
| | | /// \param permissions The user’s granted permissions. Defaults to <code>nil</code>. |
| | | /// |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate imageURL:(NSURL * _Nullable)imageURL email:(NSString * _Nullable)email friendIDs:(NSArray<NSString *> * _Nullable)friendIDs birthday:(NSDate * _Nullable)birthday ageRange:(FBSDKUserAgeRange * _Nullable)ageRange hometown:(FBSDKLocation * _Nullable)hometown location:(FBSDKLocation * _Nullable)location gender:(NSString * _Nullable)gender permissions:(NSSet<NSString *> * _Nullable)permissions; |
| | | /// Creates a new profile. |
| | | /// <ul> |
| | | /// <li> |
| | | /// permissions: The user’s granted permissions. Defaults to <code>nil</code>. |
| | | /// </li> |
| | | /// </ul> |
| | | /// \param userID The user’s identifier. Defaults to <code>nil</code>. |
| | | /// |
| | | /// \param firstName The user’s first name. Defaults to <code>nil</code>. |
| | |
| | | /// When <code>true</code>, <code>loadCurrentProfile(completion:):</code> will assume the profile is incomplete and disregard |
| | | /// any cached profile. Defaults to <code>false</code>. |
| | | /// |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate imageURL:(NSURL * _Nullable)imageURL email:(NSString * _Nullable)email friendIDs:(NSArray<NSString *> * _Nullable)friendIDs birthday:(NSDate * _Nullable)birthday ageRange:(FBSDKUserAgeRange * _Nullable)ageRange hometown:(FBSDKLocation * _Nullable)hometown location:(FBSDKLocation * _Nullable)location gender:(NSString * _Nullable)gender isLimited:(BOOL)isLimited OBJC_DESIGNATED_INITIALIZER; |
| | | - (nonnull instancetype)initWithUserID:(FBSDKUserIdentifier _Nonnull)userID firstName:(NSString * _Nullable)firstName middleName:(NSString * _Nullable)middleName lastName:(NSString * _Nullable)lastName name:(NSString * _Nullable)name linkURL:(NSURL * _Nullable)linkURL refreshDate:(NSDate * _Nullable)refreshDate imageURL:(NSURL * _Nullable)imageURL email:(NSString * _Nullable)email friendIDs:(NSArray<NSString *> * _Nullable)friendIDs birthday:(NSDate * _Nullable)birthday ageRange:(FBSDKUserAgeRange * _Nullable)ageRange hometown:(FBSDKLocation * _Nullable)hometown location:(FBSDKLocation * _Nullable)location gender:(NSString * _Nullable)gender isLimited:(BOOL)isLimited permissions:(NSSet<NSString *> * _Nullable)permissions OBJC_DESIGNATED_INITIALIZER; |
| | | /// Indicates whether this type will automatically observe access token changes |
| | | /// (via <code>AccessTokenDidChange</code> notifications). |
| | | /// If observing changes, this class will issue a Graph request for public profile data when the current token’s user |
| | |
| | | |
| | | |
| | | |
| | | SWIFT_CLASS_NAMED("ProtectedModeManager") |
| | | @interface FBSDKProtectedModeManager : NSObject <FBSDKAppEventsParameterProcessing> |
| | | - (void)enable; |
| | | - (NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)processParameters:(NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)parameters eventName:(FBSDKAppEventName _Nullable)eventName SWIFT_WARN_UNUSED_RESULT; |
| | | + (BOOL)isProtectedModeAppliedWithParameters:(NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)parameters 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 |
| | |
| | | @property (nonatomic) BOOL isAdvertiserTrackingEnabled; |
| | | @property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; |
| | | @property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable persistableDataProcessingOptions; |
| | | @property (nonatomic) BOOL isDomainErrorEnabled; |
| | | /// Sets the data processing options. |
| | | /// \param options The list of options. |
| | | /// |
| | |
| | | /// @warning INTERNAL - DO NOT USE |
| | | @property (nonatomic, copy) NSString * _Nullable userAgentSuffix; |
| | | /// Controls the advertiser tracking status of the data sent to Facebook. |
| | | /// The default value is <code>false</code>. |
| | | @property (nonatomic) BOOL advertiserTrackingEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isAdvertiserTrackingEnabled` instead.\n "); |
| | | /// Controls the advertiser tracking status of the data sent to Facebook. |
| | | /// The default value is <code>false</code>. |
| | | @property (nonatomic) BOOL isAdvertiserTrackingEnabled; |
| | | /// Internal property exposed to facilitate transition to Swift. |
| | | /// API Subject to change or removal without warning. Do not use. |
| | |
| | | /// |
| | | - (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options; |
| | | /// Sets the data processing options. |
| | | /// \param options The list of the options. |
| | | /// |
| | | /// \param country The code for the country. |
| | | /// |
| | | /// \param state The code for the state. |
| | | /// |
| | | /// <ul> |
| | | /// <li> |
| | | /// Parameters: |
| | | /// </li> |
| | | /// <li> |
| | | /// options The list of the options. |
| | | /// </li> |
| | | /// <li> |
| | | /// country The code for the country. |
| | | /// </li> |
| | | /// <li> |
| | | /// state The code for the state. |
| | | /// </li> |
| | | /// </ul> |
| | | - (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options country:(int32_t)country state:(int32_t)state; |
| | | /// The current Facebook SDK logging behavior. This should consist of strings |
| | | /// defined as constants with <code>LoggingBehavior</code> that indicate what information should be logged. |
| | |
| | | /// API Subject to change or removal without warning. Do not use. |
| | | /// @warning INTERNAL - DO NOT USE |
| | | @property (nonatomic, readonly, copy) NSString * _Nullable graphAPIDebugParameterValue; |
| | | /// Controls whether to show domain errors. |
| | | @property (nonatomic) BOOL isDomainErrorEnabled; |
| | | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
| | | @end |
| | | |
| | |
| | | - (void)logIfSDKSettingsChanged; |
| | | @end |
| | | |
| | | |
| | | |
| | | @class NSURLRequest; |
| | | |
| | | /// Internal class 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("ShimGraphRequestInterceptor") |
| | | @interface FBSDKShimGraphRequestInterceptor : NSObject |
| | | SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKShimGraphRequestInterceptor * _Nonnull shared;) |
| | | + (FBSDKShimGraphRequestInterceptor * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
| | | - (BOOL)shouldInterceptRequest:(NSURLRequest * _Nonnull)request SWIFT_WARN_UNUSED_RESULT; |
| | | - (void)executeWithRequest:(NSURLRequest * _Nonnull)request completionHandler:(FBSDKURLSessionTaskBlock _Nonnull)completionHandler; |
| | | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
| | | @end |
| | | |
| | | |
| | | |
| | |
| | | @end |
| | | |
| | | #endif |
| | | #if defined(__cplusplus) |
| | | #endif |
| | | #if __has_attribute(external_source_symbol) |
| | | # pragma clang attribute pop |
| | | #endif |
| | | #if defined(__cplusplus) |
| | | #endif |
| | | #pragma clang diagnostic pop |
| | | #endif |
| | | |