commit | author | age
|
2e29a3
|
1 |
#if 0 |
L |
2 |
#elif defined(__arm64__) && __arm64__ |
97fc0a
|
3 |
// Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) |
2e29a3
|
4 |
#ifndef FBSDKCOREKIT_SWIFT_H |
L |
5 |
#define FBSDKCOREKIT_SWIFT_H |
|
6 |
#pragma clang diagnostic push |
|
7 |
#pragma clang diagnostic ignored "-Wgcc-compat" |
|
8 |
|
|
9 |
#if !defined(__has_include) |
|
10 |
# define __has_include(x) 0 |
|
11 |
#endif |
|
12 |
#if !defined(__has_attribute) |
|
13 |
# define __has_attribute(x) 0 |
|
14 |
#endif |
|
15 |
#if !defined(__has_feature) |
|
16 |
# define __has_feature(x) 0 |
|
17 |
#endif |
|
18 |
#if !defined(__has_warning) |
|
19 |
# define __has_warning(x) 0 |
|
20 |
#endif |
|
21 |
|
|
22 |
#if __has_include(<swift/objc-prologue.h>) |
|
23 |
# include <swift/objc-prologue.h> |
|
24 |
#endif |
|
25 |
|
|
26 |
#pragma clang diagnostic ignored "-Wauto-import" |
e0ec42
|
27 |
#if defined(__OBJC__) |
2e29a3
|
28 |
#include <Foundation/Foundation.h> |
e0ec42
|
29 |
#endif |
L |
30 |
#if defined(__cplusplus) |
|
31 |
#include <cstdint> |
|
32 |
#include <cstddef> |
|
33 |
#include <cstdbool> |
97fc0a
|
34 |
#include <cstring> |
L |
35 |
#include <stdlib.h> |
|
36 |
#include <new> |
|
37 |
#include <type_traits> |
e0ec42
|
38 |
#else |
2e29a3
|
39 |
#include <stdint.h> |
L |
40 |
#include <stddef.h> |
|
41 |
#include <stdbool.h> |
97fc0a
|
42 |
#include <string.h> |
L |
43 |
#endif |
|
44 |
#if defined(__cplusplus) |
|
45 |
#if defined(__arm64e__) && __has_include(<ptrauth.h>) |
|
46 |
# include <ptrauth.h> |
|
47 |
#else |
|
48 |
#pragma clang diagnostic push |
|
49 |
#pragma clang diagnostic ignored "-Wreserved-macro-identifier" |
|
50 |
# ifndef __ptrauth_swift_value_witness_function_pointer |
|
51 |
# define __ptrauth_swift_value_witness_function_pointer(x) |
|
52 |
# endif |
|
53 |
# ifndef __ptrauth_swift_class_method_pointer |
|
54 |
# define __ptrauth_swift_class_method_pointer(x) |
|
55 |
# endif |
|
56 |
#pragma clang diagnostic pop |
|
57 |
#endif |
e0ec42
|
58 |
#endif |
2e29a3
|
59 |
|
L |
60 |
#if !defined(SWIFT_TYPEDEFS) |
|
61 |
# define SWIFT_TYPEDEFS 1 |
|
62 |
# if __has_include(<uchar.h>) |
|
63 |
# include <uchar.h> |
|
64 |
# elif !defined(__cplusplus) |
|
65 |
typedef uint_least16_t char16_t; |
|
66 |
typedef uint_least32_t char32_t; |
|
67 |
# endif |
|
68 |
typedef float swift_float2 __attribute__((__ext_vector_type__(2))); |
|
69 |
typedef float swift_float3 __attribute__((__ext_vector_type__(3))); |
|
70 |
typedef float swift_float4 __attribute__((__ext_vector_type__(4))); |
|
71 |
typedef double swift_double2 __attribute__((__ext_vector_type__(2))); |
|
72 |
typedef double swift_double3 __attribute__((__ext_vector_type__(3))); |
|
73 |
typedef double swift_double4 __attribute__((__ext_vector_type__(4))); |
|
74 |
typedef int swift_int2 __attribute__((__ext_vector_type__(2))); |
|
75 |
typedef int swift_int3 __attribute__((__ext_vector_type__(3))); |
|
76 |
typedef int swift_int4 __attribute__((__ext_vector_type__(4))); |
|
77 |
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); |
|
78 |
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); |
|
79 |
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); |
|
80 |
#endif |
|
81 |
|
|
82 |
#if !defined(SWIFT_PASTE) |
|
83 |
# define SWIFT_PASTE_HELPER(x, y) x##y |
|
84 |
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) |
|
85 |
#endif |
|
86 |
#if !defined(SWIFT_METATYPE) |
|
87 |
# define SWIFT_METATYPE(X) Class |
|
88 |
#endif |
|
89 |
#if !defined(SWIFT_CLASS_PROPERTY) |
|
90 |
# if __has_feature(objc_class_property) |
|
91 |
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ |
|
92 |
# else |
97fc0a
|
93 |
# define SWIFT_CLASS_PROPERTY(...) |
2e29a3
|
94 |
# endif |
L |
95 |
#endif |
97fc0a
|
96 |
#if !defined(SWIFT_RUNTIME_NAME) |
L |
97 |
# if __has_attribute(objc_runtime_name) |
|
98 |
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) |
|
99 |
# else |
|
100 |
# define SWIFT_RUNTIME_NAME(X) |
|
101 |
# endif |
2e29a3
|
102 |
#endif |
97fc0a
|
103 |
#if !defined(SWIFT_COMPILE_NAME) |
L |
104 |
# if __has_attribute(swift_name) |
|
105 |
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) |
|
106 |
# else |
|
107 |
# define SWIFT_COMPILE_NAME(X) |
|
108 |
# endif |
2e29a3
|
109 |
#endif |
97fc0a
|
110 |
#if !defined(SWIFT_METHOD_FAMILY) |
L |
111 |
# if __has_attribute(objc_method_family) |
|
112 |
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) |
|
113 |
# else |
|
114 |
# define SWIFT_METHOD_FAMILY(X) |
|
115 |
# endif |
2e29a3
|
116 |
#endif |
97fc0a
|
117 |
#if !defined(SWIFT_NOESCAPE) |
L |
118 |
# if __has_attribute(noescape) |
|
119 |
# define SWIFT_NOESCAPE __attribute__((noescape)) |
|
120 |
# else |
|
121 |
# define SWIFT_NOESCAPE |
|
122 |
# endif |
2e29a3
|
123 |
#endif |
97fc0a
|
124 |
#if !defined(SWIFT_RELEASES_ARGUMENT) |
L |
125 |
# if __has_attribute(ns_consumed) |
|
126 |
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) |
|
127 |
# else |
|
128 |
# define SWIFT_RELEASES_ARGUMENT |
|
129 |
# endif |
2e29a3
|
130 |
#endif |
97fc0a
|
131 |
#if !defined(SWIFT_WARN_UNUSED_RESULT) |
L |
132 |
# if __has_attribute(warn_unused_result) |
|
133 |
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
|
134 |
# else |
|
135 |
# define SWIFT_WARN_UNUSED_RESULT |
|
136 |
# endif |
2e29a3
|
137 |
#endif |
97fc0a
|
138 |
#if !defined(SWIFT_NORETURN) |
L |
139 |
# if __has_attribute(noreturn) |
|
140 |
# define SWIFT_NORETURN __attribute__((noreturn)) |
|
141 |
# else |
|
142 |
# define SWIFT_NORETURN |
|
143 |
# endif |
2e29a3
|
144 |
#endif |
L |
145 |
#if !defined(SWIFT_CLASS_EXTRA) |
97fc0a
|
146 |
# define SWIFT_CLASS_EXTRA |
2e29a3
|
147 |
#endif |
L |
148 |
#if !defined(SWIFT_PROTOCOL_EXTRA) |
97fc0a
|
149 |
# define SWIFT_PROTOCOL_EXTRA |
2e29a3
|
150 |
#endif |
L |
151 |
#if !defined(SWIFT_ENUM_EXTRA) |
97fc0a
|
152 |
# define SWIFT_ENUM_EXTRA |
2e29a3
|
153 |
#endif |
L |
154 |
#if !defined(SWIFT_CLASS) |
|
155 |
# if __has_attribute(objc_subclassing_restricted) |
|
156 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA |
|
157 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
158 |
# else |
|
159 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
160 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
161 |
# endif |
|
162 |
#endif |
|
163 |
#if !defined(SWIFT_RESILIENT_CLASS) |
|
164 |
# if __has_attribute(objc_class_stub) |
|
165 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) |
|
166 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
167 |
# else |
|
168 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) |
|
169 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
170 |
# endif |
|
171 |
#endif |
|
172 |
#if !defined(SWIFT_PROTOCOL) |
|
173 |
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
174 |
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
175 |
#endif |
|
176 |
#if !defined(SWIFT_EXTENSION) |
|
177 |
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) |
|
178 |
#endif |
|
179 |
#if !defined(OBJC_DESIGNATED_INITIALIZER) |
|
180 |
# if __has_attribute(objc_designated_initializer) |
|
181 |
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) |
|
182 |
# else |
97fc0a
|
183 |
# define OBJC_DESIGNATED_INITIALIZER |
2e29a3
|
184 |
# endif |
L |
185 |
#endif |
|
186 |
#if !defined(SWIFT_ENUM_ATTR) |
97fc0a
|
187 |
# if __has_attribute(enum_extensibility) |
2e29a3
|
188 |
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) |
L |
189 |
# else |
97fc0a
|
190 |
# define SWIFT_ENUM_ATTR(_extensibility) |
2e29a3
|
191 |
# endif |
L |
192 |
#endif |
|
193 |
#if !defined(SWIFT_ENUM) |
|
194 |
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type |
|
195 |
# if __has_feature(generalized_swift_name) |
|
196 |
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type |
|
197 |
# else |
|
198 |
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) |
|
199 |
# endif |
|
200 |
#endif |
|
201 |
#if !defined(SWIFT_UNAVAILABLE) |
|
202 |
# define SWIFT_UNAVAILABLE __attribute__((unavailable)) |
|
203 |
#endif |
|
204 |
#if !defined(SWIFT_UNAVAILABLE_MSG) |
|
205 |
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) |
|
206 |
#endif |
|
207 |
#if !defined(SWIFT_AVAILABILITY) |
|
208 |
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) |
|
209 |
#endif |
|
210 |
#if !defined(SWIFT_WEAK_IMPORT) |
|
211 |
# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) |
|
212 |
#endif |
|
213 |
#if !defined(SWIFT_DEPRECATED) |
|
214 |
# define SWIFT_DEPRECATED __attribute__((deprecated)) |
|
215 |
#endif |
|
216 |
#if !defined(SWIFT_DEPRECATED_MSG) |
|
217 |
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) |
|
218 |
#endif |
97fc0a
|
219 |
#if !defined(SWIFT_DEPRECATED_OBJC) |
L |
220 |
# if __has_feature(attribute_diagnose_if_objc) |
|
221 |
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) |
|
222 |
# else |
|
223 |
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) |
|
224 |
# endif |
2e29a3
|
225 |
#endif |
e0ec42
|
226 |
#if defined(__OBJC__) |
2e29a3
|
227 |
#if !defined(IBSegueAction) |
97fc0a
|
228 |
# define IBSegueAction |
2e29a3
|
229 |
#endif |
e0ec42
|
230 |
#endif |
L |
231 |
#if !defined(SWIFT_EXTERN) |
|
232 |
# if defined(__cplusplus) |
|
233 |
# define SWIFT_EXTERN extern "C" |
|
234 |
# else |
|
235 |
# define SWIFT_EXTERN extern |
|
236 |
# endif |
|
237 |
#endif |
|
238 |
#if !defined(SWIFT_CALL) |
|
239 |
# define SWIFT_CALL __attribute__((swiftcall)) |
|
240 |
#endif |
97fc0a
|
241 |
#if !defined(SWIFT_INDIRECT_RESULT) |
L |
242 |
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) |
e0ec42
|
243 |
#endif |
97fc0a
|
244 |
#if !defined(SWIFT_CONTEXT) |
L |
245 |
# define SWIFT_CONTEXT __attribute__((swift_context)) |
|
246 |
#endif |
|
247 |
#if !defined(SWIFT_ERROR_RESULT) |
|
248 |
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) |
|
249 |
#endif |
|
250 |
#if defined(__cplusplus) |
|
251 |
# define SWIFT_NOEXCEPT noexcept |
e0ec42
|
252 |
#else |
L |
253 |
# define SWIFT_NOEXCEPT |
|
254 |
#endif |
97fc0a
|
255 |
#if !defined(SWIFT_C_INLINE_THUNK) |
L |
256 |
# if __has_attribute(always_inline) |
|
257 |
# if __has_attribute(nodebug) |
|
258 |
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) |
|
259 |
# else |
|
260 |
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) |
|
261 |
# endif |
|
262 |
# else |
|
263 |
# define SWIFT_C_INLINE_THUNK inline |
|
264 |
# endif |
e0ec42
|
265 |
#endif |
97fc0a
|
266 |
#if defined(_WIN32) |
L |
267 |
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) |
|
268 |
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) |
|
269 |
#endif |
|
270 |
#else |
|
271 |
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) |
|
272 |
# define SWIFT_IMPORT_STDLIB_SYMBOL |
e0ec42
|
273 |
#endif |
L |
274 |
#endif |
|
275 |
#if defined(__OBJC__) |
97fc0a
|
276 |
#if __has_feature(objc_modules) |
2e29a3
|
277 |
#if __has_warning("-Watimport-in-framework-header") |
L |
278 |
#pragma clang diagnostic ignored "-Watimport-in-framework-header" |
|
279 |
#endif |
e0ec42
|
280 |
@import AuthenticationServices; |
L |
281 |
@import CoreFoundation; |
|
282 |
@import CoreGraphics; |
|
283 |
@import FBAEMKit; |
97fc0a
|
284 |
@import FBSDKCoreKit_Basics; |
e0ec42
|
285 |
@import Foundation; |
L |
286 |
@import ObjectiveC; |
|
287 |
@import SafariServices; |
|
288 |
@import StoreKit; |
|
289 |
@import UIKit; |
2e29a3
|
290 |
#endif |
L |
291 |
|
e0ec42
|
292 |
#import <FBSDKCoreKit/FBSDKCoreKit.h> |
L |
293 |
|
|
294 |
#endif |
2e29a3
|
295 |
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" |
L |
296 |
#pragma clang diagnostic ignored "-Wduplicate-method-arg" |
|
297 |
#if __has_warning("-Wpragma-clang-attribute") |
|
298 |
# pragma clang diagnostic ignored "-Wpragma-clang-attribute" |
|
299 |
#endif |
|
300 |
#pragma clang diagnostic ignored "-Wunknown-pragmas" |
|
301 |
#pragma clang diagnostic ignored "-Wnullability" |
e0ec42
|
302 |
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" |
2e29a3
|
303 |
|
L |
304 |
#if __has_attribute(external_source_symbol) |
|
305 |
# pragma push_macro("any") |
|
306 |
# undef any |
|
307 |
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) |
|
308 |
# pragma pop_macro("any") |
|
309 |
#endif |
|
310 |
|
e0ec42
|
311 |
#if defined(__OBJC__) |
L |
312 |
@class NSString; |
|
313 |
@class NSNumber; |
|
314 |
@class NSURL; |
2e29a3
|
315 |
|
e0ec42
|
316 |
/// Internal Type exposed to facilitate transition to Swift. |
L |
317 |
/// API Subject to change or removal without warning. Do not use. |
|
318 |
/// @warning INTERNAL - DO NOT USE |
|
319 |
SWIFT_PROTOCOL_NAMED("_AEMReporterProtocol") |
|
320 |
@protocol FBSDKAEMReporter |
|
321 |
+ (void)enable; |
|
322 |
+ (void)recordAndUpdateEvent:(NSString * _Nonnull)event currency:(NSString * _Nullable)currency value:(NSNumber * _Nullable)value parameters:(NSDictionary<NSString *, id> * _Nullable)parameters; |
|
323 |
+ (void)setConversionFilteringEnabled:(BOOL)isEnabled; |
|
324 |
+ (void)setCatalogMatchingEnabled:(BOOL)isEnabled; |
|
325 |
+ (void)setAdvertiserRuleMatchInServerEnabled:(BOOL)isEnabled; |
97fc0a
|
326 |
+ (void)handle:(NSURL * _Nullable)url; |
e0ec42
|
327 |
@end |
L |
328 |
|
|
329 |
|
|
330 |
@interface FBAEMReporter (SWIFT_EXTENSION(FBSDKCoreKit)) <FBSDKAEMReporter> |
|
331 |
@end |
|
332 |
|
|
333 |
|
|
334 |
|
|
335 |
@protocol FBSDKAppLinkTarget; |
|
336 |
|
|
337 |
/// Contains App Link metadata relevant for navigation on this device |
|
338 |
/// derived from the HTML at a given URL. |
|
339 |
SWIFT_CLASS_NAMED("AppLink") |
|
340 |
@interface FBSDKAppLink : NSObject <FBSDKAppLink> |
|
341 |
/// The URL from which this FBSDKAppLink was derived |
|
342 |
@property (nonatomic, readonly, copy) NSURL * _Nullable sourceURL; |
|
343 |
/// The ordered list of targets applicable to this platform that will be used |
|
344 |
/// for navigation. |
|
345 |
@property (nonatomic, readonly, copy) NSArray<id <FBSDKAppLinkTarget>> * _Nonnull targets; |
|
346 |
/// The fallback web URL to use if no targets are installed on this device. |
|
347 |
@property (nonatomic, readonly, copy) NSURL * _Nullable webURL; |
|
348 |
/// Internal property exposed to facilitate transition to Swift. |
|
349 |
/// API Subject to change or removal without warning. Do not use. |
|
350 |
/// <blockquote> |
|
351 |
/// Warning: INTERNAL - DO NOT USE |
|
352 |
/// |
|
353 |
/// </blockquote> |
|
354 |
@property (nonatomic, getter=isBackToReferrer) BOOL backToReferrer; |
|
355 |
/// Creates an AppLink with the given list of AppLinkTargets and target URL. |
|
356 |
/// Generally, this will only be used by implementers of the AppLinkResolving protocol, |
|
357 |
/// as these implementers will produce App Link metadata for a given URL. |
|
358 |
/// \param sourceURL The <em>URL</em> from which this App Link is derived. |
|
359 |
/// |
|
360 |
/// \param targets An ordered list of AppLinkTargets for this platform derived from App Link metadata. |
|
361 |
/// |
|
362 |
/// \param webURL The fallback web URL, if any, for the app link. |
|
363 |
/// |
|
364 |
- (nonnull instancetype)initWithSourceURL:(NSURL * _Nullable)sourceURL targets:(NSArray<id <FBSDKAppLinkTarget>> * _Nonnull)targets webURL:(NSURL * _Nullable)webURL; |
|
365 |
/// Creates an AppLink with the given list of AppLinkTargets and target URL. |
|
366 |
/// Generally, this will only be used by implementers of the AppLinkResolving protocol, |
|
367 |
/// as these implementers will produce App Link metadata for a given URL. |
|
368 |
/// \param sourceURL The <em>URL</em> from which this App Link is derived. |
|
369 |
/// |
|
370 |
/// \param targets An ordered list of AppLinkTargets for this platform derived from App Link metadata. |
|
371 |
/// |
|
372 |
/// \param webURL The fallback web URL, if any, for the app link. |
|
373 |
/// |
|
374 |
+ (id <FBSDKAppLink> _Nonnull)appLinkWithSourceURL:(NSURL * _Nullable)sourceURL targets:(NSArray<id <FBSDKAppLinkTarget>> * _Nonnull)targets webURL:(NSURL * _Nullable)webURL SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("\n Please use designated init to instantiate an AppLink. This method will be removed in future releases.\"\n "); |
|
375 |
/// Internal method exposed to facilitate transition to Swift. |
|
376 |
/// API Subject to change or removal without warning. Do not use. |
|
377 |
/// <blockquote> |
|
378 |
/// Warning: INTERNAL - DO NOT USE |
|
379 |
/// |
|
380 |
/// </blockquote> |
|
381 |
- (nonnull instancetype)initWithSourceURL:(NSURL * _Nullable)sourceURL targets:(NSArray<id <FBSDKAppLinkTarget>> * _Nonnull)targets webURL:(NSURL * _Nullable)webURL isBackToReferrer:(BOOL)isBackToReferrer OBJC_DESIGNATED_INITIALIZER; |
|
382 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
383 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
384 |
@end |
|
385 |
|
|
386 |
@protocol FBSDKAppLinkResolving; |
|
387 |
@protocol FBSDKSettings; |
|
388 |
@class NSError; |
|
389 |
|
|
390 |
/// Represents a pending request to navigate to an app link. Instead of simplying opening a URL, you can build custom requests with additional navigation and app data attached to them by creating an <code>AppLinkNavigation</code>. |
|
391 |
SWIFT_CLASS_NAMED("AppLinkNavigation") SWIFT_AVAILABILITY(ios_app_extension,unavailable,message="Not available in app extension") |
|
392 |
@interface FBSDKAppLinkNavigation : NSObject |
|
393 |
/// The default resolver to be used for App Link resolution. If the developer has not set one explicitly, |
|
394 |
/// a basic, built-in <code>WebViewAppLinkResolver</code> will be used. |
|
395 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) id <FBSDKAppLinkResolving> _Nonnull defaultResolver;) |
|
396 |
+ (id <FBSDKAppLinkResolving> _Nonnull)defaultResolver SWIFT_WARN_UNUSED_RESULT; |
|
397 |
+ (void)setDefaultResolver:(id <FBSDKAppLinkResolving> _Nonnull)newValue; |
|
398 |
/// The extras for the AppLinkNavigation. This will generally contain application-specific |
|
399 |
/// data that should be passed along with the request, such as advertiser or affiliate IDs or |
|
400 |
/// other such metadata relevant on this device. |
|
401 |
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull extras; |
|
402 |
/// The al_applink_data for the AppLinkNavigation. This will generally contain data common to |
|
403 |
/// navigation attempts such as back-links, user agents, and other information that may be used |
|
404 |
/// in routing and handling an App Link request. |
|
405 |
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull appLinkData; |
|
406 |
/// The AppLink to navigate to |
97fc0a
|
407 |
@property (nonatomic, readonly, strong) FBSDKAppLink * _Nullable appLink; |
e0ec42
|
408 |
/// Returns navigation type for current instance. It does not produce any side-effects as the <code>navigate</code> method. |
L |
409 |
@property (nonatomic, readonly) FBSDKAppLinkNavigationType navigationType; |
|
410 |
/// Creates an AppLinkNavigation with the given link, extras, and App Link data |
97fc0a
|
411 |
- (nonnull instancetype)initWithAppLink:(FBSDKAppLink * _Nullable)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData OBJC_DESIGNATED_INITIALIZER; |
e0ec42
|
412 |
/// Creates an AppLinkNavigation with the given link, extras, App Link data and settings |
L |
413 |
- (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 "); |
|
414 |
/// 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. |
97fc0a
|
415 |
+ (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 "); |
e0ec42
|
416 |
/// 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:). |
L |
417 |
+ (NSDictionary<NSString *, NSDictionary<NSString *, NSString *> *> * _Nonnull)callbackAppLinkDataForAppWithName:(NSString * _Nonnull)appName url:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
|
418 |
/// Performs the navigation |
|
419 |
- (FBSDKAppLinkNavigationType)navigate:(NSError * _Nullable * _Nullable)errorPointer SWIFT_WARN_UNUSED_RESULT; |
|
420 |
/// Returns an AppLink for the given URL |
|
421 |
+ (void)resolveAppLink:(NSURL * _Nonnull)destination handler:(FBSDKAppLinkBlock _Nonnull)handler; |
|
422 |
/// Returns an AppLink for the given URL using the given App Link resolution strategy |
|
423 |
+ (void)resolveAppLink:(NSURL * _Nonnull)destination resolver:(id <FBSDKAppLinkResolving> _Nonnull)resolver handler:(FBSDKAppLinkBlock _Nonnull)handler; |
|
424 |
/// Navigates to an AppLink and returns whether it opened in-app or in-browser |
|
425 |
+ (FBSDKAppLinkNavigationType)navigateToAppLink:(FBSDKAppLink * _Nonnull)appLink error:(NSError * _Nullable * _Nullable)errorPointer SWIFT_WARN_UNUSED_RESULT; |
|
426 |
/// Returns an AppLinkNavigationType based on a FBSDKAppLink. |
|
427 |
/// It’s essentially a no-side-effect version of navigateToAppLink:error:, |
|
428 |
/// allowing apps to determine flow based on the link type (e.g. open an |
|
429 |
/// internal web view instead of going straight to the browser for regular links.) |
|
430 |
+ (FBSDKAppLinkNavigationType)navigationTypeForLink:(FBSDKAppLink * _Nonnull)appLink SWIFT_WARN_UNUSED_RESULT; |
|
431 |
/// Navigates to a URL (an asynchronous action) and returns a NavigationType |
|
432 |
+ (void)navigateToURL:(NSURL * _Nonnull)destination handler:(FBSDKAppLinkNavigationBlock _Nonnull)handler; |
|
433 |
/// Navigates to a URL (an asynchronous action) using the given App Link resolution |
|
434 |
/// strategy and returns a NavigationType |
|
435 |
+ (void)navigateToURL:(NSURL * _Nonnull)destination resolver:(id <FBSDKAppLinkResolving> _Nonnull)resolver handler:(FBSDKAppLinkNavigationBlock _Nonnull)handler; |
|
436 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
437 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
438 |
@end |
|
439 |
|
|
440 |
|
|
441 |
|
|
442 |
/// Provides an implementation of the AppLinkResolving protocol that uses the Facebook App Link |
|
443 |
/// Index API to resolve App Links given a URL. It also provides an additional helper method that can resolve |
|
444 |
/// multiple App Links in a single call. |
|
445 |
SWIFT_CLASS_NAMED("AppLinkResolver") |
|
446 |
@interface FBSDKAppLinkResolver : NSObject <FBSDKAppLinkResolving> |
|
447 |
- (void)appLinkFromURL:(NSURL * _Nonnull)url handler:(FBSDKAppLinkBlock _Nonnull)handler; |
|
448 |
/// Asynchronously resolves App Link data for a given array of URLs. |
|
449 |
/// @param urls The URLs to resolve into an App Link. |
|
450 |
/// @param handler The completion block that will return an App Link for the given URL. |
|
451 |
- (void)appLinksFrom:(NSArray<NSURL *> * _Nonnull)urls handler:(FBSDKAppLinksBlock _Nonnull)handler SWIFT_AVAILABILITY(ios_app_extension,unavailable,message="Not available in app extension"); |
|
452 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
453 |
@end |
|
454 |
|
|
455 |
|
|
456 |
|
|
457 |
/// Represents a target defined in App Link metadata, consisting of at least |
|
458 |
/// a URL, and optionally an App Store ID and name. |
|
459 |
SWIFT_CLASS_NAMED("AppLinkTarget") |
|
460 |
@interface FBSDKAppLinkTarget : NSObject <FBSDKAppLinkTarget> |
|
461 |
/// The URL prefix for this app link target |
|
462 |
@property (nonatomic, readonly, copy) NSURL * _Nullable URL; |
|
463 |
/// The app ID for the app store |
|
464 |
@property (nonatomic, readonly, copy) NSString * _Nullable appStoreId; |
|
465 |
/// The name of the app |
|
466 |
@property (nonatomic, readonly, copy) NSString * _Nonnull appName; |
|
467 |
/// Creates a AppLinkTarget with the given app site and target URL. |
|
468 |
- (nonnull instancetype)initWithURL:(NSURL * _Nullable)url appStoreId:(NSString * _Nullable)appStoreId appName:(NSString * _Nonnull)appName OBJC_DESIGNATED_INITIALIZER; |
|
469 |
/// Creates a AppLinkTarget with the given app site and target URL. |
|
470 |
+ (FBSDKAppLinkTarget * _Nonnull)appLinkTargetWithURL:(NSURL * _Nullable)url appStoreId:(NSString * _Nullable)appStoreId appName:(NSString * _Nonnull)appName SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("\n Please use designated init to instantiate an AppLinkTarget. This method will be removed in future releases.\"\n "); |
|
471 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
472 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
473 |
@end |
|
474 |
|
|
475 |
@class UIApplication; |
|
476 |
@class NSUserActivity; |
|
477 |
@protocol FBSDKApplicationObserving; |
|
478 |
|
|
479 |
/// An <code>ApplicationDelegate</code> is designed to post-process the results from Facebook Login |
|
480 |
/// or Facebook Dialogs (or any action that requires switching over to the native Facebook |
|
481 |
/// app or Safari). |
|
482 |
/// The methods in this class are designed to mirror those in <code>UIApplicationDelegate</code>, and you |
|
483 |
/// should call them in the respective methods in your application delegate implementation. |
|
484 |
SWIFT_CLASS_NAMED("ApplicationDelegate") |
|
485 |
@interface FBSDKApplicationDelegate : NSObject |
|
486 |
/// Gets the singleton instance. |
|
487 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKApplicationDelegate * _Nonnull sharedInstance;) |
|
488 |
+ (FBSDKApplicationDelegate * _Nonnull)sharedInstance SWIFT_WARN_UNUSED_RESULT; |
|
489 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
490 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
491 |
/// Initializes the SDK. |
|
492 |
/// If you are using the SDK within the context of the <code>UIApplication</code> lifecycle, do not use this method. |
|
493 |
/// Instead use <code>application(_:didFinishLaunchingWithOptions:)</code>. |
|
494 |
/// As part of SDK initialization, basic auto logging of app events will occur, this can be |
|
495 |
/// controlled via the ‘FacebookAutoLogAppEventsEnabled’ key in your project’s Info.plist file. |
|
496 |
- (void)initializeSDK; |
|
497 |
/// Call this method from the <code>UIApplicationDelegate.application(_:continue:restorationHandler:)</code> method |
|
498 |
/// of your application delegate. It should be invoked in order to properly process the web URL (universal link) |
|
499 |
/// once the end user is redirected to your app. |
|
500 |
/// \param application The application as passed to `UIApplicationDelegate.application(_:continue:restorationHandler:). |
|
501 |
/// |
|
502 |
/// \param userActivity The user activity as passed to <code>UIApplicationDelegate.application(_:continue:restorationHandler:)</code>. |
|
503 |
/// |
|
504 |
/// |
|
505 |
/// returns: |
|
506 |
/// <code>true</code> if the URL was intended for the Facebook SDK, <code>false</code> if not. |
|
507 |
- (BOOL)application:(UIApplication * _Nonnull)application continueUserActivity:(NSUserActivity * _Nonnull)userActivity; |
|
508 |
/// Call this method from the <code>UIApplicationDelegate.application(_:open:options:)</code> method |
|
509 |
/// of your application delegate. It should be invoked for the proper processing of responses during interaction |
|
510 |
/// with the native Facebook app or Safari as part of an SSO authorization flow or Facebook dialogs. |
|
511 |
/// \param application The application as passed to <code>UIApplicationDelegate.application(_:open:options:)</code>. |
|
512 |
/// |
|
513 |
/// \param url The URL as passed to <code>UIApplicationDelegate.application(_:open:options:)</code>. |
|
514 |
/// |
|
515 |
/// \param options The options dictionary as passed to <code>UIApplicationDelegate.application(_:open:options:)</code>. |
|
516 |
/// |
|
517 |
/// |
|
518 |
/// returns: |
|
519 |
/// <code>true</code> if the URL was intended for the Facebook SDK, <code>false</code> if not. |
|
520 |
- (BOOL)application:(UIApplication * _Nonnull)application openURL:(NSURL * _Nonnull)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> * _Nonnull)options; |
|
521 |
/// Call this method from the <code>UIApplicationDelegate.application(_:openL:sourceApplication:annotation:)</code> method |
|
522 |
/// of your application delegate. It should be invoked for the proper processing of responses during interaction |
|
523 |
/// with the native Facebook app or Safari as part of an SSO authorization flow or Facebook dialogs. |
|
524 |
/// \param application The application as passed to <code>UIApplicationDelegate.application(_:open:sourceApplication:annotation:)</code>. |
|
525 |
/// |
|
526 |
/// \param url The URL as passed to <code>UIApplicationDelegate.application(_:open:sourceApplication:annotation:)</code>. |
|
527 |
/// |
|
528 |
/// \param sourceApplication The source application as passed to <code>UIApplicationDelegate.application(_:open:sourceApplication:annotation:)</code>. |
|
529 |
/// |
|
530 |
/// \param annotation The annotation as passed to <code>UIApplicationDelegate.application(_:open:sourceApplication:annotation:)</code>. |
|
531 |
/// |
|
532 |
/// |
|
533 |
/// returns: |
|
534 |
/// <code>true</code> if the URL was intended for the Facebook SDK, <code>false</code> if not. |
|
535 |
- (BOOL)application:(UIApplication * _Nonnull)application openURL:(NSURL * _Nonnull)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation; |
|
536 |
/// Call this method from the <code>UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:)</code> method |
|
537 |
/// of your application delegate. It should be invoked for the proper use of the Facebook SDK. |
|
538 |
/// As part of SDK initialization, basic auto-logging of app events will occur; this can be |
|
539 |
/// controlled via the <code>FacebookAutoLogAppEventsEnabled</code> key in the project’s Info.plist file. |
|
540 |
/// \param application The application as passed to <code>UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:)</code>. |
|
541 |
/// |
|
542 |
/// \param launchOptions The launch options as passed to <code>UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:)</code>. |
|
543 |
/// |
|
544 |
/// |
|
545 |
/// returns: |
97fc0a
|
546 |
/// <code>true</code> |
e0ec42
|
547 |
- (BOOL)application:(UIApplication * _Nonnull)application didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> * _Nullable)launchOptions; |
L |
548 |
/// Adds an observer that will be informed about application lifecycle events. |
|
549 |
/// note: |
|
550 |
/// Observers are weakly held |
|
551 |
- (void)addObserver:(id <FBSDKApplicationObserving> _Nonnull)observer; |
|
552 |
/// Removes an observer so that it will no longer be informed about application lifecycle events. |
|
553 |
- (void)removeObserver:(id <FBSDKApplicationObserving> _Nonnull)observer; |
|
554 |
@end |
|
555 |
|
|
556 |
|
|
557 |
SWIFT_CLASS_NAMED("AuthenticationTokenClaims") |
|
558 |
@interface FBSDKAuthenticationTokenClaims : NSObject |
|
559 |
/// Internal method exposed to facilitate transition to Swift. |
|
560 |
/// API Subject to change or removal without warning. Do not use. |
|
561 |
/// @warning INTERNAL - DO NOT USE |
|
562 |
- (nullable instancetype)initWithEncodedClaims:(NSString * _Nonnull)encodedClaims nonce:(NSString * _Nonnull)expectedNonce; |
|
563 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
564 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
565 |
@end |
|
566 |
|
|
567 |
|
|
568 |
@protocol FBSDKGraphRequestFactory; |
|
569 |
|
|
570 |
SWIFT_PROTOCOL_NAMED("CAPIReporter") |
|
571 |
@protocol FBSDKCAPIReporter |
|
572 |
- (void)enable; |
|
573 |
- (void)configureWithFactory:(id <FBSDKGraphRequestFactory> _Nonnull)factory settings:(id <FBSDKSettings> _Nonnull)settings; |
|
574 |
- (void)recordEvent:(NSDictionary<NSString *, id> * _Nonnull)parameters; |
|
575 |
@end |
|
576 |
|
|
577 |
@protocol FBSDKInternalURLOpener; |
|
578 |
|
|
579 |
/// Internal type exposed to facilitate transition to Swift. |
|
580 |
/// API Subject to change or removal without warning. Do not use. |
|
581 |
/// @warning INTERNAL - DO NOT USE |
|
582 |
SWIFT_CLASS("_TtC12FBSDKCoreKit17CoreUIApplication") |
|
583 |
@interface CoreUIApplication : NSObject |
|
584 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) id <FBSDKInternalURLOpener> _Nonnull shared;) |
|
585 |
+ (id <FBSDKInternalURLOpener> _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
|
586 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
587 |
@end |
|
588 |
|
|
589 |
@class UIImage; |
|
590 |
@class UIColor; |
|
591 |
|
|
592 |
/// Internal Type exposed to facilitate transition to Swift. |
|
593 |
/// API Subject to change or removal without warning. Do not use. |
|
594 |
/// @warning INTERNAL - DO NOT USE |
|
595 |
SWIFT_CLASS_NAMED("FBIcon") |
|
596 |
@interface FBSDKIcon : NSObject |
|
597 |
- (CGPathRef _Nullable)pathWith:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
598 |
- (UIImage * _Nullable)imageWithSize:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
599 |
- (UIImage * _Nullable)imageWithSize:(CGSize)size color:(UIColor * _Nonnull)color SWIFT_WARN_UNUSED_RESULT; |
|
600 |
- (UIImage * _Nullable)imageWithSize:(CGSize)size scale:(CGFloat)scale color:(UIColor * _Nonnull)color SWIFT_WARN_UNUSED_RESULT; |
|
601 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
602 |
@end |
|
603 |
|
|
604 |
enum FBSDKProfilePictureMode : NSUInteger; |
|
605 |
@class FBSDKProfile; |
|
606 |
@class NSCoder; |
|
607 |
|
|
608 |
/// A view to display a profile picture. |
|
609 |
SWIFT_CLASS_NAMED("FBProfilePictureView") |
|
610 |
@interface FBSDKProfilePictureView : UIView |
|
611 |
/// The mode for the receiver to determine the aspect ratio of the source image. |
|
612 |
@property (nonatomic) enum FBSDKProfilePictureMode pictureMode; |
|
613 |
/// The profile ID to show the picture for. |
|
614 |
@property (nonatomic, copy) NSString * _Nonnull profileID; |
|
615 |
@property (nonatomic) CGRect bounds; |
|
616 |
@property (nonatomic) UIViewContentMode contentMode; |
|
617 |
/// Create a new instance. |
|
618 |
/// \param frame Frame rectangle for the view. |
|
619 |
/// |
|
620 |
/// \param profile Optional profile to display a picture for. |
|
621 |
/// |
|
622 |
- (nonnull instancetype)initWith:(CGRect)frame profile:(FBSDKProfile * _Nullable)profile OBJC_DESIGNATED_INITIALIZER; |
|
623 |
/// Create a new instance. |
|
624 |
/// \param profile Optional profile to display a picture for. |
|
625 |
/// |
|
626 |
- (nonnull instancetype)initWithProfile:(FBSDKProfile * _Nullable)profile; |
|
627 |
/// Initializes and returns a newly allocated view object with the specified frame rectangle. |
|
628 |
/// \param frame The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. |
|
629 |
/// This method uses the frame rectangle to set the center and bounds properties accordingly. |
|
630 |
/// |
|
631 |
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; |
|
632 |
/// Initializes and returns a newly allocated view object from the specified coder. |
|
633 |
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; |
|
634 |
/// Explicitly marks the receiver as needing to update the image. |
|
635 |
/// This method is called whenever any properties that affect the source image are modified, but this can also |
|
636 |
/// be used to trigger a manual update of the image if it needs to be re-downloaded. |
|
637 |
- (void)setNeedsImageUpdate; |
|
638 |
@end |
|
639 |
|
|
640 |
|
|
641 |
SWIFT_CLASS("_TtC12FBSDKCoreKit25FBSDKAppEventsCAPIManager") |
|
642 |
@interface FBSDKAppEventsCAPIManager : NSObject <FBSDKCAPIReporter> |
|
643 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKAppEventsCAPIManager * _Nonnull shared;) |
|
644 |
+ (FBSDKAppEventsCAPIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
|
645 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
646 |
- (void)configureWithFactory:(id <FBSDKGraphRequestFactory> _Nonnull)factory settings:(id <FBSDKSettings> _Nonnull)settings; |
|
647 |
- (void)enable; |
|
648 |
- (void)recordEvent:(NSDictionary<NSString *, id> * _Nonnull)parameters; |
|
649 |
@end |
|
650 |
|
|
651 |
|
|
652 |
SWIFT_CLASS("_TtC12FBSDKCoreKit35FBSDKTransformerGraphRequestFactory") |
|
653 |
@interface FBSDKTransformerGraphRequestFactory : NSObject |
|
654 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKTransformerGraphRequestFactory * _Nonnull shared;) |
|
655 |
+ (FBSDKTransformerGraphRequestFactory * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
|
656 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
657 |
- (void)configureWithDatasetID:(NSString * _Nonnull)datasetID url:(NSString * _Nonnull)url accessKey:(NSString * _Nonnull)accessKey; |
|
658 |
- (void)callCapiGatewayAPIWith:(NSDictionary<NSString *, id> * _Nonnull)parameters userAgent:(NSString * _Nonnull)userAgent; |
|
659 |
@end |
|
660 |
|
97fc0a
|
661 |
|
L |
662 |
SWIFT_PROTOCOL_NAMED("MACARuleMatching") |
|
663 |
@protocol FBSDKMACARuleMatching |
|
664 |
- (void)enable; |
|
665 |
- (NSDictionary * _Nullable)processParameters:(NSDictionary * _Nullable)params event:(NSString * _Nullable)event SWIFT_WARN_UNUSED_RESULT; |
|
666 |
@end |
|
667 |
|
e0ec42
|
668 |
@class NSDate; |
L |
669 |
@class FBSDKUserAgeRange; |
|
670 |
@class FBSDKLocation; |
|
671 |
|
|
672 |
/// Represents an immutable Facebook profile. |
|
673 |
/// This class provides a global current profile instance to more easily |
|
674 |
/// add social context to your application. When the profile changes, a notification is |
|
675 |
/// posted so that you can update relevant parts of your UI. It is persisted to <code>UserDefaults.standard</code>. |
|
676 |
/// Typically, you will want to set <code>enableUpdatesOnAccessTokenChange</code> to <code>true</code> so that |
|
677 |
/// it automatically observes changes to <code>AccessToken.current</code>. |
|
678 |
/// You can use this class to build your own <code>ProfilePictureView</code> or in place of typical requests to the <code>/me</code> endpoint. |
|
679 |
SWIFT_CLASS_NAMED("Profile") |
|
680 |
@interface FBSDKProfile : NSObject |
|
681 |
/// The user identifier. |
|
682 |
@property (nonatomic, readonly, copy) FBSDKUserIdentifier _Nonnull userID; |
|
683 |
/// The user’s first name. |
|
684 |
@property (nonatomic, readonly, copy) NSString * _Nullable firstName; |
|
685 |
/// The user’s middle name. |
|
686 |
@property (nonatomic, readonly, copy) NSString * _Nullable middleName; |
|
687 |
/// The user’s last name. |
|
688 |
@property (nonatomic, readonly, copy) NSString * _Nullable lastName; |
|
689 |
/// The user’s complete name. |
|
690 |
@property (nonatomic, readonly, copy) NSString * _Nullable name; |
|
691 |
/// A URL to the user’s profile. |
|
692 |
/// important: |
|
693 |
/// This field will only be populated if your user has granted your application the <code>user_link</code> permission. |
|
694 |
/// Consider using <code>AppLinkResolver</code> to resolve this URL to an app link in order to link directly to |
|
695 |
/// the user’s profile in the Facebook app. |
|
696 |
@property (nonatomic, readonly, copy) NSURL * _Nullable linkURL; |
|
697 |
/// The last time the profile data was fetched. |
|
698 |
@property (nonatomic, readonly, copy) NSDate * _Nonnull refreshDate; |
|
699 |
/// A URL to use for fetching the user’s profile image. |
|
700 |
@property (nonatomic, readonly, copy) NSURL * _Nullable imageURL; |
|
701 |
/// The user’s email address. |
|
702 |
/// important: |
|
703 |
/// This field will only be populated if your user has granted your application the <code>email</code> permission. |
|
704 |
@property (nonatomic, readonly, copy) NSString * _Nullable email; |
|
705 |
/// A list of identifiers of the user’s friends. |
|
706 |
/// important: |
|
707 |
/// This field will only be populated if your user has granted your application |
|
708 |
/// the <code>user_friends</code> permission. |
|
709 |
@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nullable friendIDs; |
|
710 |
/// The user’s birthday. |
|
711 |
/// important: |
|
712 |
/// This field will only be populated if your user has granted your application |
|
713 |
/// the <code>user_birthday</code> permission. |
|
714 |
@property (nonatomic, readonly, copy) NSDate * _Nullable birthday; |
|
715 |
/// The user’s age range. |
|
716 |
/// important: |
|
717 |
/// This field will only be populated if your user has granted your application |
|
718 |
/// the <code>user_age_range</code> permission. |
|
719 |
@property (nonatomic, readonly, strong) FBSDKUserAgeRange * _Nullable ageRange; |
|
720 |
/// The user’s hometown. |
|
721 |
/// important: |
|
722 |
/// This field will only be populated if your user has granted your application |
|
723 |
/// the <code>user_hometown</code> permission. |
|
724 |
@property (nonatomic, readonly, strong) FBSDKLocation * _Nullable hometown; |
|
725 |
/// The user’s location. |
|
726 |
/// important: |
|
727 |
/// This field will only be populated if your user has granted your application |
|
728 |
/// the <code>user_location</code> permission. |
|
729 |
@property (nonatomic, readonly, strong) FBSDKLocation * _Nullable location; |
|
730 |
/// The user’s gender. |
|
731 |
/// important: |
|
732 |
/// This field will only be populated if your user has granted your application |
|
733 |
/// the <code>user_gender</code> permission. |
|
734 |
@property (nonatomic, readonly, copy) NSString * _Nullable gender; |
97fc0a
|
735 |
/// The user’s granted permissions. |
L |
736 |
/// important: |
|
737 |
/// This field will only be populated if your user has granted permissions to your |
|
738 |
/// application. |
|
739 |
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nullable permissions; |
e0ec42
|
740 |
/// Indicates whether this type will automatically observe access token changes |
L |
741 |
/// (via <code>AccessTokenDidChange</code> notifications). |
|
742 |
/// If observing changes, this class will issue a Graph request for public profile data when the current token’s user |
|
743 |
/// identifier differs from the current profile. You can observe profile changes via <code>ProfileDidChange</code> notifications |
|
744 |
/// to handle an updated profile. |
|
745 |
/// note: |
|
746 |
/// If the current access token is cleared, the current profile instance remains available. It’s also possible |
|
747 |
/// for <code>current</code> to return <code>nil</code> until the data is fetched. |
|
748 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL isUpdatedWithAccessTokenChange;) |
|
749 |
+ (BOOL)isUpdatedWithAccessTokenChange SWIFT_WARN_UNUSED_RESULT; |
|
750 |
+ (void)setIsUpdatedWithAccessTokenChange:(BOOL)value; |
|
751 |
/// Creates a new profile. |
|
752 |
/// \param userID The user’s identifier. |
|
753 |
/// |
|
754 |
/// \param firstName The user’s first name. Defaults to <code>nil</code>. |
|
755 |
/// |
|
756 |
/// \param middleName The user’s middle name. Defaults to <code>nil</code>. |
|
757 |
/// |
|
758 |
/// \param lastName The user’s last name. Defaults to <code>nil</code>. |
|
759 |
/// |
|
760 |
/// \param name The user’s complete name. Defaults to <code>nil</code>. |
|
761 |
/// |
|
762 |
/// \param linkURL The link for the profile. Defaults to <code>nil</code>. |
|
763 |
/// |
|
764 |
/// \param refreshDate The date the profile was fetched. Defaults to the time of instantiation. |
|
765 |
/// |
97fc0a
|
766 |
/// \param permissions The user’s granted permissions. Defaults to <code>nil</code>. |
L |
767 |
/// |
|
768 |
- (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; |
e0ec42
|
769 |
/// Creates a new profile. |
L |
770 |
/// \param userID The user’s identifier. Defaults to <code>nil</code>. |
|
771 |
/// |
|
772 |
/// \param firstName The user’s first name. Defaults to <code>nil</code>. |
|
773 |
/// |
|
774 |
/// \param middleName The user’s middle name. Defaults to <code>nil</code>. |
|
775 |
/// |
|
776 |
/// \param lastName The user’s last name. Defaults to <code>nil</code>. |
|
777 |
/// |
|
778 |
/// \param name The user’s complete name. Defaults to <code>nil</code>. |
|
779 |
/// |
|
780 |
/// \param linkURL The link for this profile. Defaults to <code>nil</code>. |
|
781 |
/// |
|
782 |
/// \param refreshDate The date this profile was fetched. Defaults to the time of instantiation. |
|
783 |
/// |
|
784 |
/// \param imageURL A URL to use for fetching a user’s profile image. |
|
785 |
/// |
|
786 |
/// \param email The user’s email address. Defaults to <code>nil</code>. |
|
787 |
/// |
|
788 |
/// \param friendIDs A list of identifiers for the user’s friends. Defaults to <code>nil</code>. |
|
789 |
/// |
|
790 |
/// \param birthday The user’s birthday. Defaults to <code>nil</code>. |
|
791 |
/// |
|
792 |
/// \param ageRange The user’s age range. Defaults to <code>nil</code>. |
|
793 |
/// |
|
794 |
/// \param hometown The user’s hometown. Defaults to <code>nil</code>. |
|
795 |
/// |
|
796 |
/// \param location The user’s location. Defaults to <code>nil</code>. |
|
797 |
/// |
|
798 |
/// \param gender The user’s gender. Defaults to <code>nil</code>. |
|
799 |
/// |
97fc0a
|
800 |
/// \param permissions The user’s granted permissions. Defaults to <code>nil</code>. |
L |
801 |
/// |
|
802 |
- (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; |
e0ec42
|
803 |
/// Creates a new profile. |
97fc0a
|
804 |
/// <ul> |
L |
805 |
/// <li> |
|
806 |
/// permissions: The user’s granted permissions. Defaults to <code>nil</code>. |
|
807 |
/// </li> |
|
808 |
/// </ul> |
e0ec42
|
809 |
/// \param userID The user’s identifier. Defaults to <code>nil</code>. |
L |
810 |
/// |
|
811 |
/// \param firstName The user’s first name. Defaults to <code>nil</code>. |
|
812 |
/// |
|
813 |
/// \param middleName The user’s middle name. Defaults to <code>nil</code>. |
|
814 |
/// |
|
815 |
/// \param lastName The user’s last name. Defaults to <code>nil</code>. |
|
816 |
/// |
|
817 |
/// \param name The user’s complete name. Defaults to <code>nil</code>. |
|
818 |
/// |
|
819 |
/// \param linkURL The link for the profile. Defaults to <code>nil</code>. |
|
820 |
/// |
|
821 |
/// \param refreshDate The date the profile was fetched. Defaults to the time of instantiation. |
|
822 |
/// |
|
823 |
/// \param imageURL A URL to use for fetching the user’s profile image Defaults to <code>nil</code>. |
|
824 |
/// |
|
825 |
/// \param email The user’s email address. Defaults to <code>nil</code>. |
|
826 |
/// |
|
827 |
/// \param friendIDs A list of identifiers for the user’s friends. Defaults to <code>nil</code>. |
|
828 |
/// |
|
829 |
/// \param birthday The user’s birthday. Defaults to <code>nil</code>. |
|
830 |
/// |
|
831 |
/// \param ageRange The user’s age range. Defaults to <code>nil</code>. |
|
832 |
/// |
|
833 |
/// \param hometown The user’s hometown. Defaults to <code>nil</code>. |
|
834 |
/// |
|
835 |
/// \param location The user’s location. Defaults to <code>nil</code>. |
|
836 |
/// |
|
837 |
/// \param gender The user’s gender. Defaults to <code>nil</code>. |
|
838 |
/// |
|
839 |
/// \param isLimited Indicates whether the information provided is incomplete in some way. |
|
840 |
/// When <code>true</code>, <code>loadCurrentProfile(completion:):</code> will assume the profile is incomplete and disregard |
|
841 |
/// any cached profile. Defaults to <code>false</code>. |
|
842 |
/// |
97fc0a
|
843 |
- (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; |
e0ec42
|
844 |
/// Indicates whether this type will automatically observe access token changes |
L |
845 |
/// (via <code>AccessTokenDidChange</code> notifications). |
|
846 |
/// If observing changes, this class will issue a Graph request for public profile data when the current token’s user |
|
847 |
/// identifier differs from the current profile. You can observe profile changes via <code>ProfileDidChange</code> notifications |
|
848 |
/// to handle an updated profile. |
|
849 |
/// note: |
|
850 |
/// If the current access token is cleared, the current profile instance remains available. It’s also possible |
|
851 |
/// for <code>current</code> to return <code>nil</code> until the data is fetched. |
|
852 |
+ (void)enableUpdatesOnAccessTokenChange:(BOOL)enabled SWIFT_DEPRECATED_MSG("This method is deprecated and will be removed in the next major release. Use `isUpdatedWithAccessTokenChange` instead."); |
|
853 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
854 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
855 |
@end |
|
856 |
|
|
857 |
|
|
858 |
@interface FBSDKProfile (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
859 |
/// A convenience method for returning a complete <code>URL</code> for retrieving the user’s profile image. |
|
860 |
/// \param pictureMode The picture mode. |
|
861 |
/// |
|
862 |
/// \param size The height and width. This will be rounded to integer precision. |
|
863 |
/// |
|
864 |
- (NSURL * _Nullable)imageURLForPictureMode:(enum FBSDKProfilePictureMode)pictureMode size:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
865 |
@end |
|
866 |
|
|
867 |
/// Defines the aspect ratio mode for the source image of the profile picture. |
|
868 |
typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKProfilePictureMode, "PictureMode", open) { |
|
869 |
/// A square cropped version of the image will be included in the view. |
|
870 |
FBSDKProfilePictureModeSquare = 0, |
|
871 |
/// The original picture’s aspect ratio will be used for the source image in the view. |
|
872 |
FBSDKProfilePictureModeNormal = 1, |
|
873 |
/// The original picture’s aspect ratio will be used for the source image in the view. |
|
874 |
FBSDKProfilePictureModeAlbum = 2, |
|
875 |
/// The original picture’s aspect ratio will be used for the source image in the view. |
|
876 |
FBSDKProfilePictureModeSmall = 3, |
|
877 |
/// The original picture’s aspect ratio will be used for the source image in the view. |
|
878 |
FBSDKProfilePictureModeLarge = 4, |
|
879 |
}; |
|
880 |
|
|
881 |
|
|
882 |
|
|
883 |
/// Internal type exposed to facilitate transition to Swift. |
|
884 |
/// API Subject to change or removal without warning. Do not use. |
|
885 |
/// @warning INTERNAL - DO NOT USE |
|
886 |
SWIFT_PROTOCOL_NAMED("ProfileProviding") |
|
887 |
@protocol FBSDKProfileProviding |
|
888 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) FBSDKProfile * _Nullable currentProfile;) |
|
889 |
+ (FBSDKProfile * _Nullable)currentProfile SWIFT_WARN_UNUSED_RESULT; |
|
890 |
+ (void)setCurrentProfile:(FBSDKProfile * _Nullable)newValue; |
|
891 |
+ (FBSDKProfile * _Nullable)fetchCachedProfile SWIFT_WARN_UNUSED_RESULT; |
|
892 |
@end |
|
893 |
|
|
894 |
|
|
895 |
@interface FBSDKProfile (SWIFT_EXTENSION(FBSDKCoreKit)) <FBSDKProfileProviding> |
|
896 |
/// The current profile. |
|
897 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) FBSDKProfile * _Nullable currentProfile;) |
|
898 |
+ (FBSDKProfile * _Nullable)currentProfile SWIFT_WARN_UNUSED_RESULT; |
|
899 |
+ (void)setCurrentProfile:(FBSDKProfile * _Nullable)newValue; |
|
900 |
+ (nullable instancetype)fetchCachedProfile SWIFT_WARN_UNUSED_RESULT; |
|
901 |
@end |
|
902 |
|
|
903 |
|
|
904 |
@interface FBSDKProfile (SWIFT_EXTENSION(FBSDKCoreKit)) <NSSecureCoding> |
|
905 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;) |
|
906 |
+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; |
|
907 |
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)decoder; |
|
908 |
- (void)encodeWithCoder:(NSCoder * _Nonnull)encoder; |
|
909 |
@end |
|
910 |
|
|
911 |
|
|
912 |
@interface FBSDKProfile (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
913 |
/// Loads the current profile and passes it to the completion block. |
|
914 |
/// note: |
|
915 |
/// If the profile is already loaded, this method will call the completion block synchronously, otherwise it |
|
916 |
/// will begin a graph request to update <code>current</code> and then call the completion block when finished. |
|
917 |
/// <ul> |
|
918 |
/// <li> |
|
919 |
/// Parameter: completion The block to be executed once the profile is loaded. |
|
920 |
/// </li> |
|
921 |
/// </ul> |
|
922 |
+ (void)loadCurrentProfileWithCompletion:(FBSDKProfileBlock _Nullable)completion; |
|
923 |
@end |
|
924 |
|
|
925 |
|
|
926 |
|
97fc0a
|
927 |
SWIFT_CLASS_NAMED("ProtectedModeManager") |
L |
928 |
@interface FBSDKProtectedModeManager : NSObject <FBSDKAppEventsParameterProcessing> |
|
929 |
- (void)enable; |
|
930 |
- (NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)processParameters:(NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)parameters eventName:(FBSDKAppEventName _Nullable)eventName SWIFT_WARN_UNUSED_RESULT; |
|
931 |
+ (BOOL)isProtectedModeAppliedWithParameters:(NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)parameters SWIFT_WARN_UNUSED_RESULT; |
|
932 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
933 |
@end |
|
934 |
|
|
935 |
|
|
936 |
|
e0ec42
|
937 |
/// Internal Type exposed to facilitate transition to Swift. |
L |
938 |
/// API Subject to change or removal without warning. Do not use. |
|
939 |
/// @warning INTERNAL - DO NOT USE |
|
940 |
SWIFT_CLASS("_TtC12FBSDKCoreKit27ServerConfigurationProvider") |
|
941 |
@interface ServerConfigurationProvider : NSObject |
|
942 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
943 |
@end |
|
944 |
|
|
945 |
|
|
946 |
/// Internal type exposed to facilitate transition to Swift. |
|
947 |
/// API Subject to change or removal without warning. Do not use. |
|
948 |
/// @warning INTERNAL - DO NOT USE |
|
949 |
SWIFT_PROTOCOL_NAMED("SettingsProtocol") |
|
950 |
@protocol FBSDKSettings |
|
951 |
@property (nonatomic, copy) NSString * _Nullable appID; |
|
952 |
@property (nonatomic, copy) NSString * _Nullable clientToken; |
|
953 |
@property (nonatomic, copy) NSString * _Nullable userAgentSuffix; |
|
954 |
@property (nonatomic, readonly, copy) NSString * _Nonnull sdkVersion; |
|
955 |
@property (nonatomic, copy) NSString * _Nullable displayName; |
|
956 |
@property (nonatomic, copy) NSString * _Nullable facebookDomainPart; |
|
957 |
@property (nonatomic, copy) NSSet<FBSDKLoggingBehavior> * _Nonnull loggingBehaviors; |
|
958 |
@property (nonatomic, copy) NSString * _Nullable appURLSchemeSuffix; |
|
959 |
@property (nonatomic, readonly) BOOL isDataProcessingRestricted; |
|
960 |
@property (nonatomic, readonly) BOOL isAutoLogAppEventsEnabled; |
|
961 |
@property (nonatomic) BOOL codelessDebugLogEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isCodelessDebugLogEnabled` instead.\n "); |
|
962 |
@property (nonatomic) BOOL isCodelessDebugLogEnabled; |
|
963 |
@property (nonatomic) BOOL advertiserIDCollectionEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isAdvertiserIDCollectionEnabled` instead.\n "); |
|
964 |
@property (nonatomic) BOOL isAdvertiserIDCollectionEnabled; |
|
965 |
@property (nonatomic, readonly) BOOL isSetATETimeExceedsInstallTime SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isATETimeSufficientlyDelayed` instead.\n "); |
|
966 |
@property (nonatomic, readonly) BOOL isATETimeSufficientlyDelayed; |
|
967 |
@property (nonatomic, readonly) BOOL isSKAdNetworkReportEnabled; |
|
968 |
@property (nonatomic, readonly) FBSDKAdvertisingTrackingStatus advertisingTrackingStatus; |
|
969 |
@property (nonatomic, readonly, copy) NSDate * _Nullable installTimestamp; |
|
970 |
@property (nonatomic, readonly, copy) NSDate * _Nullable advertiserTrackingEnabledTimestamp; |
|
971 |
@property (nonatomic) BOOL isEventDataUsageLimited; |
|
972 |
@property (nonatomic) BOOL shouldUseTokenOptimizations; |
|
973 |
@property (nonatomic, copy) NSString * _Nonnull graphAPIVersion; |
|
974 |
@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; |
|
975 |
@property (nonatomic, readonly, copy) NSString * _Nullable graphAPIDebugParamValue SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `graphAPIDebugParameterValue` instead.\n "); |
|
976 |
@property (nonatomic, readonly, copy) NSString * _Nullable graphAPIDebugParameterValue; |
|
977 |
@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 "); |
|
978 |
@property (nonatomic) BOOL isAdvertiserTrackingEnabled; |
|
979 |
@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; |
|
980 |
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable persistableDataProcessingOptions; |
97fc0a
|
981 |
@property (nonatomic) BOOL isDomainErrorEnabled; |
e0ec42
|
982 |
/// Sets the data processing options. |
L |
983 |
/// \param options The list of options. |
|
984 |
/// |
|
985 |
- (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options; |
|
986 |
/// Sets the data processing options. |
|
987 |
/// \param options The list of the options. |
|
988 |
/// |
|
989 |
/// \param country The code for the country. |
|
990 |
/// |
|
991 |
/// \param state The code for the state. |
|
992 |
/// |
|
993 |
- (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options country:(int32_t)country state:(int32_t)state; |
|
994 |
@end |
|
995 |
|
|
996 |
|
|
997 |
SWIFT_CLASS_NAMED("Settings") |
|
998 |
@interface FBSDKSettings : NSObject <FBSDKSettingsLogging, FBSDKSettings, FBSDKClientTokenProviding> |
|
999 |
/// The shared settings instance. Prefer this and the exposed instance methods over the type properties and methods. |
|
1000 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKSettings * _Nonnull sharedSettings;) |
|
1001 |
+ (FBSDKSettings * _Nonnull)sharedSettings SWIFT_WARN_UNUSED_RESULT; |
|
1002 |
/// The Facebook SDK version in use. |
|
1003 |
@property (nonatomic, readonly, copy) NSString * _Nonnull sdkVersion; |
|
1004 |
/// The default Graph API version. |
|
1005 |
@property (nonatomic, readonly, copy) NSString * _Nonnull defaultGraphAPIVersion; |
|
1006 |
/// The quality of JPEG images sent to Facebook from the SDK expressed as a value from 0.0 to 1.0. |
|
1007 |
/// The default value is 0.9. |
|
1008 |
@property (nonatomic) CGFloat JPEGCompressionQuality; |
|
1009 |
/// Controls the automatic logging of basic app events such as <code>activateApp</code> and <code>deactivateApp</code>. |
|
1010 |
/// The default value is <code>true</code>. |
|
1011 |
@property (nonatomic) BOOL autoLogAppEventsEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isAutoLogAppEventsEnabled` instead.\n "); |
|
1012 |
/// Controls the automatic logging of basic app events such as <code>activateApp</code> and <code>deactivateApp</code>. |
|
1013 |
/// The default value is <code>true</code>. |
|
1014 |
@property (nonatomic) BOOL isAutoLogAppEventsEnabled; |
|
1015 |
/// Controls the <code>fb_codeless_debug</code> logging event. |
|
1016 |
/// The default value is <code>false</code>. |
|
1017 |
@property (nonatomic) BOOL codelessDebugLogEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isCodelessDebugLogEnabled` instead.\n "); |
|
1018 |
/// Controls the <code>fb_codeless_debug</code> logging event. |
|
1019 |
/// The default value is <code>false</code>. |
|
1020 |
@property (nonatomic) BOOL isCodelessDebugLogEnabled; |
|
1021 |
/// Controls the access to IDFA. |
|
1022 |
/// The default value is <code>true</code>. |
|
1023 |
@property (nonatomic) BOOL advertiserIDCollectionEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isAdvertiserIDCollectionEnabled` instead.\n "); |
|
1024 |
/// Controls the access to IDFA. |
|
1025 |
/// The default value is <code>true</code>. |
|
1026 |
@property (nonatomic) BOOL isAdvertiserIDCollectionEnabled; |
|
1027 |
/// Controls the SKAdNetwork report. |
|
1028 |
/// The default value is <code>true</code>. |
|
1029 |
@property (nonatomic) BOOL skAdNetworkReportEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isSKAdNetworkReportEnabled` instead.\n "); |
|
1030 |
/// Controls the SKAdNetwork report. |
|
1031 |
/// The default value is <code>true</code>. |
|
1032 |
@property (nonatomic) BOOL isSKAdNetworkReportEnabled; |
|
1033 |
/// Whether data such as that generated through <code>AppEvents</code> and sent to Facebook |
|
1034 |
/// should be restricted from being used for purposes other than analytics and conversions. |
|
1035 |
/// The default value is <code>false</code>. This value is stored on the device and persists across app launches. |
|
1036 |
@property (nonatomic) BOOL isEventDataUsageLimited; |
|
1037 |
/// Whether in-memory cached values should be used for expensive metadata fields, such as |
|
1038 |
/// carrier and advertiser ID, that are fetched on many <code>applicationDidBecomeActive</code> notifications. |
|
1039 |
/// The default value is <code>false</code>. This value is stored on the device and persists across app launches. |
|
1040 |
@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; |
|
1041 |
/// Controls error recovery for all <code>GraphRequest</code> instances created after the value is changed. |
|
1042 |
@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; |
|
1043 |
/// The Facebook App ID used by the SDK. |
|
1044 |
/// The default value will be read from the application’s plist (FacebookAppID). |
|
1045 |
@property (nonatomic, copy) NSString * _Nullable appID; |
|
1046 |
/// The default URL scheme suffix used for sessions. |
|
1047 |
/// The default value will be read from the application’s plist (FacebookUrlSchemeSuffix). |
|
1048 |
@property (nonatomic, copy) NSString * _Nullable appURLSchemeSuffix; |
|
1049 |
/// The client token needed for certain anonymous API calls (i.e., those made without a user-based access token). |
|
1050 |
/// An app’s client token can be found by navigating to https://developers.facebook.com/apps/YOUR-APP-ID |
|
1051 |
/// (replacing “YOUR-APP-ID” with your actual app ID), choosing “Settings->Advanced” and scrolling to the “Security”. |
|
1052 |
/// The default value will be read from the application’s plist (FacebookClientToken). |
|
1053 |
@property (nonatomic, copy) NSString * _Nullable clientToken; |
|
1054 |
/// The Facebook Display Name used by the SDK. |
|
1055 |
/// This should match the Display Name that has been set for the app with the corresponding Facebook App ID |
|
1056 |
/// in the Facebook App Dashboard. |
|
1057 |
/// The default value will be read from the application’s plist (FacebookDisplayName). |
|
1058 |
@property (nonatomic, copy) NSString * _Nullable displayName; |
|
1059 |
/// The Facebook domain part. This can be used to change the Facebook domain |
|
1060 |
/// (e.g. “beta”) so that requests will be sent to <code>graph.beta.facebook.com</code>. |
|
1061 |
/// The default value will be read from the application’s plist (FacebookDomainPart). |
|
1062 |
@property (nonatomic, copy) NSString * _Nullable facebookDomainPart; |
|
1063 |
/// Overrides the default Graph API version to use with <code>GraphRequest</code> instances. |
|
1064 |
/// The string should be of the form <code>"v2.7"</code>. |
|
1065 |
/// The default value is <code>defaultGraphAPIVersion</code>. |
|
1066 |
@property (nonatomic, copy) NSString * _Nonnull graphAPIVersion; |
|
1067 |
/// Internal property exposed to facilitate transition to Swift. |
|
1068 |
/// API Subject to change or removal without warning. Do not use. |
|
1069 |
/// @warning INTERNAL - DO NOT USE |
|
1070 |
@property (nonatomic, copy) NSString * _Nullable userAgentSuffix; |
|
1071 |
/// Controls the advertiser tracking status of the data sent to Facebook. |
|
1072 |
@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 "); |
|
1073 |
/// Controls the advertiser tracking status of the data sent to Facebook. |
|
1074 |
@property (nonatomic) BOOL isAdvertiserTrackingEnabled; |
|
1075 |
/// Internal property exposed to facilitate transition to Swift. |
|
1076 |
/// API Subject to change or removal without warning. Do not use. |
|
1077 |
/// @warning INTERNAL - DO NOT USE |
|
1078 |
@property (nonatomic) FBSDKAdvertisingTrackingStatus advertisingTrackingStatus; |
|
1079 |
/// Internal property exposed to facilitate transition to Swift. |
|
1080 |
/// API Subject to change or removal without warning. Do not use. |
|
1081 |
/// @warning INTERNAL - DO NOT USE |
|
1082 |
@property (nonatomic, readonly) BOOL isDataProcessingRestricted; |
|
1083 |
/// Internal property exposed to facilitate transition to Swift. |
|
1084 |
/// API Subject to change or removal without warning. Do not use. |
|
1085 |
/// @warning INTERNAL - DO NOT USE |
|
1086 |
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable persistableDataProcessingOptions; |
|
1087 |
/// Set the data processing options. |
|
1088 |
/// \param options The list of options. |
|
1089 |
/// |
|
1090 |
- (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options; |
|
1091 |
/// Sets the data processing options. |
97fc0a
|
1092 |
/// <ul> |
L |
1093 |
/// <li> |
|
1094 |
/// Parameters: |
|
1095 |
/// </li> |
|
1096 |
/// <li> |
|
1097 |
/// options The list of the options. |
|
1098 |
/// </li> |
|
1099 |
/// <li> |
|
1100 |
/// country The code for the country. |
|
1101 |
/// </li> |
|
1102 |
/// <li> |
|
1103 |
/// state The code for the state. |
|
1104 |
/// </li> |
|
1105 |
/// </ul> |
e0ec42
|
1106 |
- (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options country:(int32_t)country state:(int32_t)state; |
L |
1107 |
/// The current Facebook SDK logging behavior. This should consist of strings |
|
1108 |
/// defined as constants with <code>LoggingBehavior</code> that indicate what information should be logged. |
|
1109 |
/// Set to an empty set in order to disable all logging. |
|
1110 |
/// You can also define this via an array in your app’s plist with the key “FacebookLoggingBehavior”; or add/remove |
|
1111 |
/// individual values via <code>enableLoggingBehavior(_:)</code> or <code>disableLoggingBehavior(_:)</code> |
|
1112 |
/// The default value is <code>[.developerErrors]</code>. |
|
1113 |
@property (nonatomic, copy) NSSet<FBSDKLoggingBehavior> * _Nonnull loggingBehaviors; |
|
1114 |
/// Enable a particular Facebook SDK logging behavior. |
|
1115 |
/// \param loggingBehavior The logging behavior to enable. This should be a string constant defined |
|
1116 |
/// as a <code>LoggingBehavior</code>. |
|
1117 |
/// |
|
1118 |
- (void)enableLoggingBehavior:(FBSDKLoggingBehavior _Nonnull)loggingBehavior; |
|
1119 |
/// Disable a particular Facebook SDK logging behavior. |
|
1120 |
/// \param loggingBehavior The logging behavior to disable. This should be a string constant defined |
|
1121 |
/// as a <code>LoggingBehavior</code>. |
|
1122 |
/// |
|
1123 |
- (void)disableLoggingBehavior:(FBSDKLoggingBehavior _Nonnull)loggingBehavior; |
|
1124 |
/// Internal property exposed to facilitate transition to Swift. |
|
1125 |
/// API Subject to change or removal without warning. Do not use. |
|
1126 |
/// @warning INTERNAL - DO NOT USE |
|
1127 |
@property (nonatomic) BOOL shouldUseTokenOptimizations; |
|
1128 |
/// Internal property exposed to facilitate transition to Swift. |
|
1129 |
/// API Subject to change or removal without warning. Do not use. |
|
1130 |
/// @warning INTERNAL - DO NOT USE |
|
1131 |
@property (nonatomic, readonly) BOOL isSetATETimeExceedsInstallTime SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isATETimeSufficientlyDelayed` instead.\n "); |
|
1132 |
/// Internal property exposed to facilitate transition to Swift. |
|
1133 |
/// API Subject to change or removal without warning. Do not use. |
|
1134 |
/// @warning INTERNAL - DO NOT USE |
|
1135 |
@property (nonatomic, readonly) BOOL isATETimeSufficientlyDelayed; |
|
1136 |
/// Internal property exposed to facilitate transition to Swift. |
|
1137 |
/// API Subject to change or removal without warning. Do not use. |
|
1138 |
/// @warning INTERNAL - DO NOT USE |
|
1139 |
@property (nonatomic, readonly, copy) NSDate * _Nullable installTimestamp; |
|
1140 |
/// Internal property exposed to facilitate transition to Swift. |
|
1141 |
/// API Subject to change or removal without warning. Do not use. |
|
1142 |
/// @warning INTERNAL - DO NOT USE |
|
1143 |
@property (nonatomic, readonly, copy) NSDate * _Nullable advertiserTrackingEnabledTimestamp; |
|
1144 |
/// Internal property exposed to facilitate transition to Swift. |
|
1145 |
/// API Subject to change or removal without warning. Do not use. |
|
1146 |
/// @warning INTERNAL - DO NOT USE |
|
1147 |
@property (nonatomic, readonly, copy) NSString * _Nullable graphAPIDebugParamValue SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `graphAPIDebugParameterValue` instead.\n "); |
|
1148 |
/// Internal property exposed to facilitate transition to Swift. |
|
1149 |
/// API Subject to change or removal without warning. Do not use. |
|
1150 |
/// @warning INTERNAL - DO NOT USE |
|
1151 |
@property (nonatomic, readonly, copy) NSString * _Nullable graphAPIDebugParameterValue; |
97fc0a
|
1152 |
/// Controls whether to show domain errors. |
L |
1153 |
@property (nonatomic) BOOL isDomainErrorEnabled; |
e0ec42
|
1154 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
L |
1155 |
@end |
|
1156 |
|
|
1157 |
|
|
1158 |
|
|
1159 |
|
|
1160 |
|
|
1161 |
|
|
1162 |
@interface FBSDKSettings (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
1163 |
/// Internal method exposed to facilitate transition to Swift. |
|
1164 |
/// API Subject to change or removal without warning. Do not use. |
|
1165 |
/// @warning INTERNAL - DO NOT USE |
|
1166 |
- (void)recordInstall; |
|
1167 |
/// Internal method exposed to facilitate transition to Swift. |
|
1168 |
/// API Subject to change or removal without warning. Do not use. |
|
1169 |
/// @warning INTERNAL - DO NOT USE |
|
1170 |
- (void)logWarnings; |
|
1171 |
/// Internal method exposed to facilitate transition to Swift. |
|
1172 |
/// API Subject to change or removal without warning. Do not use. |
|
1173 |
/// @warning INTERNAL - DO NOT USE |
|
1174 |
- (void)logIfSDKSettingsChanged; |
|
1175 |
@end |
|
1176 |
|
97fc0a
|
1177 |
|
L |
1178 |
|
|
1179 |
@class NSURLRequest; |
|
1180 |
|
|
1181 |
/// Internal class exposed to facilitate transition to Swift. |
|
1182 |
/// API Subject to change or removal without warning. Do not use. |
|
1183 |
/// @warning INTERNAL - DO NOT USE |
|
1184 |
SWIFT_CLASS_NAMED("ShimGraphRequestInterceptor") |
|
1185 |
@interface FBSDKShimGraphRequestInterceptor : NSObject |
|
1186 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKShimGraphRequestInterceptor * _Nonnull shared;) |
|
1187 |
+ (FBSDKShimGraphRequestInterceptor * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
|
1188 |
- (BOOL)shouldInterceptRequest:(NSURLRequest * _Nonnull)request SWIFT_WARN_UNUSED_RESULT; |
|
1189 |
- (void)executeWithRequest:(NSURLRequest * _Nonnull)request completionHandler:(FBSDKURLSessionTaskBlock _Nonnull)completionHandler; |
|
1190 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1191 |
@end |
e0ec42
|
1192 |
|
L |
1193 |
|
|
1194 |
|
|
1195 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1196 |
/// API Subject to change or removal without warning. Do not use. |
|
1197 |
/// @warning INTERNAL - DO NOT USE |
|
1198 |
SWIFT_PROTOCOL_NAMED("_AccessTokenExpiring") |
|
1199 |
@protocol _FBSDKAccessTokenExpiring |
|
1200 |
@end |
|
1201 |
|
|
1202 |
@protocol _FBSDKNotificationPosting; |
|
1203 |
@protocol FBSDKNotificationDelivering; |
|
1204 |
|
|
1205 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1206 |
/// API Subject to change or removal without warning. Do not use. |
|
1207 |
/// @warning INTERNAL - DO NOT USE |
|
1208 |
SWIFT_CLASS_NAMED("_AccessTokenExpirer") |
|
1209 |
@interface _FBSDKAccessTokenExpirer : NSObject <_FBSDKAccessTokenExpiring> |
|
1210 |
- (nonnull instancetype)initWithNotificationCenter:(id <_FBSDKNotificationPosting, FBSDKNotificationDelivering> _Nonnull)notificationCenter OBJC_DESIGNATED_INITIALIZER; |
|
1211 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1212 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1213 |
@end |
|
1214 |
|
|
1215 |
|
|
1216 |
@class FBSDKContainerViewController; |
|
1217 |
|
|
1218 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1219 |
/// API Subject to change or removal without warning. Do not use. |
|
1220 |
/// @warning INTERNAL - DO NOT USE |
|
1221 |
SWIFT_CLASS("_TtC12FBSDKCoreKit10_BridgeAPI") |
|
1222 |
@interface _BridgeAPI : NSObject <FBSDKBridgeAPIRequestOpening, FBSDKApplicationObserving, FBSDKURLOpener, FBSDKContainerViewControllerDelegate, SFSafariViewControllerDelegate> |
|
1223 |
- (void)viewControllerDidDisappear:(FBSDKContainerViewController * _Nonnull)viewController animated:(BOOL)animated; |
|
1224 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1225 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1226 |
@end |
|
1227 |
|
|
1228 |
@class SFSafariViewController; |
|
1229 |
|
|
1230 |
@interface _BridgeAPI (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
1231 |
- (void)safariViewControllerDidFinish:(SFSafariViewController * _Nonnull)safariViewController; |
|
1232 |
@end |
|
1233 |
|
|
1234 |
@class ASWebAuthenticationSession; |
|
1235 |
|
|
1236 |
SWIFT_AVAILABILITY(ios,introduced=13) |
|
1237 |
@interface _BridgeAPI (SWIFT_EXTENSION(FBSDKCoreKit)) <ASWebAuthenticationPresentationContextProviding> |
|
1238 |
- (ASPresentationAnchor _Nonnull)presentationAnchorForWebAuthenticationSession:(ASWebAuthenticationSession * _Nonnull)session SWIFT_WARN_UNUSED_RESULT; |
|
1239 |
@end |
|
1240 |
|
|
1241 |
@protocol FBSDKURLOpening; |
|
1242 |
@protocol FBSDKBridgeAPIRequest; |
|
1243 |
@class UIViewController; |
|
1244 |
|
|
1245 |
@interface _BridgeAPI (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
1246 |
- (void)openURL:(NSURL * _Nonnull)url sender:(id <FBSDKURLOpening> _Nullable)sender handler:(FBSDKSuccessBlock _Nonnull)handler; |
|
1247 |
- (void)openBridgeAPIRequest:(id <FBSDKBridgeAPIRequest> _Nonnull)request useSafariViewController:(BOOL)useSafariViewController fromViewController:(UIViewController * _Nullable)fromViewController completionBlock:(FBSDKBridgeAPIResponseBlock _Nonnull)completionBlock; |
|
1248 |
- (void)openURLWithSafariViewController:(NSURL * _Nonnull)url sender:(id <FBSDKURLOpening> _Nullable)sender fromViewController:(UIViewController * _Nullable)fromViewController handler:(FBSDKSuccessBlock _Nonnull)handler; |
|
1249 |
@end |
|
1250 |
|
|
1251 |
|
|
1252 |
@interface _BridgeAPI (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
1253 |
- (void)applicationWillResignActive:(UIApplication * _Nullable)application; |
|
1254 |
- (void)applicationDidBecomeActive:(UIApplication * _Nullable)application; |
|
1255 |
- (void)applicationDidEnterBackground:(UIApplication * _Nullable)application; |
|
1256 |
- (BOOL)application:(UIApplication * _Nonnull)application openURL:(NSURL * _Nonnull)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
1257 |
- (BOOL)application:(UIApplication * _Nonnull)application didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> * _Nullable)launchOptions SWIFT_WARN_UNUSED_RESULT; |
|
1258 |
@end |
|
1259 |
|
|
1260 |
@protocol FBSDKPasteboard; |
|
1261 |
|
|
1262 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1263 |
/// API Subject to change or removal without warning. Do not use. |
|
1264 |
/// @warning INTERNAL - DO NOT USE |
|
1265 |
SWIFT_CLASS_NAMED("_BridgeAPIProtocolNativeV1") |
|
1266 |
@interface FBSDKBridgeAPIProtocolNativeV1 : NSObject <FBSDKBridgeAPIProtocol> |
|
1267 |
- (nonnull instancetype)initWithAppScheme:(NSString * _Nullable)appScheme; |
|
1268 |
- (nonnull instancetype)initWithAppScheme:(NSString * _Nullable)appScheme pasteboard:(id <FBSDKPasteboard> _Nullable)pasteboard dataLengthThreshold:(NSUInteger)dataLengthThreshold includeAppIcon:(BOOL)shouldIncludeAppIcon OBJC_DESIGNATED_INITIALIZER; |
|
1269 |
- (NSURL * _Nullable)requestURLWithActionID:(NSString * _Nonnull)actionID scheme:(NSString * _Nonnull)scheme methodName:(NSString * _Nonnull)methodName parameters:(NSDictionary<NSString *, id> * _Nonnull)parameters error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT; |
|
1270 |
- (NSDictionary<NSString *, id> * _Nullable)responseParametersForActionID:(NSString * _Nonnull)actionID queryParameters:(NSDictionary<NSString *, id> * _Nonnull)queryParameters cancelled:(BOOL * _Nullable)cancelledRef error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT; |
|
1271 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1272 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1273 |
@end |
|
1274 |
|
|
1275 |
|
|
1276 |
|
|
1277 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1278 |
/// API Subject to change or removal without warning. Do not use. |
|
1279 |
/// @warning INTERNAL - DO NOT USE |
|
1280 |
SWIFT_CLASS_NAMED("_BridgeAPIRequestFactory") |
|
1281 |
@interface FBSDKBridgeAPIRequestFactory : NSObject <FBSDKBridgeAPIRequestCreating> |
|
1282 |
- (id <FBSDKBridgeAPIRequest> _Nullable)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType scheme:(NSString * _Nonnull)scheme methodName:(NSString * _Nullable)methodName parameters:(NSDictionary<NSString *, id> * _Nullable)parameters userInfo:(NSDictionary<NSString *, id> * _Nullable)userInfo SWIFT_WARN_UNUSED_RESULT; |
|
1283 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1284 |
@end |
|
1285 |
|
|
1286 |
@class FBSDKDialogConfiguration; |
|
1287 |
|
|
1288 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1289 |
/// API Subject to change or removal without warning. Do not use. |
|
1290 |
/// @warning INTERNAL - DO NOT USE |
|
1291 |
SWIFT_CLASS_NAMED("_DialogConfigurationMapBuilder") |
|
1292 |
@interface FBSDKDialogConfigurationMapBuilder : NSObject <FBSDKDialogConfigurationMapBuilding> |
|
1293 |
- (NSDictionary<NSString *, FBSDKDialogConfiguration *> * _Nonnull)buildDialogConfigurationMapWithRawConfigurations:(NSArray<NSDictionary<NSString *, id> *> * _Nonnull)rawConfigurations SWIFT_WARN_UNUSED_RESULT; |
|
1294 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1295 |
@end |
|
1296 |
|
|
1297 |
|
|
1298 |
/// Internal type exposed to facilitate transition to Swift. |
|
1299 |
/// API Subject to change or removal without warning. Do not use. |
|
1300 |
/// @warning INTERNAL - DO NOT USE |
|
1301 |
SWIFT_CLASS_NAMED("_ErrorFactory") |
|
1302 |
@interface FBSDKErrorFactory : NSObject <FBSDKErrorCreating> |
|
1303 |
- (NSError * _Nonnull)errorWithCode:(NSInteger)code userInfo:(NSDictionary<NSString *, id> * _Nullable)userInfo message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
1304 |
- (NSError * _Nonnull)errorWithDomain:(NSString * _Nonnull)domain code:(NSInteger)code userInfo:(NSDictionary<NSString *, id> * _Nullable)userInfo message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
1305 |
- (NSError * _Nonnull)invalidArgumentErrorWithName:(NSString * _Nonnull)name value:(id _Nullable)value message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
1306 |
- (NSError * _Nonnull)invalidArgumentErrorWithDomain:(NSString * _Nonnull)domain name:(NSString * _Nonnull)name value:(id _Nullable)value message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
1307 |
- (NSError * _Nonnull)requiredArgumentErrorWithName:(NSString * _Nonnull)name message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
1308 |
- (NSError * _Nonnull)requiredArgumentErrorWithDomain:(NSString * _Nonnull)domain name:(NSString * _Nonnull)name message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
1309 |
- (NSError * _Nonnull)unknownErrorWithMessage:(NSString * _Nullable)message userInfo:(NSDictionary<NSString *, id> * _Nullable)userInfo SWIFT_WARN_UNUSED_RESULT; |
|
1310 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1311 |
@end |
|
1312 |
|
|
1313 |
|
|
1314 |
|
|
1315 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1316 |
/// API Subject to change or removal without warning. Do not use. |
|
1317 |
/// @warning INTERNAL - DO NOT USE |
|
1318 |
SWIFT_CLASS_NAMED("_FBCloseIcon") |
|
1319 |
@interface FBSDKCloseIcon : NSObject |
|
1320 |
- (UIImage * _Nullable)imageWithSize:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
1321 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1322 |
@end |
|
1323 |
|
|
1324 |
|
|
1325 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1326 |
/// API Subject to change or removal without warning. Do not use. |
|
1327 |
/// @warning INTERNAL - DO NOT USE |
|
1328 |
SWIFT_CLASS_NAMED("_FBLogo") |
|
1329 |
@interface FBSDKLogo : FBSDKIcon |
|
1330 |
- (CGPathRef _Nullable)pathWith:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
1331 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1332 |
@end |
|
1333 |
|
|
1334 |
|
|
1335 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1336 |
/// API Subject to change or removal without warning. Do not use. |
|
1337 |
/// @warning INTERNAL - DO NOT USE |
|
1338 |
SWIFT_CLASS_NAMED("_FeatureManager") |
|
1339 |
@interface FBSDKFeatureManager : NSObject <FBSDKFeatureChecking, FBSDKFeatureDisabling> |
|
1340 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKFeatureManager * _Nonnull shared;) |
|
1341 |
+ (FBSDKFeatureManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
|
1342 |
- (BOOL)isEnabled:(FBSDKFeature)feature SWIFT_WARN_UNUSED_RESULT; |
|
1343 |
- (void)checkFeature:(FBSDKFeature)feature completionBlock:(FBSDKFeatureManagerBlock _Nonnull)completionBlock; |
|
1344 |
- (void)disableFeature:(FBSDKFeature)feature; |
|
1345 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1346 |
@end |
|
1347 |
|
|
1348 |
|
|
1349 |
|
|
1350 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1351 |
/// API Subject to change or removal without warning. Do not use. |
|
1352 |
/// @warning INTERNAL - DO NOT USE |
|
1353 |
SWIFT_CLASS_NAMED("_HumanSilhouetteIcon") |
|
1354 |
@interface FBSDKHumanSilhouetteIcon : FBSDKIcon |
|
1355 |
- (CGPathRef _Nullable)pathWith:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
1356 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1357 |
@end |
|
1358 |
|
|
1359 |
|
|
1360 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1361 |
/// API Subject to change or removal without warning. Do not use. |
|
1362 |
/// @warning INTERNAL - DO NOT USE |
|
1363 |
SWIFT_CLASS_NAMED("_MeasurementEvent") |
|
1364 |
@interface FBSDKMeasurementEvent : NSObject <FBSDKAppLinkEventPosting> |
|
1365 |
- (void)postNotificationForEventName:(NSString * _Nonnull)eventName args:(NSDictionary<NSString *, id> * _Nonnull)arguments; |
|
1366 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1367 |
@end |
|
1368 |
|
|
1369 |
@class SKPaymentQueue; |
|
1370 |
@protocol FBSDKPaymentProductRequestorCreating; |
|
1371 |
|
|
1372 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1373 |
/// API Subject to change or removal without warning. Do not use. |
|
1374 |
/// @warning INTERNAL - DO NOT USE |
|
1375 |
/// Class to encapsulate implicit logging of purchase events |
|
1376 |
SWIFT_CLASS_NAMED("_PaymentObserver") |
|
1377 |
@interface FBSDKPaymentObserver : NSObject <FBSDKPaymentObserving> |
|
1378 |
- (nonnull instancetype)initWithPaymentQueue:(SKPaymentQueue * _Nonnull)paymentQueue paymentProductRequestorFactory:(id <FBSDKPaymentProductRequestorCreating> _Nonnull)paymentProductRequestorFactory OBJC_DESIGNATED_INITIALIZER; |
|
1379 |
- (void)startObservingTransactions; |
|
1380 |
- (void)stopObservingTransactions; |
|
1381 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1382 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1383 |
@end |
|
1384 |
|
|
1385 |
@class SKPaymentTransaction; |
|
1386 |
|
|
1387 |
@interface FBSDKPaymentObserver (SWIFT_EXTENSION(FBSDKCoreKit)) <SKPaymentTransactionObserver> |
|
1388 |
- (void)paymentQueue:(SKPaymentQueue * _Nonnull)queue updatedTransactions:(NSArray<SKPaymentTransaction *> * _Nonnull)transactions; |
|
1389 |
@end |
|
1390 |
|
|
1391 |
@class FBSDKPaymentProductRequestor; |
|
1392 |
|
|
1393 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1394 |
/// API Subject to change or removal without warning. Do not use. |
|
1395 |
/// @warning INTERNAL - DO NOT USE |
|
1396 |
SWIFT_CLASS_NAMED("_PaymentProductRequestorFactory") |
|
1397 |
@interface FBSDKPaymentProductRequestorFactory : NSObject <FBSDKPaymentProductRequestorCreating> |
|
1398 |
- (FBSDKPaymentProductRequestor * _Nonnull)createRequestorWithTransaction:(SKPaymentTransaction * _Nonnull)transaction SWIFT_WARN_UNUSED_RESULT; |
|
1399 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1400 |
@end |
|
1401 |
|
|
1402 |
|
|
1403 |
|
|
1404 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1405 |
/// API Subject to change or removal without warning. Do not use. |
|
1406 |
/// @warning INTERNAL - DO NOT USE |
|
1407 |
SWIFT_CLASS_NAMED("_RestrictiveEventFilter") |
|
1408 |
@interface FBSDKRestrictiveEventFilter : NSObject |
|
1409 |
@property (nonatomic, readonly, copy) NSString * _Nonnull eventName; |
|
1410 |
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull restrictiveParameters; |
|
1411 |
- (nonnull instancetype)initWithEventName:(NSString * _Nonnull)eventName restrictiveParameters:(NSDictionary<NSString *, id> * _Nonnull)restrictiveParameters OBJC_DESIGNATED_INITIALIZER; |
|
1412 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1413 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1414 |
@end |
|
1415 |
|
|
1416 |
|
|
1417 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1418 |
/// API Subject to change or removal without warning. Do not use. |
|
1419 |
/// @warning INTERNAL - DO NOT USE |
|
1420 |
SWIFT_CLASS_NAMED("_SKAdNetworkEvent") |
|
1421 |
@interface FBSDKSKAdNetworkEvent : NSObject |
|
1422 |
@property (nonatomic, readonly, copy) NSString * _Nullable eventName; |
|
1423 |
@property (nonatomic, copy) NSDictionary<NSString *, NSNumber *> * _Nullable values; |
|
1424 |
- (nullable instancetype)initWithJSON:(NSDictionary<NSString *, id> * _Nonnull)json OBJC_DESIGNATED_INITIALIZER; |
|
1425 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1426 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1427 |
@end |
|
1428 |
|
|
1429 |
|
|
1430 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1431 |
/// API Subject to change or removal without warning. Do not use. |
|
1432 |
/// @warning INTERNAL - DO NOT USE |
|
1433 |
SWIFT_CLASS_NAMED("_ViewImpressionLogger") |
|
1434 |
@interface FBSDKViewImpressionLogger : NSObject <FBSDKImpressionLogging> |
|
1435 |
- (nonnull instancetype)initWithEventName:(FBSDKAppEventName _Nonnull)eventName OBJC_DESIGNATED_INITIALIZER; |
|
1436 |
+ (FBSDKViewImpressionLogger * _Nonnull)retrieveLoggerWith:(FBSDKAppEventName _Nonnull)eventName SWIFT_WARN_UNUSED_RESULT; |
|
1437 |
- (void)logImpressionWithIdentifier:(NSString * _Nonnull)identifier parameters:(NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)parameters; |
|
1438 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1439 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1440 |
@end |
|
1441 |
|
|
1442 |
|
|
1443 |
@protocol FBSDKWebDialogDelegate; |
|
1444 |
|
|
1445 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1446 |
/// API Subject to change or removal without warning. Do not use. |
|
1447 |
/// @warning INTERNAL - DO NOT USE |
|
1448 |
SWIFT_CLASS_NAMED("_WebDialog") |
|
1449 |
@interface FBSDKWebDialog : NSObject |
|
1450 |
@property (nonatomic) BOOL shouldDeferVisibility; |
|
1451 |
@property (nonatomic, weak) id <FBSDKWebDialogDelegate> _Nullable delegate; |
|
1452 |
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name parameters:(NSDictionary<NSString *, NSString *> * _Nullable)parameters webViewFrame:(CGRect)webViewFrame path:(NSString * _Nullable)path OBJC_DESIGNATED_INITIALIZER; |
|
1453 |
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name; |
|
1454 |
- (void)show; |
|
1455 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1456 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1457 |
@end |
|
1458 |
|
|
1459 |
@class FBSDKWebDialogView; |
|
1460 |
|
|
1461 |
@interface FBSDKWebDialog (SWIFT_EXTENSION(FBSDKCoreKit)) <FBSDKWebDialogViewDelegate> |
|
1462 |
- (void)webDialogView:(FBSDKWebDialogView * _Nonnull)webDialogView didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results; |
|
1463 |
- (void)webDialogView:(FBSDKWebDialogView * _Nonnull)webDialogView didFailWithError:(NSError * _Nonnull)error; |
|
1464 |
- (void)webDialogViewDidCancel:(FBSDKWebDialogView * _Nonnull)webDialogView; |
|
1465 |
- (void)webDialogViewDidFinishLoad:(FBSDKWebDialogView * _Nonnull)webDialogView; |
|
1466 |
@end |
|
1467 |
|
|
1468 |
|
|
1469 |
@protocol FBSDKWebView; |
|
1470 |
|
|
1471 |
/// Internal Type exposed to facilitate transition to Swift. |
|
1472 |
/// API Subject to change or removal without warning. Do not use. |
|
1473 |
/// @warning INTERNAL - DO NOT USE |
|
1474 |
SWIFT_CLASS_NAMED("_WebViewFactory") |
|
1475 |
@interface FBSDKWebViewFactory : NSObject <FBSDKWebViewProviding> |
|
1476 |
- (id <FBSDKWebView> _Nonnull)createWebViewWithFrame:(CGRect)frame SWIFT_WARN_UNUSED_RESULT; |
|
1477 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1478 |
@end |
|
1479 |
|
|
1480 |
#endif |
2e29a3
|
1481 |
#if __has_attribute(external_source_symbol) |
L |
1482 |
# pragma clang attribute pop |
97fc0a
|
1483 |
#endif |
L |
1484 |
#if defined(__cplusplus) |
2e29a3
|
1485 |
#endif |
L |
1486 |
#pragma clang diagnostic pop |
|
1487 |
#endif |
|
1488 |
|
|
1489 |
#elif defined(__x86_64__) && __x86_64__ |
97fc0a
|
1490 |
// Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) |
2e29a3
|
1491 |
#ifndef FBSDKCOREKIT_SWIFT_H |
L |
1492 |
#define FBSDKCOREKIT_SWIFT_H |
|
1493 |
#pragma clang diagnostic push |
|
1494 |
#pragma clang diagnostic ignored "-Wgcc-compat" |
|
1495 |
|
|
1496 |
#if !defined(__has_include) |
|
1497 |
# define __has_include(x) 0 |
|
1498 |
#endif |
|
1499 |
#if !defined(__has_attribute) |
|
1500 |
# define __has_attribute(x) 0 |
|
1501 |
#endif |
|
1502 |
#if !defined(__has_feature) |
|
1503 |
# define __has_feature(x) 0 |
|
1504 |
#endif |
|
1505 |
#if !defined(__has_warning) |
|
1506 |
# define __has_warning(x) 0 |
|
1507 |
#endif |
|
1508 |
|
|
1509 |
#if __has_include(<swift/objc-prologue.h>) |
|
1510 |
# include <swift/objc-prologue.h> |
|
1511 |
#endif |
|
1512 |
|
|
1513 |
#pragma clang diagnostic ignored "-Wauto-import" |
e0ec42
|
1514 |
#if defined(__OBJC__) |
2e29a3
|
1515 |
#include <Foundation/Foundation.h> |
e0ec42
|
1516 |
#endif |
L |
1517 |
#if defined(__cplusplus) |
|
1518 |
#include <cstdint> |
|
1519 |
#include <cstddef> |
|
1520 |
#include <cstdbool> |
97fc0a
|
1521 |
#include <cstring> |
L |
1522 |
#include <stdlib.h> |
|
1523 |
#include <new> |
|
1524 |
#include <type_traits> |
e0ec42
|
1525 |
#else |
2e29a3
|
1526 |
#include <stdint.h> |
L |
1527 |
#include <stddef.h> |
|
1528 |
#include <stdbool.h> |
97fc0a
|
1529 |
#include <string.h> |
L |
1530 |
#endif |
|
1531 |
#if defined(__cplusplus) |
|
1532 |
#if defined(__arm64e__) && __has_include(<ptrauth.h>) |
|
1533 |
# include <ptrauth.h> |
|
1534 |
#else |
|
1535 |
#pragma clang diagnostic push |
|
1536 |
#pragma clang diagnostic ignored "-Wreserved-macro-identifier" |
|
1537 |
# ifndef __ptrauth_swift_value_witness_function_pointer |
|
1538 |
# define __ptrauth_swift_value_witness_function_pointer(x) |
|
1539 |
# endif |
|
1540 |
# ifndef __ptrauth_swift_class_method_pointer |
|
1541 |
# define __ptrauth_swift_class_method_pointer(x) |
|
1542 |
# endif |
|
1543 |
#pragma clang diagnostic pop |
|
1544 |
#endif |
e0ec42
|
1545 |
#endif |
2e29a3
|
1546 |
|
L |
1547 |
#if !defined(SWIFT_TYPEDEFS) |
|
1548 |
# define SWIFT_TYPEDEFS 1 |
|
1549 |
# if __has_include(<uchar.h>) |
|
1550 |
# include <uchar.h> |
|
1551 |
# elif !defined(__cplusplus) |
|
1552 |
typedef uint_least16_t char16_t; |
|
1553 |
typedef uint_least32_t char32_t; |
|
1554 |
# endif |
|
1555 |
typedef float swift_float2 __attribute__((__ext_vector_type__(2))); |
|
1556 |
typedef float swift_float3 __attribute__((__ext_vector_type__(3))); |
|
1557 |
typedef float swift_float4 __attribute__((__ext_vector_type__(4))); |
|
1558 |
typedef double swift_double2 __attribute__((__ext_vector_type__(2))); |
|
1559 |
typedef double swift_double3 __attribute__((__ext_vector_type__(3))); |
|
1560 |
typedef double swift_double4 __attribute__((__ext_vector_type__(4))); |
|
1561 |
typedef int swift_int2 __attribute__((__ext_vector_type__(2))); |
|
1562 |
typedef int swift_int3 __attribute__((__ext_vector_type__(3))); |
|
1563 |
typedef int swift_int4 __attribute__((__ext_vector_type__(4))); |
|
1564 |
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); |
|
1565 |
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); |
|
1566 |
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); |
|
1567 |
#endif |
|
1568 |
|
|
1569 |
#if !defined(SWIFT_PASTE) |
|
1570 |
# define SWIFT_PASTE_HELPER(x, y) x##y |
|
1571 |
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) |
|
1572 |
#endif |
|
1573 |
#if !defined(SWIFT_METATYPE) |
|
1574 |
# define SWIFT_METATYPE(X) Class |
|
1575 |
#endif |
|
1576 |
#if !defined(SWIFT_CLASS_PROPERTY) |
|
1577 |
# if __has_feature(objc_class_property) |
|
1578 |
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ |
|
1579 |
# else |
97fc0a
|
1580 |
# define SWIFT_CLASS_PROPERTY(...) |
2e29a3
|
1581 |
# endif |
L |
1582 |
#endif |
97fc0a
|
1583 |
#if !defined(SWIFT_RUNTIME_NAME) |
L |
1584 |
# if __has_attribute(objc_runtime_name) |
|
1585 |
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) |
|
1586 |
# else |
|
1587 |
# define SWIFT_RUNTIME_NAME(X) |
|
1588 |
# endif |
2e29a3
|
1589 |
#endif |
97fc0a
|
1590 |
#if !defined(SWIFT_COMPILE_NAME) |
L |
1591 |
# if __has_attribute(swift_name) |
|
1592 |
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) |
|
1593 |
# else |
|
1594 |
# define SWIFT_COMPILE_NAME(X) |
|
1595 |
# endif |
2e29a3
|
1596 |
#endif |
97fc0a
|
1597 |
#if !defined(SWIFT_METHOD_FAMILY) |
L |
1598 |
# if __has_attribute(objc_method_family) |
|
1599 |
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) |
|
1600 |
# else |
|
1601 |
# define SWIFT_METHOD_FAMILY(X) |
|
1602 |
# endif |
2e29a3
|
1603 |
#endif |
97fc0a
|
1604 |
#if !defined(SWIFT_NOESCAPE) |
L |
1605 |
# if __has_attribute(noescape) |
|
1606 |
# define SWIFT_NOESCAPE __attribute__((noescape)) |
|
1607 |
# else |
|
1608 |
# define SWIFT_NOESCAPE |
|
1609 |
# endif |
2e29a3
|
1610 |
#endif |
97fc0a
|
1611 |
#if !defined(SWIFT_RELEASES_ARGUMENT) |
L |
1612 |
# if __has_attribute(ns_consumed) |
|
1613 |
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) |
|
1614 |
# else |
|
1615 |
# define SWIFT_RELEASES_ARGUMENT |
|
1616 |
# endif |
2e29a3
|
1617 |
#endif |
97fc0a
|
1618 |
#if !defined(SWIFT_WARN_UNUSED_RESULT) |
L |
1619 |
# if __has_attribute(warn_unused_result) |
|
1620 |
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
|
1621 |
# else |
|
1622 |
# define SWIFT_WARN_UNUSED_RESULT |
|
1623 |
# endif |
2e29a3
|
1624 |
#endif |
97fc0a
|
1625 |
#if !defined(SWIFT_NORETURN) |
L |
1626 |
# if __has_attribute(noreturn) |
|
1627 |
# define SWIFT_NORETURN __attribute__((noreturn)) |
|
1628 |
# else |
|
1629 |
# define SWIFT_NORETURN |
|
1630 |
# endif |
2e29a3
|
1631 |
#endif |
L |
1632 |
#if !defined(SWIFT_CLASS_EXTRA) |
97fc0a
|
1633 |
# define SWIFT_CLASS_EXTRA |
2e29a3
|
1634 |
#endif |
L |
1635 |
#if !defined(SWIFT_PROTOCOL_EXTRA) |
97fc0a
|
1636 |
# define SWIFT_PROTOCOL_EXTRA |
2e29a3
|
1637 |
#endif |
L |
1638 |
#if !defined(SWIFT_ENUM_EXTRA) |
97fc0a
|
1639 |
# define SWIFT_ENUM_EXTRA |
2e29a3
|
1640 |
#endif |
L |
1641 |
#if !defined(SWIFT_CLASS) |
|
1642 |
# if __has_attribute(objc_subclassing_restricted) |
|
1643 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA |
|
1644 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
1645 |
# else |
|
1646 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
1647 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
1648 |
# endif |
|
1649 |
#endif |
|
1650 |
#if !defined(SWIFT_RESILIENT_CLASS) |
|
1651 |
# if __has_attribute(objc_class_stub) |
|
1652 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) |
|
1653 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
1654 |
# else |
|
1655 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) |
|
1656 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
1657 |
# endif |
|
1658 |
#endif |
|
1659 |
#if !defined(SWIFT_PROTOCOL) |
|
1660 |
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
1661 |
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
1662 |
#endif |
|
1663 |
#if !defined(SWIFT_EXTENSION) |
|
1664 |
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) |
|
1665 |
#endif |
|
1666 |
#if !defined(OBJC_DESIGNATED_INITIALIZER) |
|
1667 |
# if __has_attribute(objc_designated_initializer) |
|
1668 |
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) |
|
1669 |
# else |
97fc0a
|
1670 |
# define OBJC_DESIGNATED_INITIALIZER |
2e29a3
|
1671 |
# endif |
L |
1672 |
#endif |
|
1673 |
#if !defined(SWIFT_ENUM_ATTR) |
97fc0a
|
1674 |
# if __has_attribute(enum_extensibility) |
2e29a3
|
1675 |
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) |
L |
1676 |
# else |
97fc0a
|
1677 |
# define SWIFT_ENUM_ATTR(_extensibility) |
2e29a3
|
1678 |
# endif |
L |
1679 |
#endif |
|
1680 |
#if !defined(SWIFT_ENUM) |
|
1681 |
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type |
|
1682 |
# if __has_feature(generalized_swift_name) |
|
1683 |
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type |
|
1684 |
# else |
|
1685 |
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) |
|
1686 |
# endif |
|
1687 |
#endif |
|
1688 |
#if !defined(SWIFT_UNAVAILABLE) |
|
1689 |
# define SWIFT_UNAVAILABLE __attribute__((unavailable)) |
|
1690 |
#endif |
|
1691 |
#if !defined(SWIFT_UNAVAILABLE_MSG) |
|
1692 |
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) |
|
1693 |
#endif |
|
1694 |
#if !defined(SWIFT_AVAILABILITY) |
|
1695 |
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) |
|
1696 |
#endif |
|
1697 |
#if !defined(SWIFT_WEAK_IMPORT) |
|
1698 |
# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) |
|
1699 |
#endif |
|
1700 |
#if !defined(SWIFT_DEPRECATED) |
|
1701 |
# define SWIFT_DEPRECATED __attribute__((deprecated)) |
|
1702 |
#endif |
|
1703 |
#if !defined(SWIFT_DEPRECATED_MSG) |
|
1704 |
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) |
|
1705 |
#endif |
97fc0a
|
1706 |
#if !defined(SWIFT_DEPRECATED_OBJC) |
L |
1707 |
# if __has_feature(attribute_diagnose_if_objc) |
|
1708 |
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) |
|
1709 |
# else |
|
1710 |
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) |
|
1711 |
# endif |
2e29a3
|
1712 |
#endif |
e0ec42
|
1713 |
#if defined(__OBJC__) |
2e29a3
|
1714 |
#if !defined(IBSegueAction) |
97fc0a
|
1715 |
# define IBSegueAction |
2e29a3
|
1716 |
#endif |
e0ec42
|
1717 |
#endif |
L |
1718 |
#if !defined(SWIFT_EXTERN) |
|
1719 |
# if defined(__cplusplus) |
|
1720 |
# define SWIFT_EXTERN extern "C" |
|
1721 |
# else |
|
1722 |
# define SWIFT_EXTERN extern |
|
1723 |
# endif |
|
1724 |
#endif |
|
1725 |
#if !defined(SWIFT_CALL) |
|
1726 |
# define SWIFT_CALL __attribute__((swiftcall)) |
|
1727 |
#endif |
97fc0a
|
1728 |
#if !defined(SWIFT_INDIRECT_RESULT) |
L |
1729 |
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) |
e0ec42
|
1730 |
#endif |
97fc0a
|
1731 |
#if !defined(SWIFT_CONTEXT) |
L |
1732 |
# define SWIFT_CONTEXT __attribute__((swift_context)) |
|
1733 |
#endif |
|
1734 |
#if !defined(SWIFT_ERROR_RESULT) |
|
1735 |
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) |
|
1736 |
#endif |
|
1737 |
#if defined(__cplusplus) |
|
1738 |
# define SWIFT_NOEXCEPT noexcept |
e0ec42
|
1739 |
#else |
L |
1740 |
# define SWIFT_NOEXCEPT |
|
1741 |
#endif |
97fc0a
|
1742 |
#if !defined(SWIFT_C_INLINE_THUNK) |
L |
1743 |
# if __has_attribute(always_inline) |
|
1744 |
# if __has_attribute(nodebug) |
|
1745 |
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) |
|
1746 |
# else |
|
1747 |
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) |
|
1748 |
# endif |
|
1749 |
# else |
|
1750 |
# define SWIFT_C_INLINE_THUNK inline |
|
1751 |
# endif |
e0ec42
|
1752 |
#endif |
97fc0a
|
1753 |
#if defined(_WIN32) |
L |
1754 |
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) |
|
1755 |
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) |
|
1756 |
#endif |
|
1757 |
#else |
|
1758 |
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) |
|
1759 |
# define SWIFT_IMPORT_STDLIB_SYMBOL |
e0ec42
|
1760 |
#endif |
L |
1761 |
#endif |
|
1762 |
#if defined(__OBJC__) |
97fc0a
|
1763 |
#if __has_feature(objc_modules) |
2e29a3
|
1764 |
#if __has_warning("-Watimport-in-framework-header") |
L |
1765 |
#pragma clang diagnostic ignored "-Watimport-in-framework-header" |
|
1766 |
#endif |
e0ec42
|
1767 |
@import AuthenticationServices; |
L |
1768 |
@import CoreFoundation; |
|
1769 |
@import CoreGraphics; |
|
1770 |
@import FBAEMKit; |
97fc0a
|
1771 |
@import FBSDKCoreKit_Basics; |
e0ec42
|
1772 |
@import Foundation; |
L |
1773 |
@import ObjectiveC; |
|
1774 |
@import SafariServices; |
|
1775 |
@import StoreKit; |
|
1776 |
@import UIKit; |
2e29a3
|
1777 |
#endif |
L |
1778 |
|
e0ec42
|
1779 |
#import <FBSDKCoreKit/FBSDKCoreKit.h> |
L |
1780 |
|
|
1781 |
#endif |
2e29a3
|
1782 |
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" |
L |
1783 |
#pragma clang diagnostic ignored "-Wduplicate-method-arg" |
|
1784 |
#if __has_warning("-Wpragma-clang-attribute") |
|
1785 |
# pragma clang diagnostic ignored "-Wpragma-clang-attribute" |
|
1786 |
#endif |
|
1787 |
#pragma clang diagnostic ignored "-Wunknown-pragmas" |
|
1788 |
#pragma clang diagnostic ignored "-Wnullability" |
e0ec42
|
1789 |
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" |
2e29a3
|
1790 |
|
L |
1791 |
#if __has_attribute(external_source_symbol) |
|
1792 |
# pragma push_macro("any") |
|
1793 |
# undef any |
|
1794 |
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) |
|
1795 |
# pragma pop_macro("any") |
|
1796 |
#endif |
|
1797 |
|
e0ec42
|
1798 |
#if defined(__OBJC__) |
L |
1799 |
@class NSString; |
|
1800 |
@class NSNumber; |
|
1801 |
@class NSURL; |
2e29a3
|
1802 |
|
e0ec42
|
1803 |
/// Internal Type exposed to facilitate transition to Swift. |
L |
1804 |
/// API Subject to change or removal without warning. Do not use. |
|
1805 |
/// @warning INTERNAL - DO NOT USE |
|
1806 |
SWIFT_PROTOCOL_NAMED("_AEMReporterProtocol") |
|
1807 |
@protocol FBSDKAEMReporter |
|
1808 |
+ (void)enable; |
|
1809 |
+ (void)recordAndUpdateEvent:(NSString * _Nonnull)event currency:(NSString * _Nullable)currency value:(NSNumber * _Nullable)value parameters:(NSDictionary<NSString *, id> * _Nullable)parameters; |
|
1810 |
+ (void)setConversionFilteringEnabled:(BOOL)isEnabled; |
|
1811 |
+ (void)setCatalogMatchingEnabled:(BOOL)isEnabled; |
|
1812 |
+ (void)setAdvertiserRuleMatchInServerEnabled:(BOOL)isEnabled; |
97fc0a
|
1813 |
+ (void)handle:(NSURL * _Nullable)url; |
e0ec42
|
1814 |
@end |
L |
1815 |
|
|
1816 |
|
|
1817 |
@interface FBAEMReporter (SWIFT_EXTENSION(FBSDKCoreKit)) <FBSDKAEMReporter> |
|
1818 |
@end |
|
1819 |
|
|
1820 |
|
|
1821 |
|
|
1822 |
@protocol FBSDKAppLinkTarget; |
|
1823 |
|
|
1824 |
/// Contains App Link metadata relevant for navigation on this device |
|
1825 |
/// derived from the HTML at a given URL. |
|
1826 |
SWIFT_CLASS_NAMED("AppLink") |
|
1827 |
@interface FBSDKAppLink : NSObject <FBSDKAppLink> |
|
1828 |
/// The URL from which this FBSDKAppLink was derived |
|
1829 |
@property (nonatomic, readonly, copy) NSURL * _Nullable sourceURL; |
|
1830 |
/// The ordered list of targets applicable to this platform that will be used |
|
1831 |
/// for navigation. |
|
1832 |
@property (nonatomic, readonly, copy) NSArray<id <FBSDKAppLinkTarget>> * _Nonnull targets; |
|
1833 |
/// The fallback web URL to use if no targets are installed on this device. |
|
1834 |
@property (nonatomic, readonly, copy) NSURL * _Nullable webURL; |
|
1835 |
/// Internal property exposed to facilitate transition to Swift. |
|
1836 |
/// API Subject to change or removal without warning. Do not use. |
|
1837 |
/// <blockquote> |
|
1838 |
/// Warning: INTERNAL - DO NOT USE |
|
1839 |
/// |
|
1840 |
/// </blockquote> |
|
1841 |
@property (nonatomic, getter=isBackToReferrer) BOOL backToReferrer; |
|
1842 |
/// Creates an AppLink with the given list of AppLinkTargets and target URL. |
|
1843 |
/// Generally, this will only be used by implementers of the AppLinkResolving protocol, |
|
1844 |
/// as these implementers will produce App Link metadata for a given URL. |
|
1845 |
/// \param sourceURL The <em>URL</em> from which this App Link is derived. |
|
1846 |
/// |
|
1847 |
/// \param targets An ordered list of AppLinkTargets for this platform derived from App Link metadata. |
|
1848 |
/// |
|
1849 |
/// \param webURL The fallback web URL, if any, for the app link. |
|
1850 |
/// |
|
1851 |
- (nonnull instancetype)initWithSourceURL:(NSURL * _Nullable)sourceURL targets:(NSArray<id <FBSDKAppLinkTarget>> * _Nonnull)targets webURL:(NSURL * _Nullable)webURL; |
|
1852 |
/// Creates an AppLink with the given list of AppLinkTargets and target URL. |
|
1853 |
/// Generally, this will only be used by implementers of the AppLinkResolving protocol, |
|
1854 |
/// as these implementers will produce App Link metadata for a given URL. |
|
1855 |
/// \param sourceURL The <em>URL</em> from which this App Link is derived. |
|
1856 |
/// |
|
1857 |
/// \param targets An ordered list of AppLinkTargets for this platform derived from App Link metadata. |
|
1858 |
/// |
|
1859 |
/// \param webURL The fallback web URL, if any, for the app link. |
|
1860 |
/// |
|
1861 |
+ (id <FBSDKAppLink> _Nonnull)appLinkWithSourceURL:(NSURL * _Nullable)sourceURL targets:(NSArray<id <FBSDKAppLinkTarget>> * _Nonnull)targets webURL:(NSURL * _Nullable)webURL SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("\n Please use designated init to instantiate an AppLink. This method will be removed in future releases.\"\n "); |
|
1862 |
/// Internal method exposed to facilitate transition to Swift. |
|
1863 |
/// API Subject to change or removal without warning. Do not use. |
|
1864 |
/// <blockquote> |
|
1865 |
/// Warning: INTERNAL - DO NOT USE |
|
1866 |
/// |
|
1867 |
/// </blockquote> |
|
1868 |
- (nonnull instancetype)initWithSourceURL:(NSURL * _Nullable)sourceURL targets:(NSArray<id <FBSDKAppLinkTarget>> * _Nonnull)targets webURL:(NSURL * _Nullable)webURL isBackToReferrer:(BOOL)isBackToReferrer OBJC_DESIGNATED_INITIALIZER; |
|
1869 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1870 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1871 |
@end |
|
1872 |
|
|
1873 |
@protocol FBSDKAppLinkResolving; |
|
1874 |
@protocol FBSDKSettings; |
|
1875 |
@class NSError; |
|
1876 |
|
|
1877 |
/// Represents a pending request to navigate to an app link. Instead of simplying opening a URL, you can build custom requests with additional navigation and app data attached to them by creating an <code>AppLinkNavigation</code>. |
|
1878 |
SWIFT_CLASS_NAMED("AppLinkNavigation") SWIFT_AVAILABILITY(ios_app_extension,unavailable,message="Not available in app extension") |
|
1879 |
@interface FBSDKAppLinkNavigation : NSObject |
|
1880 |
/// The default resolver to be used for App Link resolution. If the developer has not set one explicitly, |
|
1881 |
/// a basic, built-in <code>WebViewAppLinkResolver</code> will be used. |
|
1882 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) id <FBSDKAppLinkResolving> _Nonnull defaultResolver;) |
|
1883 |
+ (id <FBSDKAppLinkResolving> _Nonnull)defaultResolver SWIFT_WARN_UNUSED_RESULT; |
|
1884 |
+ (void)setDefaultResolver:(id <FBSDKAppLinkResolving> _Nonnull)newValue; |
|
1885 |
/// The extras for the AppLinkNavigation. This will generally contain application-specific |
|
1886 |
/// data that should be passed along with the request, such as advertiser or affiliate IDs or |
|
1887 |
/// other such metadata relevant on this device. |
|
1888 |
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull extras; |
|
1889 |
/// The al_applink_data for the AppLinkNavigation. This will generally contain data common to |
|
1890 |
/// navigation attempts such as back-links, user agents, and other information that may be used |
|
1891 |
/// in routing and handling an App Link request. |
|
1892 |
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull appLinkData; |
|
1893 |
/// The AppLink to navigate to |
97fc0a
|
1894 |
@property (nonatomic, readonly, strong) FBSDKAppLink * _Nullable appLink; |
e0ec42
|
1895 |
/// Returns navigation type for current instance. It does not produce any side-effects as the <code>navigate</code> method. |
L |
1896 |
@property (nonatomic, readonly) FBSDKAppLinkNavigationType navigationType; |
|
1897 |
/// Creates an AppLinkNavigation with the given link, extras, and App Link data |
97fc0a
|
1898 |
- (nonnull instancetype)initWithAppLink:(FBSDKAppLink * _Nullable)appLink extras:(NSDictionary<NSString *, id> * _Nonnull)extras appLinkData:(NSDictionary<NSString *, id> * _Nonnull)appLinkData OBJC_DESIGNATED_INITIALIZER; |
e0ec42
|
1899 |
/// Creates an AppLinkNavigation with the given link, extras, App Link data and settings |
L |
1900 |
- (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 "); |
|
1901 |
/// 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. |
97fc0a
|
1902 |
+ (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 "); |
e0ec42
|
1903 |
/// 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:). |
L |
1904 |
+ (NSDictionary<NSString *, NSDictionary<NSString *, NSString *> *> * _Nonnull)callbackAppLinkDataForAppWithName:(NSString * _Nonnull)appName url:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
|
1905 |
/// Performs the navigation |
|
1906 |
- (FBSDKAppLinkNavigationType)navigate:(NSError * _Nullable * _Nullable)errorPointer SWIFT_WARN_UNUSED_RESULT; |
|
1907 |
/// Returns an AppLink for the given URL |
|
1908 |
+ (void)resolveAppLink:(NSURL * _Nonnull)destination handler:(FBSDKAppLinkBlock _Nonnull)handler; |
|
1909 |
/// Returns an AppLink for the given URL using the given App Link resolution strategy |
|
1910 |
+ (void)resolveAppLink:(NSURL * _Nonnull)destination resolver:(id <FBSDKAppLinkResolving> _Nonnull)resolver handler:(FBSDKAppLinkBlock _Nonnull)handler; |
|
1911 |
/// Navigates to an AppLink and returns whether it opened in-app or in-browser |
|
1912 |
+ (FBSDKAppLinkNavigationType)navigateToAppLink:(FBSDKAppLink * _Nonnull)appLink error:(NSError * _Nullable * _Nullable)errorPointer SWIFT_WARN_UNUSED_RESULT; |
|
1913 |
/// Returns an AppLinkNavigationType based on a FBSDKAppLink. |
|
1914 |
/// It’s essentially a no-side-effect version of navigateToAppLink:error:, |
|
1915 |
/// allowing apps to determine flow based on the link type (e.g. open an |
|
1916 |
/// internal web view instead of going straight to the browser for regular links.) |
|
1917 |
+ (FBSDKAppLinkNavigationType)navigationTypeForLink:(FBSDKAppLink * _Nonnull)appLink SWIFT_WARN_UNUSED_RESULT; |
|
1918 |
/// Navigates to a URL (an asynchronous action) and returns a NavigationType |
|
1919 |
+ (void)navigateToURL:(NSURL * _Nonnull)destination handler:(FBSDKAppLinkNavigationBlock _Nonnull)handler; |
|
1920 |
/// Navigates to a URL (an asynchronous action) using the given App Link resolution |
|
1921 |
/// strategy and returns a NavigationType |
|
1922 |
+ (void)navigateToURL:(NSURL * _Nonnull)destination resolver:(id <FBSDKAppLinkResolving> _Nonnull)resolver handler:(FBSDKAppLinkNavigationBlock _Nonnull)handler; |
|
1923 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1924 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1925 |
@end |
|
1926 |
|
|
1927 |
|
|
1928 |
|
|
1929 |
/// Provides an implementation of the AppLinkResolving protocol that uses the Facebook App Link |
|
1930 |
/// Index API to resolve App Links given a URL. It also provides an additional helper method that can resolve |
|
1931 |
/// multiple App Links in a single call. |
|
1932 |
SWIFT_CLASS_NAMED("AppLinkResolver") |
|
1933 |
@interface FBSDKAppLinkResolver : NSObject <FBSDKAppLinkResolving> |
|
1934 |
- (void)appLinkFromURL:(NSURL * _Nonnull)url handler:(FBSDKAppLinkBlock _Nonnull)handler; |
|
1935 |
/// Asynchronously resolves App Link data for a given array of URLs. |
|
1936 |
/// @param urls The URLs to resolve into an App Link. |
|
1937 |
/// @param handler The completion block that will return an App Link for the given URL. |
|
1938 |
- (void)appLinksFrom:(NSArray<NSURL *> * _Nonnull)urls handler:(FBSDKAppLinksBlock _Nonnull)handler SWIFT_AVAILABILITY(ios_app_extension,unavailable,message="Not available in app extension"); |
|
1939 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1940 |
@end |
|
1941 |
|
|
1942 |
|
|
1943 |
|
|
1944 |
/// Represents a target defined in App Link metadata, consisting of at least |
|
1945 |
/// a URL, and optionally an App Store ID and name. |
|
1946 |
SWIFT_CLASS_NAMED("AppLinkTarget") |
|
1947 |
@interface FBSDKAppLinkTarget : NSObject <FBSDKAppLinkTarget> |
|
1948 |
/// The URL prefix for this app link target |
|
1949 |
@property (nonatomic, readonly, copy) NSURL * _Nullable URL; |
|
1950 |
/// The app ID for the app store |
|
1951 |
@property (nonatomic, readonly, copy) NSString * _Nullable appStoreId; |
|
1952 |
/// The name of the app |
|
1953 |
@property (nonatomic, readonly, copy) NSString * _Nonnull appName; |
|
1954 |
/// Creates a AppLinkTarget with the given app site and target URL. |
|
1955 |
- (nonnull instancetype)initWithURL:(NSURL * _Nullable)url appStoreId:(NSString * _Nullable)appStoreId appName:(NSString * _Nonnull)appName OBJC_DESIGNATED_INITIALIZER; |
|
1956 |
/// Creates a AppLinkTarget with the given app site and target URL. |
|
1957 |
+ (FBSDKAppLinkTarget * _Nonnull)appLinkTargetWithURL:(NSURL * _Nullable)url appStoreId:(NSString * _Nullable)appStoreId appName:(NSString * _Nonnull)appName SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("\n Please use designated init to instantiate an AppLinkTarget. This method will be removed in future releases.\"\n "); |
|
1958 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1959 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1960 |
@end |
|
1961 |
|
|
1962 |
@class UIApplication; |
|
1963 |
@class NSUserActivity; |
|
1964 |
@protocol FBSDKApplicationObserving; |
|
1965 |
|
|
1966 |
/// An <code>ApplicationDelegate</code> is designed to post-process the results from Facebook Login |
|
1967 |
/// or Facebook Dialogs (or any action that requires switching over to the native Facebook |
|
1968 |
/// app or Safari). |
|
1969 |
/// The methods in this class are designed to mirror those in <code>UIApplicationDelegate</code>, and you |
|
1970 |
/// should call them in the respective methods in your application delegate implementation. |
|
1971 |
SWIFT_CLASS_NAMED("ApplicationDelegate") |
|
1972 |
@interface FBSDKApplicationDelegate : NSObject |
|
1973 |
/// Gets the singleton instance. |
|
1974 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKApplicationDelegate * _Nonnull sharedInstance;) |
|
1975 |
+ (FBSDKApplicationDelegate * _Nonnull)sharedInstance SWIFT_WARN_UNUSED_RESULT; |
|
1976 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1977 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1978 |
/// Initializes the SDK. |
|
1979 |
/// If you are using the SDK within the context of the <code>UIApplication</code> lifecycle, do not use this method. |
|
1980 |
/// Instead use <code>application(_:didFinishLaunchingWithOptions:)</code>. |
|
1981 |
/// As part of SDK initialization, basic auto logging of app events will occur, this can be |
|
1982 |
/// controlled via the ‘FacebookAutoLogAppEventsEnabled’ key in your project’s Info.plist file. |
|
1983 |
- (void)initializeSDK; |
|
1984 |
/// Call this method from the <code>UIApplicationDelegate.application(_:continue:restorationHandler:)</code> method |
|
1985 |
/// of your application delegate. It should be invoked in order to properly process the web URL (universal link) |
|
1986 |
/// once the end user is redirected to your app. |
|
1987 |
/// \param application The application as passed to `UIApplicationDelegate.application(_:continue:restorationHandler:). |
|
1988 |
/// |
|
1989 |
/// \param userActivity The user activity as passed to <code>UIApplicationDelegate.application(_:continue:restorationHandler:)</code>. |
|
1990 |
/// |
|
1991 |
/// |
|
1992 |
/// returns: |
|
1993 |
/// <code>true</code> if the URL was intended for the Facebook SDK, <code>false</code> if not. |
|
1994 |
- (BOOL)application:(UIApplication * _Nonnull)application continueUserActivity:(NSUserActivity * _Nonnull)userActivity; |
|
1995 |
/// Call this method from the <code>UIApplicationDelegate.application(_:open:options:)</code> method |
|
1996 |
/// of your application delegate. It should be invoked for the proper processing of responses during interaction |
|
1997 |
/// with the native Facebook app or Safari as part of an SSO authorization flow or Facebook dialogs. |
|
1998 |
/// \param application The application as passed to <code>UIApplicationDelegate.application(_:open:options:)</code>. |
|
1999 |
/// |
|
2000 |
/// \param url The URL as passed to <code>UIApplicationDelegate.application(_:open:options:)</code>. |
|
2001 |
/// |
|
2002 |
/// \param options The options dictionary as passed to <code>UIApplicationDelegate.application(_:open:options:)</code>. |
|
2003 |
/// |
|
2004 |
/// |
|
2005 |
/// returns: |
|
2006 |
/// <code>true</code> if the URL was intended for the Facebook SDK, <code>false</code> if not. |
|
2007 |
- (BOOL)application:(UIApplication * _Nonnull)application openURL:(NSURL * _Nonnull)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> * _Nonnull)options; |
|
2008 |
/// Call this method from the <code>UIApplicationDelegate.application(_:openL:sourceApplication:annotation:)</code> method |
|
2009 |
/// of your application delegate. It should be invoked for the proper processing of responses during interaction |
|
2010 |
/// with the native Facebook app or Safari as part of an SSO authorization flow or Facebook dialogs. |
|
2011 |
/// \param application The application as passed to <code>UIApplicationDelegate.application(_:open:sourceApplication:annotation:)</code>. |
|
2012 |
/// |
|
2013 |
/// \param url The URL as passed to <code>UIApplicationDelegate.application(_:open:sourceApplication:annotation:)</code>. |
|
2014 |
/// |
|
2015 |
/// \param sourceApplication The source application as passed to <code>UIApplicationDelegate.application(_:open:sourceApplication:annotation:)</code>. |
|
2016 |
/// |
|
2017 |
/// \param annotation The annotation as passed to <code>UIApplicationDelegate.application(_:open:sourceApplication:annotation:)</code>. |
|
2018 |
/// |
|
2019 |
/// |
|
2020 |
/// returns: |
|
2021 |
/// <code>true</code> if the URL was intended for the Facebook SDK, <code>false</code> if not. |
|
2022 |
- (BOOL)application:(UIApplication * _Nonnull)application openURL:(NSURL * _Nonnull)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation; |
|
2023 |
/// Call this method from the <code>UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:)</code> method |
|
2024 |
/// of your application delegate. It should be invoked for the proper use of the Facebook SDK. |
|
2025 |
/// As part of SDK initialization, basic auto-logging of app events will occur; this can be |
|
2026 |
/// controlled via the <code>FacebookAutoLogAppEventsEnabled</code> key in the project’s Info.plist file. |
|
2027 |
/// \param application The application as passed to <code>UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:)</code>. |
|
2028 |
/// |
|
2029 |
/// \param launchOptions The launch options as passed to <code>UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:)</code>. |
|
2030 |
/// |
|
2031 |
/// |
|
2032 |
/// returns: |
97fc0a
|
2033 |
/// <code>true</code> |
e0ec42
|
2034 |
- (BOOL)application:(UIApplication * _Nonnull)application didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> * _Nullable)launchOptions; |
L |
2035 |
/// Adds an observer that will be informed about application lifecycle events. |
|
2036 |
/// note: |
|
2037 |
/// Observers are weakly held |
|
2038 |
- (void)addObserver:(id <FBSDKApplicationObserving> _Nonnull)observer; |
|
2039 |
/// Removes an observer so that it will no longer be informed about application lifecycle events. |
|
2040 |
- (void)removeObserver:(id <FBSDKApplicationObserving> _Nonnull)observer; |
|
2041 |
@end |
|
2042 |
|
|
2043 |
|
|
2044 |
SWIFT_CLASS_NAMED("AuthenticationTokenClaims") |
|
2045 |
@interface FBSDKAuthenticationTokenClaims : NSObject |
|
2046 |
/// Internal method exposed to facilitate transition to Swift. |
|
2047 |
/// API Subject to change or removal without warning. Do not use. |
|
2048 |
/// @warning INTERNAL - DO NOT USE |
|
2049 |
- (nullable instancetype)initWithEncodedClaims:(NSString * _Nonnull)encodedClaims nonce:(NSString * _Nonnull)expectedNonce; |
|
2050 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
2051 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
2052 |
@end |
|
2053 |
|
|
2054 |
|
|
2055 |
@protocol FBSDKGraphRequestFactory; |
|
2056 |
|
|
2057 |
SWIFT_PROTOCOL_NAMED("CAPIReporter") |
|
2058 |
@protocol FBSDKCAPIReporter |
|
2059 |
- (void)enable; |
|
2060 |
- (void)configureWithFactory:(id <FBSDKGraphRequestFactory> _Nonnull)factory settings:(id <FBSDKSettings> _Nonnull)settings; |
|
2061 |
- (void)recordEvent:(NSDictionary<NSString *, id> * _Nonnull)parameters; |
|
2062 |
@end |
|
2063 |
|
|
2064 |
@protocol FBSDKInternalURLOpener; |
|
2065 |
|
|
2066 |
/// Internal type exposed to facilitate transition to Swift. |
|
2067 |
/// API Subject to change or removal without warning. Do not use. |
|
2068 |
/// @warning INTERNAL - DO NOT USE |
|
2069 |
SWIFT_CLASS("_TtC12FBSDKCoreKit17CoreUIApplication") |
|
2070 |
@interface CoreUIApplication : NSObject |
|
2071 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) id <FBSDKInternalURLOpener> _Nonnull shared;) |
|
2072 |
+ (id <FBSDKInternalURLOpener> _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
|
2073 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2074 |
@end |
|
2075 |
|
|
2076 |
@class UIImage; |
|
2077 |
@class UIColor; |
|
2078 |
|
|
2079 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2080 |
/// API Subject to change or removal without warning. Do not use. |
|
2081 |
/// @warning INTERNAL - DO NOT USE |
|
2082 |
SWIFT_CLASS_NAMED("FBIcon") |
|
2083 |
@interface FBSDKIcon : NSObject |
|
2084 |
- (CGPathRef _Nullable)pathWith:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
2085 |
- (UIImage * _Nullable)imageWithSize:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
2086 |
- (UIImage * _Nullable)imageWithSize:(CGSize)size color:(UIColor * _Nonnull)color SWIFT_WARN_UNUSED_RESULT; |
|
2087 |
- (UIImage * _Nullable)imageWithSize:(CGSize)size scale:(CGFloat)scale color:(UIColor * _Nonnull)color SWIFT_WARN_UNUSED_RESULT; |
|
2088 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2089 |
@end |
|
2090 |
|
|
2091 |
enum FBSDKProfilePictureMode : NSUInteger; |
|
2092 |
@class FBSDKProfile; |
|
2093 |
@class NSCoder; |
|
2094 |
|
|
2095 |
/// A view to display a profile picture. |
|
2096 |
SWIFT_CLASS_NAMED("FBProfilePictureView") |
|
2097 |
@interface FBSDKProfilePictureView : UIView |
|
2098 |
/// The mode for the receiver to determine the aspect ratio of the source image. |
|
2099 |
@property (nonatomic) enum FBSDKProfilePictureMode pictureMode; |
|
2100 |
/// The profile ID to show the picture for. |
|
2101 |
@property (nonatomic, copy) NSString * _Nonnull profileID; |
|
2102 |
@property (nonatomic) CGRect bounds; |
|
2103 |
@property (nonatomic) UIViewContentMode contentMode; |
|
2104 |
/// Create a new instance. |
|
2105 |
/// \param frame Frame rectangle for the view. |
|
2106 |
/// |
|
2107 |
/// \param profile Optional profile to display a picture for. |
|
2108 |
/// |
|
2109 |
- (nonnull instancetype)initWith:(CGRect)frame profile:(FBSDKProfile * _Nullable)profile OBJC_DESIGNATED_INITIALIZER; |
|
2110 |
/// Create a new instance. |
|
2111 |
/// \param profile Optional profile to display a picture for. |
|
2112 |
/// |
|
2113 |
- (nonnull instancetype)initWithProfile:(FBSDKProfile * _Nullable)profile; |
|
2114 |
/// Initializes and returns a newly allocated view object with the specified frame rectangle. |
|
2115 |
/// \param frame The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. |
|
2116 |
/// This method uses the frame rectangle to set the center and bounds properties accordingly. |
|
2117 |
/// |
|
2118 |
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; |
|
2119 |
/// Initializes and returns a newly allocated view object from the specified coder. |
|
2120 |
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; |
|
2121 |
/// Explicitly marks the receiver as needing to update the image. |
|
2122 |
/// This method is called whenever any properties that affect the source image are modified, but this can also |
|
2123 |
/// be used to trigger a manual update of the image if it needs to be re-downloaded. |
|
2124 |
- (void)setNeedsImageUpdate; |
|
2125 |
@end |
|
2126 |
|
|
2127 |
|
|
2128 |
SWIFT_CLASS("_TtC12FBSDKCoreKit25FBSDKAppEventsCAPIManager") |
|
2129 |
@interface FBSDKAppEventsCAPIManager : NSObject <FBSDKCAPIReporter> |
|
2130 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKAppEventsCAPIManager * _Nonnull shared;) |
|
2131 |
+ (FBSDKAppEventsCAPIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
|
2132 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2133 |
- (void)configureWithFactory:(id <FBSDKGraphRequestFactory> _Nonnull)factory settings:(id <FBSDKSettings> _Nonnull)settings; |
|
2134 |
- (void)enable; |
|
2135 |
- (void)recordEvent:(NSDictionary<NSString *, id> * _Nonnull)parameters; |
|
2136 |
@end |
|
2137 |
|
|
2138 |
|
|
2139 |
SWIFT_CLASS("_TtC12FBSDKCoreKit35FBSDKTransformerGraphRequestFactory") |
|
2140 |
@interface FBSDKTransformerGraphRequestFactory : NSObject |
|
2141 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKTransformerGraphRequestFactory * _Nonnull shared;) |
|
2142 |
+ (FBSDKTransformerGraphRequestFactory * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
|
2143 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2144 |
- (void)configureWithDatasetID:(NSString * _Nonnull)datasetID url:(NSString * _Nonnull)url accessKey:(NSString * _Nonnull)accessKey; |
|
2145 |
- (void)callCapiGatewayAPIWith:(NSDictionary<NSString *, id> * _Nonnull)parameters userAgent:(NSString * _Nonnull)userAgent; |
|
2146 |
@end |
|
2147 |
|
97fc0a
|
2148 |
|
L |
2149 |
SWIFT_PROTOCOL_NAMED("MACARuleMatching") |
|
2150 |
@protocol FBSDKMACARuleMatching |
|
2151 |
- (void)enable; |
|
2152 |
- (NSDictionary * _Nullable)processParameters:(NSDictionary * _Nullable)params event:(NSString * _Nullable)event SWIFT_WARN_UNUSED_RESULT; |
|
2153 |
@end |
|
2154 |
|
e0ec42
|
2155 |
@class NSDate; |
L |
2156 |
@class FBSDKUserAgeRange; |
|
2157 |
@class FBSDKLocation; |
|
2158 |
|
|
2159 |
/// Represents an immutable Facebook profile. |
|
2160 |
/// This class provides a global current profile instance to more easily |
|
2161 |
/// add social context to your application. When the profile changes, a notification is |
|
2162 |
/// posted so that you can update relevant parts of your UI. It is persisted to <code>UserDefaults.standard</code>. |
|
2163 |
/// Typically, you will want to set <code>enableUpdatesOnAccessTokenChange</code> to <code>true</code> so that |
|
2164 |
/// it automatically observes changes to <code>AccessToken.current</code>. |
|
2165 |
/// You can use this class to build your own <code>ProfilePictureView</code> or in place of typical requests to the <code>/me</code> endpoint. |
|
2166 |
SWIFT_CLASS_NAMED("Profile") |
|
2167 |
@interface FBSDKProfile : NSObject |
|
2168 |
/// The user identifier. |
|
2169 |
@property (nonatomic, readonly, copy) FBSDKUserIdentifier _Nonnull userID; |
|
2170 |
/// The user’s first name. |
|
2171 |
@property (nonatomic, readonly, copy) NSString * _Nullable firstName; |
|
2172 |
/// The user’s middle name. |
|
2173 |
@property (nonatomic, readonly, copy) NSString * _Nullable middleName; |
|
2174 |
/// The user’s last name. |
|
2175 |
@property (nonatomic, readonly, copy) NSString * _Nullable lastName; |
|
2176 |
/// The user’s complete name. |
|
2177 |
@property (nonatomic, readonly, copy) NSString * _Nullable name; |
|
2178 |
/// A URL to the user’s profile. |
|
2179 |
/// important: |
|
2180 |
/// This field will only be populated if your user has granted your application the <code>user_link</code> permission. |
|
2181 |
/// Consider using <code>AppLinkResolver</code> to resolve this URL to an app link in order to link directly to |
|
2182 |
/// the user’s profile in the Facebook app. |
|
2183 |
@property (nonatomic, readonly, copy) NSURL * _Nullable linkURL; |
|
2184 |
/// The last time the profile data was fetched. |
|
2185 |
@property (nonatomic, readonly, copy) NSDate * _Nonnull refreshDate; |
|
2186 |
/// A URL to use for fetching the user’s profile image. |
|
2187 |
@property (nonatomic, readonly, copy) NSURL * _Nullable imageURL; |
|
2188 |
/// The user’s email address. |
|
2189 |
/// important: |
|
2190 |
/// This field will only be populated if your user has granted your application the <code>email</code> permission. |
|
2191 |
@property (nonatomic, readonly, copy) NSString * _Nullable email; |
|
2192 |
/// A list of identifiers of the user’s friends. |
|
2193 |
/// important: |
|
2194 |
/// This field will only be populated if your user has granted your application |
|
2195 |
/// the <code>user_friends</code> permission. |
|
2196 |
@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nullable friendIDs; |
|
2197 |
/// The user’s birthday. |
|
2198 |
/// important: |
|
2199 |
/// This field will only be populated if your user has granted your application |
|
2200 |
/// the <code>user_birthday</code> permission. |
|
2201 |
@property (nonatomic, readonly, copy) NSDate * _Nullable birthday; |
|
2202 |
/// The user’s age range. |
|
2203 |
/// important: |
|
2204 |
/// This field will only be populated if your user has granted your application |
|
2205 |
/// the <code>user_age_range</code> permission. |
|
2206 |
@property (nonatomic, readonly, strong) FBSDKUserAgeRange * _Nullable ageRange; |
|
2207 |
/// The user’s hometown. |
|
2208 |
/// important: |
|
2209 |
/// This field will only be populated if your user has granted your application |
|
2210 |
/// the <code>user_hometown</code> permission. |
|
2211 |
@property (nonatomic, readonly, strong) FBSDKLocation * _Nullable hometown; |
|
2212 |
/// The user’s location. |
|
2213 |
/// important: |
|
2214 |
/// This field will only be populated if your user has granted your application |
|
2215 |
/// the <code>user_location</code> permission. |
|
2216 |
@property (nonatomic, readonly, strong) FBSDKLocation * _Nullable location; |
|
2217 |
/// The user’s gender. |
|
2218 |
/// important: |
|
2219 |
/// This field will only be populated if your user has granted your application |
|
2220 |
/// the <code>user_gender</code> permission. |
|
2221 |
@property (nonatomic, readonly, copy) NSString * _Nullable gender; |
97fc0a
|
2222 |
/// The user’s granted permissions. |
L |
2223 |
/// important: |
|
2224 |
/// This field will only be populated if your user has granted permissions to your |
|
2225 |
/// application. |
|
2226 |
@property (nonatomic, readonly, copy) NSSet<NSString *> * _Nullable permissions; |
e0ec42
|
2227 |
/// Indicates whether this type will automatically observe access token changes |
L |
2228 |
/// (via <code>AccessTokenDidChange</code> notifications). |
|
2229 |
/// If observing changes, this class will issue a Graph request for public profile data when the current token’s user |
|
2230 |
/// identifier differs from the current profile. You can observe profile changes via <code>ProfileDidChange</code> notifications |
|
2231 |
/// to handle an updated profile. |
|
2232 |
/// note: |
|
2233 |
/// If the current access token is cleared, the current profile instance remains available. It’s also possible |
|
2234 |
/// for <code>current</code> to return <code>nil</code> until the data is fetched. |
|
2235 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL isUpdatedWithAccessTokenChange;) |
|
2236 |
+ (BOOL)isUpdatedWithAccessTokenChange SWIFT_WARN_UNUSED_RESULT; |
|
2237 |
+ (void)setIsUpdatedWithAccessTokenChange:(BOOL)value; |
|
2238 |
/// Creates a new profile. |
|
2239 |
/// \param userID The user’s identifier. |
|
2240 |
/// |
|
2241 |
/// \param firstName The user’s first name. Defaults to <code>nil</code>. |
|
2242 |
/// |
|
2243 |
/// \param middleName The user’s middle name. Defaults to <code>nil</code>. |
|
2244 |
/// |
|
2245 |
/// \param lastName The user’s last name. Defaults to <code>nil</code>. |
|
2246 |
/// |
|
2247 |
/// \param name The user’s complete name. Defaults to <code>nil</code>. |
|
2248 |
/// |
|
2249 |
/// \param linkURL The link for the profile. Defaults to <code>nil</code>. |
|
2250 |
/// |
|
2251 |
/// \param refreshDate The date the profile was fetched. Defaults to the time of instantiation. |
|
2252 |
/// |
97fc0a
|
2253 |
/// \param permissions The user’s granted permissions. Defaults to <code>nil</code>. |
L |
2254 |
/// |
|
2255 |
- (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; |
e0ec42
|
2256 |
/// Creates a new profile. |
L |
2257 |
/// \param userID The user’s identifier. Defaults to <code>nil</code>. |
|
2258 |
/// |
|
2259 |
/// \param firstName The user’s first name. Defaults to <code>nil</code>. |
|
2260 |
/// |
|
2261 |
/// \param middleName The user’s middle name. Defaults to <code>nil</code>. |
|
2262 |
/// |
|
2263 |
/// \param lastName The user’s last name. Defaults to <code>nil</code>. |
|
2264 |
/// |
|
2265 |
/// \param name The user’s complete name. Defaults to <code>nil</code>. |
|
2266 |
/// |
|
2267 |
/// \param linkURL The link for this profile. Defaults to <code>nil</code>. |
|
2268 |
/// |
|
2269 |
/// \param refreshDate The date this profile was fetched. Defaults to the time of instantiation. |
|
2270 |
/// |
|
2271 |
/// \param imageURL A URL to use for fetching a user’s profile image. |
|
2272 |
/// |
|
2273 |
/// \param email The user’s email address. Defaults to <code>nil</code>. |
|
2274 |
/// |
|
2275 |
/// \param friendIDs A list of identifiers for the user’s friends. Defaults to <code>nil</code>. |
|
2276 |
/// |
|
2277 |
/// \param birthday The user’s birthday. Defaults to <code>nil</code>. |
|
2278 |
/// |
|
2279 |
/// \param ageRange The user’s age range. Defaults to <code>nil</code>. |
|
2280 |
/// |
|
2281 |
/// \param hometown The user’s hometown. Defaults to <code>nil</code>. |
|
2282 |
/// |
|
2283 |
/// \param location The user’s location. Defaults to <code>nil</code>. |
|
2284 |
/// |
|
2285 |
/// \param gender The user’s gender. Defaults to <code>nil</code>. |
|
2286 |
/// |
97fc0a
|
2287 |
/// \param permissions The user’s granted permissions. Defaults to <code>nil</code>. |
L |
2288 |
/// |
|
2289 |
- (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; |
e0ec42
|
2290 |
/// Creates a new profile. |
97fc0a
|
2291 |
/// <ul> |
L |
2292 |
/// <li> |
|
2293 |
/// permissions: The user’s granted permissions. Defaults to <code>nil</code>. |
|
2294 |
/// </li> |
|
2295 |
/// </ul> |
e0ec42
|
2296 |
/// \param userID The user’s identifier. Defaults to <code>nil</code>. |
L |
2297 |
/// |
|
2298 |
/// \param firstName The user’s first name. Defaults to <code>nil</code>. |
|
2299 |
/// |
|
2300 |
/// \param middleName The user’s middle name. Defaults to <code>nil</code>. |
|
2301 |
/// |
|
2302 |
/// \param lastName The user’s last name. Defaults to <code>nil</code>. |
|
2303 |
/// |
|
2304 |
/// \param name The user’s complete name. Defaults to <code>nil</code>. |
|
2305 |
/// |
|
2306 |
/// \param linkURL The link for the profile. Defaults to <code>nil</code>. |
|
2307 |
/// |
|
2308 |
/// \param refreshDate The date the profile was fetched. Defaults to the time of instantiation. |
|
2309 |
/// |
|
2310 |
/// \param imageURL A URL to use for fetching the user’s profile image Defaults to <code>nil</code>. |
|
2311 |
/// |
|
2312 |
/// \param email The user’s email address. Defaults to <code>nil</code>. |
|
2313 |
/// |
|
2314 |
/// \param friendIDs A list of identifiers for the user’s friends. Defaults to <code>nil</code>. |
|
2315 |
/// |
|
2316 |
/// \param birthday The user’s birthday. Defaults to <code>nil</code>. |
|
2317 |
/// |
|
2318 |
/// \param ageRange The user’s age range. Defaults to <code>nil</code>. |
|
2319 |
/// |
|
2320 |
/// \param hometown The user’s hometown. Defaults to <code>nil</code>. |
|
2321 |
/// |
|
2322 |
/// \param location The user’s location. Defaults to <code>nil</code>. |
|
2323 |
/// |
|
2324 |
/// \param gender The user’s gender. Defaults to <code>nil</code>. |
|
2325 |
/// |
|
2326 |
/// \param isLimited Indicates whether the information provided is incomplete in some way. |
|
2327 |
/// When <code>true</code>, <code>loadCurrentProfile(completion:):</code> will assume the profile is incomplete and disregard |
|
2328 |
/// any cached profile. Defaults to <code>false</code>. |
|
2329 |
/// |
97fc0a
|
2330 |
- (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; |
e0ec42
|
2331 |
/// Indicates whether this type will automatically observe access token changes |
L |
2332 |
/// (via <code>AccessTokenDidChange</code> notifications). |
|
2333 |
/// If observing changes, this class will issue a Graph request for public profile data when the current token’s user |
|
2334 |
/// identifier differs from the current profile. You can observe profile changes via <code>ProfileDidChange</code> notifications |
|
2335 |
/// to handle an updated profile. |
|
2336 |
/// note: |
|
2337 |
/// If the current access token is cleared, the current profile instance remains available. It’s also possible |
|
2338 |
/// for <code>current</code> to return <code>nil</code> until the data is fetched. |
|
2339 |
+ (void)enableUpdatesOnAccessTokenChange:(BOOL)enabled SWIFT_DEPRECATED_MSG("This method is deprecated and will be removed in the next major release. Use `isUpdatedWithAccessTokenChange` instead."); |
|
2340 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
2341 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
2342 |
@end |
|
2343 |
|
|
2344 |
|
|
2345 |
@interface FBSDKProfile (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
2346 |
/// A convenience method for returning a complete <code>URL</code> for retrieving the user’s profile image. |
|
2347 |
/// \param pictureMode The picture mode. |
|
2348 |
/// |
|
2349 |
/// \param size The height and width. This will be rounded to integer precision. |
|
2350 |
/// |
|
2351 |
- (NSURL * _Nullable)imageURLForPictureMode:(enum FBSDKProfilePictureMode)pictureMode size:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
2352 |
@end |
|
2353 |
|
|
2354 |
/// Defines the aspect ratio mode for the source image of the profile picture. |
|
2355 |
typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKProfilePictureMode, "PictureMode", open) { |
|
2356 |
/// A square cropped version of the image will be included in the view. |
|
2357 |
FBSDKProfilePictureModeSquare = 0, |
|
2358 |
/// The original picture’s aspect ratio will be used for the source image in the view. |
|
2359 |
FBSDKProfilePictureModeNormal = 1, |
|
2360 |
/// The original picture’s aspect ratio will be used for the source image in the view. |
|
2361 |
FBSDKProfilePictureModeAlbum = 2, |
|
2362 |
/// The original picture’s aspect ratio will be used for the source image in the view. |
|
2363 |
FBSDKProfilePictureModeSmall = 3, |
|
2364 |
/// The original picture’s aspect ratio will be used for the source image in the view. |
|
2365 |
FBSDKProfilePictureModeLarge = 4, |
|
2366 |
}; |
|
2367 |
|
|
2368 |
|
|
2369 |
|
|
2370 |
/// Internal type exposed to facilitate transition to Swift. |
|
2371 |
/// API Subject to change or removal without warning. Do not use. |
|
2372 |
/// @warning INTERNAL - DO NOT USE |
|
2373 |
SWIFT_PROTOCOL_NAMED("ProfileProviding") |
|
2374 |
@protocol FBSDKProfileProviding |
|
2375 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) FBSDKProfile * _Nullable currentProfile;) |
|
2376 |
+ (FBSDKProfile * _Nullable)currentProfile SWIFT_WARN_UNUSED_RESULT; |
|
2377 |
+ (void)setCurrentProfile:(FBSDKProfile * _Nullable)newValue; |
|
2378 |
+ (FBSDKProfile * _Nullable)fetchCachedProfile SWIFT_WARN_UNUSED_RESULT; |
|
2379 |
@end |
|
2380 |
|
|
2381 |
|
|
2382 |
@interface FBSDKProfile (SWIFT_EXTENSION(FBSDKCoreKit)) <FBSDKProfileProviding> |
|
2383 |
/// The current profile. |
|
2384 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) FBSDKProfile * _Nullable currentProfile;) |
|
2385 |
+ (FBSDKProfile * _Nullable)currentProfile SWIFT_WARN_UNUSED_RESULT; |
|
2386 |
+ (void)setCurrentProfile:(FBSDKProfile * _Nullable)newValue; |
|
2387 |
+ (nullable instancetype)fetchCachedProfile SWIFT_WARN_UNUSED_RESULT; |
|
2388 |
@end |
|
2389 |
|
|
2390 |
|
|
2391 |
@interface FBSDKProfile (SWIFT_EXTENSION(FBSDKCoreKit)) <NSSecureCoding> |
|
2392 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;) |
|
2393 |
+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; |
|
2394 |
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)decoder; |
|
2395 |
- (void)encodeWithCoder:(NSCoder * _Nonnull)encoder; |
|
2396 |
@end |
|
2397 |
|
|
2398 |
|
|
2399 |
@interface FBSDKProfile (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
2400 |
/// Loads the current profile and passes it to the completion block. |
|
2401 |
/// note: |
|
2402 |
/// If the profile is already loaded, this method will call the completion block synchronously, otherwise it |
|
2403 |
/// will begin a graph request to update <code>current</code> and then call the completion block when finished. |
|
2404 |
/// <ul> |
|
2405 |
/// <li> |
|
2406 |
/// Parameter: completion The block to be executed once the profile is loaded. |
|
2407 |
/// </li> |
|
2408 |
/// </ul> |
|
2409 |
+ (void)loadCurrentProfileWithCompletion:(FBSDKProfileBlock _Nullable)completion; |
|
2410 |
@end |
|
2411 |
|
|
2412 |
|
|
2413 |
|
97fc0a
|
2414 |
SWIFT_CLASS_NAMED("ProtectedModeManager") |
L |
2415 |
@interface FBSDKProtectedModeManager : NSObject <FBSDKAppEventsParameterProcessing> |
|
2416 |
- (void)enable; |
|
2417 |
- (NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)processParameters:(NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)parameters eventName:(FBSDKAppEventName _Nullable)eventName SWIFT_WARN_UNUSED_RESULT; |
|
2418 |
+ (BOOL)isProtectedModeAppliedWithParameters:(NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)parameters SWIFT_WARN_UNUSED_RESULT; |
|
2419 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2420 |
@end |
|
2421 |
|
|
2422 |
|
|
2423 |
|
e0ec42
|
2424 |
/// Internal Type exposed to facilitate transition to Swift. |
L |
2425 |
/// API Subject to change or removal without warning. Do not use. |
|
2426 |
/// @warning INTERNAL - DO NOT USE |
|
2427 |
SWIFT_CLASS("_TtC12FBSDKCoreKit27ServerConfigurationProvider") |
|
2428 |
@interface ServerConfigurationProvider : NSObject |
|
2429 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2430 |
@end |
|
2431 |
|
|
2432 |
|
|
2433 |
/// Internal type exposed to facilitate transition to Swift. |
|
2434 |
/// API Subject to change or removal without warning. Do not use. |
|
2435 |
/// @warning INTERNAL - DO NOT USE |
|
2436 |
SWIFT_PROTOCOL_NAMED("SettingsProtocol") |
|
2437 |
@protocol FBSDKSettings |
|
2438 |
@property (nonatomic, copy) NSString * _Nullable appID; |
|
2439 |
@property (nonatomic, copy) NSString * _Nullable clientToken; |
|
2440 |
@property (nonatomic, copy) NSString * _Nullable userAgentSuffix; |
|
2441 |
@property (nonatomic, readonly, copy) NSString * _Nonnull sdkVersion; |
|
2442 |
@property (nonatomic, copy) NSString * _Nullable displayName; |
|
2443 |
@property (nonatomic, copy) NSString * _Nullable facebookDomainPart; |
|
2444 |
@property (nonatomic, copy) NSSet<FBSDKLoggingBehavior> * _Nonnull loggingBehaviors; |
|
2445 |
@property (nonatomic, copy) NSString * _Nullable appURLSchemeSuffix; |
|
2446 |
@property (nonatomic, readonly) BOOL isDataProcessingRestricted; |
|
2447 |
@property (nonatomic, readonly) BOOL isAutoLogAppEventsEnabled; |
|
2448 |
@property (nonatomic) BOOL codelessDebugLogEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isCodelessDebugLogEnabled` instead.\n "); |
|
2449 |
@property (nonatomic) BOOL isCodelessDebugLogEnabled; |
|
2450 |
@property (nonatomic) BOOL advertiserIDCollectionEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isAdvertiserIDCollectionEnabled` instead.\n "); |
|
2451 |
@property (nonatomic) BOOL isAdvertiserIDCollectionEnabled; |
|
2452 |
@property (nonatomic, readonly) BOOL isSetATETimeExceedsInstallTime SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isATETimeSufficientlyDelayed` instead.\n "); |
|
2453 |
@property (nonatomic, readonly) BOOL isATETimeSufficientlyDelayed; |
|
2454 |
@property (nonatomic, readonly) BOOL isSKAdNetworkReportEnabled; |
|
2455 |
@property (nonatomic, readonly) FBSDKAdvertisingTrackingStatus advertisingTrackingStatus; |
|
2456 |
@property (nonatomic, readonly, copy) NSDate * _Nullable installTimestamp; |
|
2457 |
@property (nonatomic, readonly, copy) NSDate * _Nullable advertiserTrackingEnabledTimestamp; |
|
2458 |
@property (nonatomic) BOOL isEventDataUsageLimited; |
|
2459 |
@property (nonatomic) BOOL shouldUseTokenOptimizations; |
|
2460 |
@property (nonatomic, copy) NSString * _Nonnull graphAPIVersion; |
|
2461 |
@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; |
|
2462 |
@property (nonatomic, readonly, copy) NSString * _Nullable graphAPIDebugParamValue SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `graphAPIDebugParameterValue` instead.\n "); |
|
2463 |
@property (nonatomic, readonly, copy) NSString * _Nullable graphAPIDebugParameterValue; |
|
2464 |
@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 "); |
|
2465 |
@property (nonatomic) BOOL isAdvertiserTrackingEnabled; |
|
2466 |
@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; |
|
2467 |
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable persistableDataProcessingOptions; |
97fc0a
|
2468 |
@property (nonatomic) BOOL isDomainErrorEnabled; |
e0ec42
|
2469 |
/// Sets the data processing options. |
L |
2470 |
/// \param options The list of options. |
|
2471 |
/// |
|
2472 |
- (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options; |
|
2473 |
/// Sets the data processing options. |
|
2474 |
/// \param options The list of the options. |
|
2475 |
/// |
|
2476 |
/// \param country The code for the country. |
|
2477 |
/// |
|
2478 |
/// \param state The code for the state. |
|
2479 |
/// |
|
2480 |
- (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options country:(int32_t)country state:(int32_t)state; |
|
2481 |
@end |
|
2482 |
|
|
2483 |
|
|
2484 |
SWIFT_CLASS_NAMED("Settings") |
|
2485 |
@interface FBSDKSettings : NSObject <FBSDKSettingsLogging, FBSDKSettings, FBSDKClientTokenProviding> |
|
2486 |
/// The shared settings instance. Prefer this and the exposed instance methods over the type properties and methods. |
|
2487 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKSettings * _Nonnull sharedSettings;) |
|
2488 |
+ (FBSDKSettings * _Nonnull)sharedSettings SWIFT_WARN_UNUSED_RESULT; |
|
2489 |
/// The Facebook SDK version in use. |
|
2490 |
@property (nonatomic, readonly, copy) NSString * _Nonnull sdkVersion; |
|
2491 |
/// The default Graph API version. |
|
2492 |
@property (nonatomic, readonly, copy) NSString * _Nonnull defaultGraphAPIVersion; |
|
2493 |
/// The quality of JPEG images sent to Facebook from the SDK expressed as a value from 0.0 to 1.0. |
|
2494 |
/// The default value is 0.9. |
|
2495 |
@property (nonatomic) CGFloat JPEGCompressionQuality; |
|
2496 |
/// Controls the automatic logging of basic app events such as <code>activateApp</code> and <code>deactivateApp</code>. |
|
2497 |
/// The default value is <code>true</code>. |
|
2498 |
@property (nonatomic) BOOL autoLogAppEventsEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isAutoLogAppEventsEnabled` instead.\n "); |
|
2499 |
/// Controls the automatic logging of basic app events such as <code>activateApp</code> and <code>deactivateApp</code>. |
|
2500 |
/// The default value is <code>true</code>. |
|
2501 |
@property (nonatomic) BOOL isAutoLogAppEventsEnabled; |
|
2502 |
/// Controls the <code>fb_codeless_debug</code> logging event. |
|
2503 |
/// The default value is <code>false</code>. |
|
2504 |
@property (nonatomic) BOOL codelessDebugLogEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isCodelessDebugLogEnabled` instead.\n "); |
|
2505 |
/// Controls the <code>fb_codeless_debug</code> logging event. |
|
2506 |
/// The default value is <code>false</code>. |
|
2507 |
@property (nonatomic) BOOL isCodelessDebugLogEnabled; |
|
2508 |
/// Controls the access to IDFA. |
|
2509 |
/// The default value is <code>true</code>. |
|
2510 |
@property (nonatomic) BOOL advertiserIDCollectionEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isAdvertiserIDCollectionEnabled` instead.\n "); |
|
2511 |
/// Controls the access to IDFA. |
|
2512 |
/// The default value is <code>true</code>. |
|
2513 |
@property (nonatomic) BOOL isAdvertiserIDCollectionEnabled; |
|
2514 |
/// Controls the SKAdNetwork report. |
|
2515 |
/// The default value is <code>true</code>. |
|
2516 |
@property (nonatomic) BOOL skAdNetworkReportEnabled SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isSKAdNetworkReportEnabled` instead.\n "); |
|
2517 |
/// Controls the SKAdNetwork report. |
|
2518 |
/// The default value is <code>true</code>. |
|
2519 |
@property (nonatomic) BOOL isSKAdNetworkReportEnabled; |
|
2520 |
/// Whether data such as that generated through <code>AppEvents</code> and sent to Facebook |
|
2521 |
/// should be restricted from being used for purposes other than analytics and conversions. |
|
2522 |
/// The default value is <code>false</code>. This value is stored on the device and persists across app launches. |
|
2523 |
@property (nonatomic) BOOL isEventDataUsageLimited; |
|
2524 |
/// Whether in-memory cached values should be used for expensive metadata fields, such as |
|
2525 |
/// carrier and advertiser ID, that are fetched on many <code>applicationDidBecomeActive</code> notifications. |
|
2526 |
/// The default value is <code>false</code>. This value is stored on the device and persists across app launches. |
|
2527 |
@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; |
|
2528 |
/// Controls error recovery for all <code>GraphRequest</code> instances created after the value is changed. |
|
2529 |
@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; |
|
2530 |
/// The Facebook App ID used by the SDK. |
|
2531 |
/// The default value will be read from the application’s plist (FacebookAppID). |
|
2532 |
@property (nonatomic, copy) NSString * _Nullable appID; |
|
2533 |
/// The default URL scheme suffix used for sessions. |
|
2534 |
/// The default value will be read from the application’s plist (FacebookUrlSchemeSuffix). |
|
2535 |
@property (nonatomic, copy) NSString * _Nullable appURLSchemeSuffix; |
|
2536 |
/// The client token needed for certain anonymous API calls (i.e., those made without a user-based access token). |
|
2537 |
/// An app’s client token can be found by navigating to https://developers.facebook.com/apps/YOUR-APP-ID |
|
2538 |
/// (replacing “YOUR-APP-ID” with your actual app ID), choosing “Settings->Advanced” and scrolling to the “Security”. |
|
2539 |
/// The default value will be read from the application’s plist (FacebookClientToken). |
|
2540 |
@property (nonatomic, copy) NSString * _Nullable clientToken; |
|
2541 |
/// The Facebook Display Name used by the SDK. |
|
2542 |
/// This should match the Display Name that has been set for the app with the corresponding Facebook App ID |
|
2543 |
/// in the Facebook App Dashboard. |
|
2544 |
/// The default value will be read from the application’s plist (FacebookDisplayName). |
|
2545 |
@property (nonatomic, copy) NSString * _Nullable displayName; |
|
2546 |
/// The Facebook domain part. This can be used to change the Facebook domain |
|
2547 |
/// (e.g. “beta”) so that requests will be sent to <code>graph.beta.facebook.com</code>. |
|
2548 |
/// The default value will be read from the application’s plist (FacebookDomainPart). |
|
2549 |
@property (nonatomic, copy) NSString * _Nullable facebookDomainPart; |
|
2550 |
/// Overrides the default Graph API version to use with <code>GraphRequest</code> instances. |
|
2551 |
/// The string should be of the form <code>"v2.7"</code>. |
|
2552 |
/// The default value is <code>defaultGraphAPIVersion</code>. |
|
2553 |
@property (nonatomic, copy) NSString * _Nonnull graphAPIVersion; |
|
2554 |
/// Internal property exposed to facilitate transition to Swift. |
|
2555 |
/// API Subject to change or removal without warning. Do not use. |
|
2556 |
/// @warning INTERNAL - DO NOT USE |
|
2557 |
@property (nonatomic, copy) NSString * _Nullable userAgentSuffix; |
|
2558 |
/// Controls the advertiser tracking status of the data sent to Facebook. |
|
2559 |
@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 "); |
|
2560 |
/// Controls the advertiser tracking status of the data sent to Facebook. |
|
2561 |
@property (nonatomic) BOOL isAdvertiserTrackingEnabled; |
|
2562 |
/// Internal property exposed to facilitate transition to Swift. |
|
2563 |
/// API Subject to change or removal without warning. Do not use. |
|
2564 |
/// @warning INTERNAL - DO NOT USE |
|
2565 |
@property (nonatomic) FBSDKAdvertisingTrackingStatus advertisingTrackingStatus; |
|
2566 |
/// Internal property exposed to facilitate transition to Swift. |
|
2567 |
/// API Subject to change or removal without warning. Do not use. |
|
2568 |
/// @warning INTERNAL - DO NOT USE |
|
2569 |
@property (nonatomic, readonly) BOOL isDataProcessingRestricted; |
|
2570 |
/// Internal property exposed to facilitate transition to Swift. |
|
2571 |
/// API Subject to change or removal without warning. Do not use. |
|
2572 |
/// @warning INTERNAL - DO NOT USE |
|
2573 |
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable persistableDataProcessingOptions; |
|
2574 |
/// Set the data processing options. |
|
2575 |
/// \param options The list of options. |
|
2576 |
/// |
|
2577 |
- (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options; |
|
2578 |
/// Sets the data processing options. |
97fc0a
|
2579 |
/// <ul> |
L |
2580 |
/// <li> |
|
2581 |
/// Parameters: |
|
2582 |
/// </li> |
|
2583 |
/// <li> |
|
2584 |
/// options The list of the options. |
|
2585 |
/// </li> |
|
2586 |
/// <li> |
|
2587 |
/// country The code for the country. |
|
2588 |
/// </li> |
|
2589 |
/// <li> |
|
2590 |
/// state The code for the state. |
|
2591 |
/// </li> |
|
2592 |
/// </ul> |
e0ec42
|
2593 |
- (void)setDataProcessingOptions:(NSArray<NSString *> * _Nullable)options country:(int32_t)country state:(int32_t)state; |
L |
2594 |
/// The current Facebook SDK logging behavior. This should consist of strings |
|
2595 |
/// defined as constants with <code>LoggingBehavior</code> that indicate what information should be logged. |
|
2596 |
/// Set to an empty set in order to disable all logging. |
|
2597 |
/// You can also define this via an array in your app’s plist with the key “FacebookLoggingBehavior”; or add/remove |
|
2598 |
/// individual values via <code>enableLoggingBehavior(_:)</code> or <code>disableLoggingBehavior(_:)</code> |
|
2599 |
/// The default value is <code>[.developerErrors]</code>. |
|
2600 |
@property (nonatomic, copy) NSSet<FBSDKLoggingBehavior> * _Nonnull loggingBehaviors; |
|
2601 |
/// Enable a particular Facebook SDK logging behavior. |
|
2602 |
/// \param loggingBehavior The logging behavior to enable. This should be a string constant defined |
|
2603 |
/// as a <code>LoggingBehavior</code>. |
|
2604 |
/// |
|
2605 |
- (void)enableLoggingBehavior:(FBSDKLoggingBehavior _Nonnull)loggingBehavior; |
|
2606 |
/// Disable a particular Facebook SDK logging behavior. |
|
2607 |
/// \param loggingBehavior The logging behavior to disable. This should be a string constant defined |
|
2608 |
/// as a <code>LoggingBehavior</code>. |
|
2609 |
/// |
|
2610 |
- (void)disableLoggingBehavior:(FBSDKLoggingBehavior _Nonnull)loggingBehavior; |
|
2611 |
/// Internal property exposed to facilitate transition to Swift. |
|
2612 |
/// API Subject to change or removal without warning. Do not use. |
|
2613 |
/// @warning INTERNAL - DO NOT USE |
|
2614 |
@property (nonatomic) BOOL shouldUseTokenOptimizations; |
|
2615 |
/// Internal property exposed to facilitate transition to Swift. |
|
2616 |
/// API Subject to change or removal without warning. Do not use. |
|
2617 |
/// @warning INTERNAL - DO NOT USE |
|
2618 |
@property (nonatomic, readonly) BOOL isSetATETimeExceedsInstallTime SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `isATETimeSufficientlyDelayed` instead.\n "); |
|
2619 |
/// Internal property exposed to facilitate transition to Swift. |
|
2620 |
/// API Subject to change or removal without warning. Do not use. |
|
2621 |
/// @warning INTERNAL - DO NOT USE |
|
2622 |
@property (nonatomic, readonly) BOOL isATETimeSufficientlyDelayed; |
|
2623 |
/// Internal property exposed to facilitate transition to Swift. |
|
2624 |
/// API Subject to change or removal without warning. Do not use. |
|
2625 |
/// @warning INTERNAL - DO NOT USE |
|
2626 |
@property (nonatomic, readonly, copy) NSDate * _Nullable installTimestamp; |
|
2627 |
/// Internal property exposed to facilitate transition to Swift. |
|
2628 |
/// API Subject to change or removal without warning. Do not use. |
|
2629 |
/// @warning INTERNAL - DO NOT USE |
|
2630 |
@property (nonatomic, readonly, copy) NSDate * _Nullable advertiserTrackingEnabledTimestamp; |
|
2631 |
/// Internal property exposed to facilitate transition to Swift. |
|
2632 |
/// API Subject to change or removal without warning. Do not use. |
|
2633 |
/// @warning INTERNAL - DO NOT USE |
|
2634 |
@property (nonatomic, readonly, copy) NSString * _Nullable graphAPIDebugParamValue SWIFT_DEPRECATED_MSG("\n This property is deprecated and will be removed in the next major release. Use `graphAPIDebugParameterValue` instead.\n "); |
|
2635 |
/// Internal property exposed to facilitate transition to Swift. |
|
2636 |
/// API Subject to change or removal without warning. Do not use. |
|
2637 |
/// @warning INTERNAL - DO NOT USE |
|
2638 |
@property (nonatomic, readonly, copy) NSString * _Nullable graphAPIDebugParameterValue; |
97fc0a
|
2639 |
/// Controls whether to show domain errors. |
L |
2640 |
@property (nonatomic) BOOL isDomainErrorEnabled; |
e0ec42
|
2641 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
L |
2642 |
@end |
|
2643 |
|
|
2644 |
|
|
2645 |
|
|
2646 |
|
|
2647 |
|
|
2648 |
|
|
2649 |
@interface FBSDKSettings (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
2650 |
/// Internal method exposed to facilitate transition to Swift. |
|
2651 |
/// API Subject to change or removal without warning. Do not use. |
|
2652 |
/// @warning INTERNAL - DO NOT USE |
|
2653 |
- (void)recordInstall; |
|
2654 |
/// Internal method exposed to facilitate transition to Swift. |
|
2655 |
/// API Subject to change or removal without warning. Do not use. |
|
2656 |
/// @warning INTERNAL - DO NOT USE |
|
2657 |
- (void)logWarnings; |
|
2658 |
/// Internal method exposed to facilitate transition to Swift. |
|
2659 |
/// API Subject to change or removal without warning. Do not use. |
|
2660 |
/// @warning INTERNAL - DO NOT USE |
|
2661 |
- (void)logIfSDKSettingsChanged; |
|
2662 |
@end |
|
2663 |
|
97fc0a
|
2664 |
|
L |
2665 |
|
|
2666 |
@class NSURLRequest; |
|
2667 |
|
|
2668 |
/// Internal class exposed to facilitate transition to Swift. |
|
2669 |
/// API Subject to change or removal without warning. Do not use. |
|
2670 |
/// @warning INTERNAL - DO NOT USE |
|
2671 |
SWIFT_CLASS_NAMED("ShimGraphRequestInterceptor") |
|
2672 |
@interface FBSDKShimGraphRequestInterceptor : NSObject |
|
2673 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKShimGraphRequestInterceptor * _Nonnull shared;) |
|
2674 |
+ (FBSDKShimGraphRequestInterceptor * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
|
2675 |
- (BOOL)shouldInterceptRequest:(NSURLRequest * _Nonnull)request SWIFT_WARN_UNUSED_RESULT; |
|
2676 |
- (void)executeWithRequest:(NSURLRequest * _Nonnull)request completionHandler:(FBSDKURLSessionTaskBlock _Nonnull)completionHandler; |
|
2677 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2678 |
@end |
e0ec42
|
2679 |
|
L |
2680 |
|
|
2681 |
|
|
2682 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2683 |
/// API Subject to change or removal without warning. Do not use. |
|
2684 |
/// @warning INTERNAL - DO NOT USE |
|
2685 |
SWIFT_PROTOCOL_NAMED("_AccessTokenExpiring") |
|
2686 |
@protocol _FBSDKAccessTokenExpiring |
|
2687 |
@end |
|
2688 |
|
|
2689 |
@protocol _FBSDKNotificationPosting; |
|
2690 |
@protocol FBSDKNotificationDelivering; |
|
2691 |
|
|
2692 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2693 |
/// API Subject to change or removal without warning. Do not use. |
|
2694 |
/// @warning INTERNAL - DO NOT USE |
|
2695 |
SWIFT_CLASS_NAMED("_AccessTokenExpirer") |
|
2696 |
@interface _FBSDKAccessTokenExpirer : NSObject <_FBSDKAccessTokenExpiring> |
|
2697 |
- (nonnull instancetype)initWithNotificationCenter:(id <_FBSDKNotificationPosting, FBSDKNotificationDelivering> _Nonnull)notificationCenter OBJC_DESIGNATED_INITIALIZER; |
|
2698 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
2699 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
2700 |
@end |
|
2701 |
|
|
2702 |
|
|
2703 |
@class FBSDKContainerViewController; |
|
2704 |
|
|
2705 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2706 |
/// API Subject to change or removal without warning. Do not use. |
|
2707 |
/// @warning INTERNAL - DO NOT USE |
|
2708 |
SWIFT_CLASS("_TtC12FBSDKCoreKit10_BridgeAPI") |
|
2709 |
@interface _BridgeAPI : NSObject <FBSDKBridgeAPIRequestOpening, FBSDKApplicationObserving, FBSDKURLOpener, FBSDKContainerViewControllerDelegate, SFSafariViewControllerDelegate> |
|
2710 |
- (void)viewControllerDidDisappear:(FBSDKContainerViewController * _Nonnull)viewController animated:(BOOL)animated; |
|
2711 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
2712 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
2713 |
@end |
|
2714 |
|
|
2715 |
@class SFSafariViewController; |
|
2716 |
|
|
2717 |
@interface _BridgeAPI (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
2718 |
- (void)safariViewControllerDidFinish:(SFSafariViewController * _Nonnull)safariViewController; |
|
2719 |
@end |
|
2720 |
|
|
2721 |
@class ASWebAuthenticationSession; |
|
2722 |
|
|
2723 |
SWIFT_AVAILABILITY(ios,introduced=13) |
|
2724 |
@interface _BridgeAPI (SWIFT_EXTENSION(FBSDKCoreKit)) <ASWebAuthenticationPresentationContextProviding> |
|
2725 |
- (ASPresentationAnchor _Nonnull)presentationAnchorForWebAuthenticationSession:(ASWebAuthenticationSession * _Nonnull)session SWIFT_WARN_UNUSED_RESULT; |
|
2726 |
@end |
|
2727 |
|
|
2728 |
@protocol FBSDKURLOpening; |
|
2729 |
@protocol FBSDKBridgeAPIRequest; |
|
2730 |
@class UIViewController; |
|
2731 |
|
|
2732 |
@interface _BridgeAPI (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
2733 |
- (void)openURL:(NSURL * _Nonnull)url sender:(id <FBSDKURLOpening> _Nullable)sender handler:(FBSDKSuccessBlock _Nonnull)handler; |
|
2734 |
- (void)openBridgeAPIRequest:(id <FBSDKBridgeAPIRequest> _Nonnull)request useSafariViewController:(BOOL)useSafariViewController fromViewController:(UIViewController * _Nullable)fromViewController completionBlock:(FBSDKBridgeAPIResponseBlock _Nonnull)completionBlock; |
|
2735 |
- (void)openURLWithSafariViewController:(NSURL * _Nonnull)url sender:(id <FBSDKURLOpening> _Nullable)sender fromViewController:(UIViewController * _Nullable)fromViewController handler:(FBSDKSuccessBlock _Nonnull)handler; |
|
2736 |
@end |
|
2737 |
|
|
2738 |
|
|
2739 |
@interface _BridgeAPI (SWIFT_EXTENSION(FBSDKCoreKit)) |
|
2740 |
- (void)applicationWillResignActive:(UIApplication * _Nullable)application; |
|
2741 |
- (void)applicationDidBecomeActive:(UIApplication * _Nullable)application; |
|
2742 |
- (void)applicationDidEnterBackground:(UIApplication * _Nullable)application; |
|
2743 |
- (BOOL)application:(UIApplication * _Nonnull)application openURL:(NSURL * _Nonnull)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
2744 |
- (BOOL)application:(UIApplication * _Nonnull)application didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> * _Nullable)launchOptions SWIFT_WARN_UNUSED_RESULT; |
|
2745 |
@end |
|
2746 |
|
|
2747 |
@protocol FBSDKPasteboard; |
|
2748 |
|
|
2749 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2750 |
/// API Subject to change or removal without warning. Do not use. |
|
2751 |
/// @warning INTERNAL - DO NOT USE |
|
2752 |
SWIFT_CLASS_NAMED("_BridgeAPIProtocolNativeV1") |
|
2753 |
@interface FBSDKBridgeAPIProtocolNativeV1 : NSObject <FBSDKBridgeAPIProtocol> |
|
2754 |
- (nonnull instancetype)initWithAppScheme:(NSString * _Nullable)appScheme; |
|
2755 |
- (nonnull instancetype)initWithAppScheme:(NSString * _Nullable)appScheme pasteboard:(id <FBSDKPasteboard> _Nullable)pasteboard dataLengthThreshold:(NSUInteger)dataLengthThreshold includeAppIcon:(BOOL)shouldIncludeAppIcon OBJC_DESIGNATED_INITIALIZER; |
|
2756 |
- (NSURL * _Nullable)requestURLWithActionID:(NSString * _Nonnull)actionID scheme:(NSString * _Nonnull)scheme methodName:(NSString * _Nonnull)methodName parameters:(NSDictionary<NSString *, id> * _Nonnull)parameters error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT; |
|
2757 |
- (NSDictionary<NSString *, id> * _Nullable)responseParametersForActionID:(NSString * _Nonnull)actionID queryParameters:(NSDictionary<NSString *, id> * _Nonnull)queryParameters cancelled:(BOOL * _Nullable)cancelledRef error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT; |
|
2758 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
2759 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
2760 |
@end |
|
2761 |
|
|
2762 |
|
|
2763 |
|
|
2764 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2765 |
/// API Subject to change or removal without warning. Do not use. |
|
2766 |
/// @warning INTERNAL - DO NOT USE |
|
2767 |
SWIFT_CLASS_NAMED("_BridgeAPIRequestFactory") |
|
2768 |
@interface FBSDKBridgeAPIRequestFactory : NSObject <FBSDKBridgeAPIRequestCreating> |
|
2769 |
- (id <FBSDKBridgeAPIRequest> _Nullable)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType scheme:(NSString * _Nonnull)scheme methodName:(NSString * _Nullable)methodName parameters:(NSDictionary<NSString *, id> * _Nullable)parameters userInfo:(NSDictionary<NSString *, id> * _Nullable)userInfo SWIFT_WARN_UNUSED_RESULT; |
|
2770 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2771 |
@end |
|
2772 |
|
|
2773 |
@class FBSDKDialogConfiguration; |
|
2774 |
|
|
2775 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2776 |
/// API Subject to change or removal without warning. Do not use. |
|
2777 |
/// @warning INTERNAL - DO NOT USE |
|
2778 |
SWIFT_CLASS_NAMED("_DialogConfigurationMapBuilder") |
|
2779 |
@interface FBSDKDialogConfigurationMapBuilder : NSObject <FBSDKDialogConfigurationMapBuilding> |
|
2780 |
- (NSDictionary<NSString *, FBSDKDialogConfiguration *> * _Nonnull)buildDialogConfigurationMapWithRawConfigurations:(NSArray<NSDictionary<NSString *, id> *> * _Nonnull)rawConfigurations SWIFT_WARN_UNUSED_RESULT; |
|
2781 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2782 |
@end |
|
2783 |
|
|
2784 |
|
|
2785 |
/// Internal type exposed to facilitate transition to Swift. |
|
2786 |
/// API Subject to change or removal without warning. Do not use. |
|
2787 |
/// @warning INTERNAL - DO NOT USE |
|
2788 |
SWIFT_CLASS_NAMED("_ErrorFactory") |
|
2789 |
@interface FBSDKErrorFactory : NSObject <FBSDKErrorCreating> |
|
2790 |
- (NSError * _Nonnull)errorWithCode:(NSInteger)code userInfo:(NSDictionary<NSString *, id> * _Nullable)userInfo message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
2791 |
- (NSError * _Nonnull)errorWithDomain:(NSString * _Nonnull)domain code:(NSInteger)code userInfo:(NSDictionary<NSString *, id> * _Nullable)userInfo message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
2792 |
- (NSError * _Nonnull)invalidArgumentErrorWithName:(NSString * _Nonnull)name value:(id _Nullable)value message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
2793 |
- (NSError * _Nonnull)invalidArgumentErrorWithDomain:(NSString * _Nonnull)domain name:(NSString * _Nonnull)name value:(id _Nullable)value message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
2794 |
- (NSError * _Nonnull)requiredArgumentErrorWithName:(NSString * _Nonnull)name message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
2795 |
- (NSError * _Nonnull)requiredArgumentErrorWithDomain:(NSString * _Nonnull)domain name:(NSString * _Nonnull)name message:(NSString * _Nullable)message underlyingError:(NSError * _Nullable)underlyingError SWIFT_WARN_UNUSED_RESULT; |
|
2796 |
- (NSError * _Nonnull)unknownErrorWithMessage:(NSString * _Nullable)message userInfo:(NSDictionary<NSString *, id> * _Nullable)userInfo SWIFT_WARN_UNUSED_RESULT; |
|
2797 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2798 |
@end |
|
2799 |
|
|
2800 |
|
|
2801 |
|
|
2802 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2803 |
/// API Subject to change or removal without warning. Do not use. |
|
2804 |
/// @warning INTERNAL - DO NOT USE |
|
2805 |
SWIFT_CLASS_NAMED("_FBCloseIcon") |
|
2806 |
@interface FBSDKCloseIcon : NSObject |
|
2807 |
- (UIImage * _Nullable)imageWithSize:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
2808 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2809 |
@end |
|
2810 |
|
|
2811 |
|
|
2812 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2813 |
/// API Subject to change or removal without warning. Do not use. |
|
2814 |
/// @warning INTERNAL - DO NOT USE |
|
2815 |
SWIFT_CLASS_NAMED("_FBLogo") |
|
2816 |
@interface FBSDKLogo : FBSDKIcon |
|
2817 |
- (CGPathRef _Nullable)pathWith:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
2818 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2819 |
@end |
|
2820 |
|
|
2821 |
|
|
2822 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2823 |
/// API Subject to change or removal without warning. Do not use. |
|
2824 |
/// @warning INTERNAL - DO NOT USE |
|
2825 |
SWIFT_CLASS_NAMED("_FeatureManager") |
|
2826 |
@interface FBSDKFeatureManager : NSObject <FBSDKFeatureChecking, FBSDKFeatureDisabling> |
|
2827 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKFeatureManager * _Nonnull shared;) |
|
2828 |
+ (FBSDKFeatureManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; |
|
2829 |
- (BOOL)isEnabled:(FBSDKFeature)feature SWIFT_WARN_UNUSED_RESULT; |
|
2830 |
- (void)checkFeature:(FBSDKFeature)feature completionBlock:(FBSDKFeatureManagerBlock _Nonnull)completionBlock; |
|
2831 |
- (void)disableFeature:(FBSDKFeature)feature; |
|
2832 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2833 |
@end |
|
2834 |
|
|
2835 |
|
|
2836 |
|
|
2837 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2838 |
/// API Subject to change or removal without warning. Do not use. |
|
2839 |
/// @warning INTERNAL - DO NOT USE |
|
2840 |
SWIFT_CLASS_NAMED("_HumanSilhouetteIcon") |
|
2841 |
@interface FBSDKHumanSilhouetteIcon : FBSDKIcon |
|
2842 |
- (CGPathRef _Nullable)pathWith:(CGSize)size SWIFT_WARN_UNUSED_RESULT; |
|
2843 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2844 |
@end |
|
2845 |
|
|
2846 |
|
|
2847 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2848 |
/// API Subject to change or removal without warning. Do not use. |
|
2849 |
/// @warning INTERNAL - DO NOT USE |
|
2850 |
SWIFT_CLASS_NAMED("_MeasurementEvent") |
|
2851 |
@interface FBSDKMeasurementEvent : NSObject <FBSDKAppLinkEventPosting> |
|
2852 |
- (void)postNotificationForEventName:(NSString * _Nonnull)eventName args:(NSDictionary<NSString *, id> * _Nonnull)arguments; |
|
2853 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2854 |
@end |
|
2855 |
|
|
2856 |
@class SKPaymentQueue; |
|
2857 |
@protocol FBSDKPaymentProductRequestorCreating; |
|
2858 |
|
|
2859 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2860 |
/// API Subject to change or removal without warning. Do not use. |
|
2861 |
/// @warning INTERNAL - DO NOT USE |
|
2862 |
/// Class to encapsulate implicit logging of purchase events |
|
2863 |
SWIFT_CLASS_NAMED("_PaymentObserver") |
|
2864 |
@interface FBSDKPaymentObserver : NSObject <FBSDKPaymentObserving> |
|
2865 |
- (nonnull instancetype)initWithPaymentQueue:(SKPaymentQueue * _Nonnull)paymentQueue paymentProductRequestorFactory:(id <FBSDKPaymentProductRequestorCreating> _Nonnull)paymentProductRequestorFactory OBJC_DESIGNATED_INITIALIZER; |
|
2866 |
- (void)startObservingTransactions; |
|
2867 |
- (void)stopObservingTransactions; |
|
2868 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
2869 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
2870 |
@end |
|
2871 |
|
|
2872 |
@class SKPaymentTransaction; |
|
2873 |
|
|
2874 |
@interface FBSDKPaymentObserver (SWIFT_EXTENSION(FBSDKCoreKit)) <SKPaymentTransactionObserver> |
|
2875 |
- (void)paymentQueue:(SKPaymentQueue * _Nonnull)queue updatedTransactions:(NSArray<SKPaymentTransaction *> * _Nonnull)transactions; |
|
2876 |
@end |
|
2877 |
|
|
2878 |
@class FBSDKPaymentProductRequestor; |
|
2879 |
|
|
2880 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2881 |
/// API Subject to change or removal without warning. Do not use. |
|
2882 |
/// @warning INTERNAL - DO NOT USE |
|
2883 |
SWIFT_CLASS_NAMED("_PaymentProductRequestorFactory") |
|
2884 |
@interface FBSDKPaymentProductRequestorFactory : NSObject <FBSDKPaymentProductRequestorCreating> |
|
2885 |
- (FBSDKPaymentProductRequestor * _Nonnull)createRequestorWithTransaction:(SKPaymentTransaction * _Nonnull)transaction SWIFT_WARN_UNUSED_RESULT; |
|
2886 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2887 |
@end |
|
2888 |
|
|
2889 |
|
|
2890 |
|
|
2891 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2892 |
/// API Subject to change or removal without warning. Do not use. |
|
2893 |
/// @warning INTERNAL - DO NOT USE |
|
2894 |
SWIFT_CLASS_NAMED("_RestrictiveEventFilter") |
|
2895 |
@interface FBSDKRestrictiveEventFilter : NSObject |
|
2896 |
@property (nonatomic, readonly, copy) NSString * _Nonnull eventName; |
|
2897 |
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull restrictiveParameters; |
|
2898 |
- (nonnull instancetype)initWithEventName:(NSString * _Nonnull)eventName restrictiveParameters:(NSDictionary<NSString *, id> * _Nonnull)restrictiveParameters OBJC_DESIGNATED_INITIALIZER; |
|
2899 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
2900 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
2901 |
@end |
|
2902 |
|
|
2903 |
|
|
2904 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2905 |
/// API Subject to change or removal without warning. Do not use. |
|
2906 |
/// @warning INTERNAL - DO NOT USE |
|
2907 |
SWIFT_CLASS_NAMED("_SKAdNetworkEvent") |
|
2908 |
@interface FBSDKSKAdNetworkEvent : NSObject |
|
2909 |
@property (nonatomic, readonly, copy) NSString * _Nullable eventName; |
|
2910 |
@property (nonatomic, copy) NSDictionary<NSString *, NSNumber *> * _Nullable values; |
|
2911 |
- (nullable instancetype)initWithJSON:(NSDictionary<NSString *, id> * _Nonnull)json OBJC_DESIGNATED_INITIALIZER; |
|
2912 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
2913 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
2914 |
@end |
|
2915 |
|
|
2916 |
|
|
2917 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2918 |
/// API Subject to change or removal without warning. Do not use. |
|
2919 |
/// @warning INTERNAL - DO NOT USE |
|
2920 |
SWIFT_CLASS_NAMED("_ViewImpressionLogger") |
|
2921 |
@interface FBSDKViewImpressionLogger : NSObject <FBSDKImpressionLogging> |
|
2922 |
- (nonnull instancetype)initWithEventName:(FBSDKAppEventName _Nonnull)eventName OBJC_DESIGNATED_INITIALIZER; |
|
2923 |
+ (FBSDKViewImpressionLogger * _Nonnull)retrieveLoggerWith:(FBSDKAppEventName _Nonnull)eventName SWIFT_WARN_UNUSED_RESULT; |
|
2924 |
- (void)logImpressionWithIdentifier:(NSString * _Nonnull)identifier parameters:(NSDictionary<FBSDKAppEventParameterName, id> * _Nullable)parameters; |
|
2925 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
2926 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
2927 |
@end |
|
2928 |
|
|
2929 |
|
|
2930 |
@protocol FBSDKWebDialogDelegate; |
|
2931 |
|
|
2932 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2933 |
/// API Subject to change or removal without warning. Do not use. |
|
2934 |
/// @warning INTERNAL - DO NOT USE |
|
2935 |
SWIFT_CLASS_NAMED("_WebDialog") |
|
2936 |
@interface FBSDKWebDialog : NSObject |
|
2937 |
@property (nonatomic) BOOL shouldDeferVisibility; |
|
2938 |
@property (nonatomic, weak) id <FBSDKWebDialogDelegate> _Nullable delegate; |
|
2939 |
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name parameters:(NSDictionary<NSString *, NSString *> * _Nullable)parameters webViewFrame:(CGRect)webViewFrame path:(NSString * _Nullable)path OBJC_DESIGNATED_INITIALIZER; |
|
2940 |
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name; |
|
2941 |
- (void)show; |
|
2942 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
2943 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
2944 |
@end |
|
2945 |
|
|
2946 |
@class FBSDKWebDialogView; |
|
2947 |
|
|
2948 |
@interface FBSDKWebDialog (SWIFT_EXTENSION(FBSDKCoreKit)) <FBSDKWebDialogViewDelegate> |
|
2949 |
- (void)webDialogView:(FBSDKWebDialogView * _Nonnull)webDialogView didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results; |
|
2950 |
- (void)webDialogView:(FBSDKWebDialogView * _Nonnull)webDialogView didFailWithError:(NSError * _Nonnull)error; |
|
2951 |
- (void)webDialogViewDidCancel:(FBSDKWebDialogView * _Nonnull)webDialogView; |
|
2952 |
- (void)webDialogViewDidFinishLoad:(FBSDKWebDialogView * _Nonnull)webDialogView; |
|
2953 |
@end |
|
2954 |
|
|
2955 |
|
|
2956 |
@protocol FBSDKWebView; |
|
2957 |
|
|
2958 |
/// Internal Type exposed to facilitate transition to Swift. |
|
2959 |
/// API Subject to change or removal without warning. Do not use. |
|
2960 |
/// @warning INTERNAL - DO NOT USE |
|
2961 |
SWIFT_CLASS_NAMED("_WebViewFactory") |
|
2962 |
@interface FBSDKWebViewFactory : NSObject <FBSDKWebViewProviding> |
|
2963 |
- (id <FBSDKWebView> _Nonnull)createWebViewWithFrame:(CGRect)frame SWIFT_WARN_UNUSED_RESULT; |
|
2964 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
2965 |
@end |
|
2966 |
|
|
2967 |
#endif |
2e29a3
|
2968 |
#if __has_attribute(external_source_symbol) |
L |
2969 |
# pragma clang attribute pop |
|
2970 |
#endif |
97fc0a
|
2971 |
#if defined(__cplusplus) |
L |
2972 |
#endif |
2e29a3
|
2973 |
#pragma clang diagnostic pop |
L |
2974 |
#endif |
|
2975 |
|
e0ec42
|
2976 |
#else |
L |
2977 |
#error unsupported Swift architecture |
2e29a3
|
2978 |
#endif |