commit | author | age
|
e0ec42
|
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) |
e0ec42
|
4 |
#ifndef FBSDKGAMINGSERVICESKIT_SWIFT_H |
L |
5 |
#define FBSDKGAMINGSERVICESKIT_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" |
|
27 |
#if defined(__OBJC__) |
|
28 |
#include <Foundation/Foundation.h> |
|
29 |
#endif |
|
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 |
L |
39 |
#include <stdint.h> |
|
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 |
L |
59 |
|
|
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(...) |
e0ec42
|
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 |
e0ec42
|
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 |
e0ec42
|
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 |
e0ec42
|
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 |
e0ec42
|
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 |
e0ec42
|
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 |
e0ec42
|
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 |
e0ec42
|
144 |
#endif |
L |
145 |
#if !defined(SWIFT_CLASS_EXTRA) |
97fc0a
|
146 |
# define SWIFT_CLASS_EXTRA |
e0ec42
|
147 |
#endif |
L |
148 |
#if !defined(SWIFT_PROTOCOL_EXTRA) |
97fc0a
|
149 |
# define SWIFT_PROTOCOL_EXTRA |
e0ec42
|
150 |
#endif |
L |
151 |
#if !defined(SWIFT_ENUM_EXTRA) |
97fc0a
|
152 |
# define SWIFT_ENUM_EXTRA |
e0ec42
|
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 |
e0ec42
|
184 |
# endif |
L |
185 |
#endif |
|
186 |
#if !defined(SWIFT_ENUM_ATTR) |
97fc0a
|
187 |
# if __has_attribute(enum_extensibility) |
e0ec42
|
188 |
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) |
L |
189 |
# else |
97fc0a
|
190 |
# define SWIFT_ENUM_ATTR(_extensibility) |
e0ec42
|
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 |
e0ec42
|
225 |
#endif |
L |
226 |
#if defined(__OBJC__) |
|
227 |
#if !defined(IBSegueAction) |
97fc0a
|
228 |
# define IBSegueAction |
e0ec42
|
229 |
#endif |
L |
230 |
#endif |
|
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) |
e0ec42
|
277 |
#if __has_warning("-Watimport-in-framework-header") |
L |
278 |
#pragma clang diagnostic ignored "-Watimport-in-framework-header" |
|
279 |
#endif |
|
280 |
@import CoreFoundation; |
|
281 |
@import FBSDKCoreKit; |
|
282 |
@import FBSDKShareKit; |
|
283 |
@import Foundation; |
|
284 |
@import ObjectiveC; |
|
285 |
#endif |
|
286 |
|
|
287 |
#endif |
|
288 |
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" |
|
289 |
#pragma clang diagnostic ignored "-Wduplicate-method-arg" |
|
290 |
#if __has_warning("-Wpragma-clang-attribute") |
|
291 |
# pragma clang diagnostic ignored "-Wpragma-clang-attribute" |
|
292 |
#endif |
|
293 |
#pragma clang diagnostic ignored "-Wunknown-pragmas" |
|
294 |
#pragma clang diagnostic ignored "-Wnullability" |
|
295 |
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" |
|
296 |
|
|
297 |
#if __has_attribute(external_source_symbol) |
|
298 |
# pragma push_macro("any") |
|
299 |
# undef any |
|
300 |
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKGamingServicesKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) |
|
301 |
# pragma pop_macro("any") |
|
302 |
#endif |
|
303 |
|
|
304 |
#if defined(__OBJC__) |
|
305 |
|
|
306 |
/// A protocol that a content object must conform to be used in a Gaming Services dialog |
|
307 |
SWIFT_PROTOCOL_NAMED("ValidatableProtocol") |
|
308 |
@protocol FBSDKValidatable |
|
309 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
310 |
@end |
|
311 |
|
|
312 |
enum FBSDKChooseContextFilter : NSInteger; |
|
313 |
@class NSString; |
|
314 |
|
|
315 |
/// A model for an instant games choose context app switch dialog |
|
316 |
SWIFT_CLASS_NAMED("ChooseContextContent") |
|
317 |
@interface FBSDKChooseContextContent : NSObject <FBSDKValidatable> |
|
318 |
/// This sets the filter which determines which context will show when the user is app switched to the choose context dialog. |
|
319 |
@property (nonatomic) enum FBSDKChooseContextFilter filter; |
|
320 |
/// This sets the maximum number of participants that the suggested context(s) shown in the dialog should have. |
|
321 |
@property (nonatomic) NSInteger maxParticipants; |
|
322 |
/// This sets the minimum number of participants that the suggested context(s) shown in the dialog should have. |
|
323 |
@property (nonatomic) NSInteger minParticipants; |
|
324 |
+ (NSString * _Nonnull)filtersNameForFilters:(enum FBSDKChooseContextFilter)filter SWIFT_WARN_UNUSED_RESULT; |
|
325 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
326 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
327 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
328 |
@end |
|
329 |
|
|
330 |
@protocol FBSDKContextDialogDelegate; |
|
331 |
|
|
332 |
/// The protocol sdk dialogs must conform to and implement all the following methods. |
|
333 |
SWIFT_PROTOCOL_NAMED("DialogProtocol") |
|
334 |
@protocol FBSDKDialog |
|
335 |
/// The receiver’s delegate or nil if it doesn’t have a delegate. |
|
336 |
@property (nonatomic, weak) id <FBSDKContextDialogDelegate> _Nullable delegate; |
|
337 |
/// The content object used to create the specific dialog |
|
338 |
@property (nonatomic, strong) id <FBSDKValidatable> _Nullable dialogContent; |
|
339 |
/// Begins to show the specfic dialog |
|
340 |
/// @return true if the receiver was able to show the dialog, otherwise false. |
|
341 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
342 |
/// Validates the content for the dialog |
|
343 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
344 |
@end |
|
345 |
|
|
346 |
@class FBSDKWebDialog; |
|
347 |
@protocol _FBSDKWindowFinding; |
|
348 |
|
|
349 |
/// A super class type for the context dialogs classes that show an in-app webview to display content. |
|
350 |
SWIFT_CLASS_NAMED("ContextWebDialog") |
|
351 |
@interface FBSDKContextWebDialog : NSObject <FBSDKWebDialogDelegate, FBSDKDialog> |
|
352 |
@property (nonatomic, strong) id <FBSDKContextDialogDelegate> _Nullable delegate; |
|
353 |
@property (nonatomic, strong) id <FBSDKValidatable> _Nullable dialogContent; |
|
354 |
@property (nonatomic, strong) FBSDKWebDialog * _Nullable currentWebDialog; |
|
355 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
356 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
357 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results; |
|
358 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error; |
|
359 |
- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog; |
|
360 |
/// Depending on the content size within the browser, this method allows for the resizing of web dialog |
|
361 |
- (CGRect)createWebDialogFrameWithWidth:(CGFloat)width height:(CGFloat)height windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder SWIFT_WARN_UNUSED_RESULT; |
|
362 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
363 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
364 |
@end |
|
365 |
|
|
366 |
@class UIApplication; |
|
367 |
@class NSURL; |
|
368 |
|
|
369 |
/// A dialog for the choose context through app switch |
|
370 |
SWIFT_CLASS_NAMED("ChooseContextDialog") |
|
371 |
@interface FBSDKChooseContextDialog : FBSDKContextWebDialog <FBSDKURLOpening> |
|
372 |
/// Convenience method to build up a choose context app switch with content and a delegate. |
|
373 |
/// @param content The content for the choose context dialog |
|
374 |
/// @param delegate The receiver’s delegate. |
|
375 |
- (nonnull instancetype)initWithContent:(FBSDKChooseContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate; |
|
376 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
377 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
378 |
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
379 |
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
380 |
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application; |
|
381 |
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
|
382 |
@end |
|
383 |
|
|
384 |
|
|
385 |
SWIFT_PROTOCOL_NAMED("Showable") |
|
386 |
@protocol FBSDKShowable |
|
387 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
388 |
@end |
|
389 |
|
|
390 |
|
|
391 |
@interface FBSDKChooseContextDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKShowable> |
|
392 |
@end |
|
393 |
|
|
394 |
typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKChooseContextFilter, "ChooseContextFilter", open) { |
|
395 |
FBSDKChooseContextFilterNone = 0, |
|
396 |
FBSDKChooseContextFilterExistingChallenges = 1, |
|
397 |
FBSDKChooseContextFilterNewPlayersOnly = 2, |
|
398 |
FBSDKChooseContextFilterNewContextOnly = 3, |
|
399 |
}; |
|
400 |
|
|
401 |
|
|
402 |
/// A delegate for context dialogs to communicate with the dialog handler. |
|
403 |
/// The delegate is notified with the results of the cross play request as long as the application has permissions to |
|
404 |
/// receive the information. For example, if the person is not signed into the containing app, the shower may not be able |
|
405 |
/// to distinguish between completion of a cross play request and cancellation. |
|
406 |
SWIFT_PROTOCOL_NAMED("ContextDialogDelegate") |
|
407 |
@protocol FBSDKContextDialogDelegate |
|
408 |
/// Sent to the delegate when the context dialog completes without error. |
|
409 |
/// @param contextDialog The FBSDKContextDialog that completed. |
|
410 |
- (void)contextDialogDidComplete:(FBSDKContextWebDialog * _Nonnull)contextDialog; |
|
411 |
/// Sent to the delegate when the context dialog encounters an error. |
|
412 |
/// @param contextDialog The FBSDKContextDialog that completed. |
|
413 |
/// @param error The error. |
|
414 |
- (void)contextDialog:(FBSDKContextWebDialog * _Nonnull)contextDialog didFailWithError:(NSError * _Nonnull)error; |
|
415 |
/// Sent to the delegate when the cross play request dialog is cancelled. |
|
416 |
/// @param contextDialog The FBSDKContextDialog that completed. |
|
417 |
- (void)contextDialogDidCancel:(FBSDKContextWebDialog * _Nonnull)contextDialog; |
|
418 |
@end |
|
419 |
|
|
420 |
@class FBSDKCreateContextContent; |
|
421 |
@class FBSDKSwitchContextContent; |
|
422 |
|
|
423 |
/// A dialog presenter responsible for creating and showing all the dialogs that create, switch, |
|
424 |
/// choose and otherwise manipulate the gaming context. |
|
425 |
SWIFT_CLASS_NAMED("ContextDialogPresenter") |
|
426 |
@interface FBSDKContextDialogPresenter : NSObject |
|
427 |
- (nonnull instancetype)init; |
|
428 |
/// Convenience method to build up and show an instant games create context dialog with content and delegate. |
|
429 |
/// \param content The content for the create context dialog |
|
430 |
/// |
|
431 |
/// \param delegate The receiver’s delegate. |
|
432 |
/// |
|
433 |
- (BOOL)makeAndShowCreateContextDialogWithContent:(FBSDKCreateContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error; |
|
434 |
/// Convenience method to build up and show an instant games switch context dialog with the giving content and delegate. |
|
435 |
/// \param content The content for the switch context dialog |
|
436 |
/// |
|
437 |
/// \param delegate The receiver’s delegate. |
|
438 |
/// |
|
439 |
- (BOOL)makeAndShowSwitchContextDialogWithContent:(FBSDKSwitchContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error; |
|
440 |
/// Convenience method to build up and show an instant games choose context dialog with content and a delegate. |
|
441 |
/// \param content The content for the choose context dialog |
|
442 |
/// |
|
443 |
/// \param delegate The receiver’s delegate. |
|
444 |
/// |
|
445 |
- (void)makeAndShowChooseContextDialogWithContent:(FBSDKChooseContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate; |
|
446 |
@end |
|
447 |
|
|
448 |
|
|
449 |
|
|
450 |
/// A model for an instant games createAsync cross play request. |
|
451 |
SWIFT_CLASS_NAMED("CreateContextContent") |
|
452 |
@interface FBSDKCreateContextContent : NSObject <FBSDKValidatable> |
|
453 |
/// The ID of the player that is being challenged. |
|
454 |
/// @return The ID for the player being challenged |
|
455 |
@property (nonatomic, copy) NSString * _Nonnull playerID; |
|
456 |
/// Builds a content object that will be use to display a create context dialog |
|
457 |
/// @param playerID The player ID of the user being challenged which will be used to create a game context |
|
458 |
- (nonnull instancetype)initDialogContentWithPlayerID:(NSString * _Nonnull)playerID OBJC_DESIGNATED_INITIALIZER; |
|
459 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
460 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
461 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
462 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
463 |
@end |
|
464 |
|
|
465 |
|
|
466 |
/// A dialog to create a context through a web view |
|
467 |
SWIFT_CLASS_NAMED("CreateContextDialog") |
|
468 |
@interface FBSDKCreateContextDialog : FBSDKContextWebDialog |
|
469 |
/// Builds a context creation web dialog with content and a delegate. |
|
470 |
/// @param content The content for the create context dialog |
|
471 |
/// @param windowFinder The application window finder that provides the window to display the dialog |
|
472 |
/// @param delegate The receiver’s delegate used to let the receiver know a context was created or failure |
|
473 |
- (nonnull instancetype)initWithContent:(FBSDKCreateContextContent * _Nonnull)content windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate OBJC_DESIGNATED_INITIALIZER; |
|
474 |
- (BOOL)show; |
|
475 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
476 |
@end |
|
477 |
|
|
478 |
|
|
479 |
@interface FBSDKCreateContextDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKShowable> |
|
480 |
@end |
|
481 |
|
|
482 |
|
|
483 |
|
|
484 |
|
|
485 |
SWIFT_CLASS_NAMED("FriendFinderDialog") |
|
486 |
@interface FBSDKFriendFinderDialog : NSObject |
|
487 |
- (nonnull instancetype)init; |
|
488 |
+ (void)launchFriendFinderDialogWithCompletionHandler:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completionHandler; |
|
489 |
@end |
|
490 |
|
|
491 |
/// Additional context about the nature of the game request. |
|
492 |
typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKGameRequestActionType, "GameRequestActionType", open) { |
|
493 |
/// No action type |
|
494 |
FBSDKGameRequestActionTypeNone = 0, |
|
495 |
/// Send action type: The user is sending an object to the friends. |
|
496 |
FBSDKGameRequestActionTypeSend = 1, |
|
497 |
/// Ask For action type: The user is asking for an object from friends. |
|
498 |
FBSDKGameRequestActionTypeAskFor = 2, |
|
499 |
/// Turn action type: It is the turn of the friends to play against the user in a match. |
|
500 |
FBSDKGameRequestActionTypeTurn = 3, |
|
501 |
/// Invite action type: The user is inviting a friend. |
|
502 |
FBSDKGameRequestActionTypeInvite = 4, |
|
503 |
}; |
|
504 |
|
|
505 |
enum FBSDKGameRequestFilter : NSUInteger; |
|
506 |
@class NSCoder; |
|
507 |
|
|
508 |
/// A model for a game request. |
|
509 |
SWIFT_CLASS_NAMED("GameRequestContent") |
|
510 |
@interface FBSDKGameRequestContent : NSObject <FBSDKSharingValidatable, NSSecureCoding> |
|
511 |
/// Used when defining additional context about the nature of the request. |
|
512 |
/// The parameter ‘objectID’ is required if the action type is either |
|
513 |
/// ‘.send’ or ‘.askFor’. |
|
514 |
/// seealso: |
|
515 |
/// objectID |
|
516 |
@property (nonatomic) enum FBSDKGameRequestActionType actionType; |
|
517 |
/// Additional freeform data you may pass for tracking. This will be stored as part of |
|
518 |
/// the request objects created. The maximum length is 255 characters. |
|
519 |
@property (nonatomic, copy) NSString * _Nullable data; |
|
520 |
/// This controls the set of friends someone sees if a multi-friend selector is shown. |
|
521 |
/// It is <code>.none</code> by default, meaning that all friends can be shown. |
|
522 |
/// If specify as <code>.appUsers</code>, only friends who use the app will be shown. |
|
523 |
/// On the other hands, use <code>.appNonUsers</code> to filter only friends who do not use the app. |
|
524 |
/// The parameter name is preserved to be consistent with the counter part on desktop. |
|
525 |
@property (nonatomic) enum FBSDKGameRequestFilter filters; |
|
526 |
/// A plain-text message to be sent as part of the request. This text will surface in the App Center view |
|
527 |
/// of the request, but not on the notification jewel. Required parameter. |
|
528 |
@property (nonatomic, copy) NSString * _Nonnull message; |
|
529 |
/// The Open Graph object ID of the object being sent. |
|
530 |
/// seealso: |
|
531 |
/// actionType |
|
532 |
@property (nonatomic, copy) NSString * _Nonnull objectID; |
|
533 |
/// An array of user IDs, usernames or invite tokens (NSString) of people to send request. |
|
534 |
/// These may or may not be a friend of the sender. If this is specified by the app, |
|
535 |
/// the sender will not have a choice of recipients. If not, the sender will see a multi-friend selector |
|
536 |
/// This is equivalent to the “to” parameter when using the web game request dialog. |
|
537 |
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull recipients; |
|
538 |
/// An array of user IDs that will be included in the dialog as the first suggested friends. |
|
539 |
/// Cannot be used together with filters. |
|
540 |
/// This is equivalent to the <code>suggestions</code> parameter when using the web game request dialog. |
|
541 |
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull recipientSuggestions; |
|
542 |
/// The title for the dialog. |
|
543 |
@property (nonatomic, copy) NSString * _Nonnull title; |
|
544 |
/// The call to action for the dialog. |
|
545 |
@property (nonatomic, copy) NSString * _Nonnull cta; |
|
546 |
- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error; |
|
547 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
548 |
/// Compares the receiver to another game request content. |
|
549 |
/// @param content The other content |
|
550 |
/// @return <code>true</code> if the receiver’s values are equal to the other content’s values; otherwise <code>false</code> |
|
551 |
- (BOOL)isEqualToGameRequestContent:(FBSDKGameRequestContent * _Nonnull)content SWIFT_WARN_UNUSED_RESULT; |
|
552 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;) |
|
553 |
+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; |
|
554 |
- (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)decoder; |
|
555 |
- (void)encodeWithCoder:(NSCoder * _Nonnull)encoder; |
|
556 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
557 |
@end |
|
558 |
|
|
559 |
@protocol FBSDKGameRequestDialogDelegate; |
|
560 |
|
|
561 |
/// A dialog for sending game requests. |
|
562 |
SWIFT_CLASS_NAMED("GameRequestDialog") |
|
563 |
@interface FBSDKGameRequestDialog : NSObject |
|
564 |
/// The receiver’s delegate or nil if it doesn’t have a delegate. |
|
565 |
@property (nonatomic, weak) id <FBSDKGameRequestDialogDelegate> _Nullable delegate; |
|
566 |
/// The content for game request. |
|
567 |
@property (nonatomic, strong) FBSDKGameRequestContent * _Nonnull content; |
|
568 |
/// Specifies whether frictionless requests are enabled. |
|
569 |
@property (nonatomic) BOOL isFrictionlessRequestsEnabled; |
|
570 |
/// A Boolean value that indicates whether the receiver can initiate a game request. |
|
571 |
/// May return <code>false</code> if the appropriate Facebook app is not installed and is required or an access token is |
|
572 |
/// required but not available. This method does not validate the content on the receiver, so this can be checked before |
|
573 |
/// building up the content. |
|
574 |
/// See <code>validate()</code> |
|
575 |
/// @return <code>true</code> if the receiver can share, otherwise <code>false</code>. |
|
576 |
@property (nonatomic, readonly) BOOL canShow; |
|
577 |
- (nonnull instancetype)initWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate OBJC_DESIGNATED_INITIALIZER; |
|
578 |
/// Convenience method to build up a game request with content and a delegate. |
|
579 |
/// @param content The content for the game request. |
|
580 |
/// @param delegate The receiver’s delegate. |
|
581 |
+ (FBSDKGameRequestDialog * _Nonnull)dialogWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; |
|
582 |
/// Convenience method to build up and show a game request with content and a delegate. |
|
583 |
/// @param content The content for the game request. |
|
584 |
/// @param delegate The receiver’s delegate. |
|
585 |
+ (FBSDKGameRequestDialog * _Nonnull)showWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate; |
|
586 |
/// Begins the game request from the receiver. |
|
587 |
/// @return <code>true</code> if the receiver was able to show the dialog, otherwise <code>false</code>. |
|
588 |
- (BOOL)show; |
|
589 |
/// Validates the content on the receiver. |
|
590 |
- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; |
|
591 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
592 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
593 |
@end |
|
594 |
|
|
595 |
|
|
596 |
|
|
597 |
@interface FBSDKGameRequestDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKWebDialogDelegate> |
|
598 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results; |
|
599 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error; |
|
600 |
- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog; |
|
601 |
@end |
|
602 |
|
|
603 |
|
|
604 |
@interface FBSDKGameRequestDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKURLOpening> |
|
605 |
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)potentialURL sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
606 |
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
607 |
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application; |
|
608 |
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
|
609 |
@end |
|
610 |
|
|
611 |
|
|
612 |
/// A delegate for <code>GameRequestDialog</code>. |
|
613 |
/// The delegate is notified with the results of the game request as long as the application has permissions to |
|
614 |
/// receive the information. For example, if the person is not signed into the containing app, the shower may not be able |
|
615 |
/// to distinguish between completion of a game request and cancellation. |
|
616 |
SWIFT_PROTOCOL_NAMED("GameRequestDialogDelegate") |
|
617 |
@protocol FBSDKGameRequestDialogDelegate |
|
618 |
/// Sent to the delegate when the game request completes without error. |
|
619 |
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed. |
|
620 |
/// @param results The results from the dialog. This may be nil or empty. |
|
621 |
- (void)gameRequestDialog:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results; |
|
622 |
/// Sent to the delegate when the game request encounters an error. |
|
623 |
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed. |
|
624 |
/// @param error The error. |
|
625 |
- (void)gameRequestDialog:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog didFailWithError:(NSError * _Nonnull)error; |
|
626 |
/// Sent to the delegate when the game request dialog is cancelled. |
|
627 |
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed. |
|
628 |
- (void)gameRequestDialogDidCancel:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog; |
|
629 |
@end |
|
630 |
|
|
631 |
/// Filter for who can be displayed in the multi-friend selector. |
|
632 |
typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKGameRequestFilter, "GameRequestFilter", open) { |
|
633 |
/// No filter, all friends can be displayed. |
|
634 |
FBSDKGameRequestFilterNone = 0, |
|
635 |
/// Friends using the app can be displayed. |
|
636 |
FBSDKGameRequestFilterAppUsers = 1, |
|
637 |
/// Friends not using the app can be displayed. |
|
638 |
FBSDKGameRequestFilterAppNonUsers = 2, |
|
639 |
/// All friends can be displayed if FB app is installed. |
|
640 |
FBSDKGameRequestFilterEverybody = 3, |
|
641 |
}; |
|
642 |
|
|
643 |
|
|
644 |
SWIFT_CLASS_NAMED("GameRequestURLProvider") |
|
645 |
@interface FBSDKGameRequestURLProvider : NSObject |
|
646 |
+ (NSURL * _Nullable)createDeepLinkURLWithQueryDictionary:(NSDictionary<NSString *, id> * _Nonnull)queryDictionary SWIFT_WARN_UNUSED_RESULT; |
|
647 |
+ (NSString * _Nullable)filtersNameForFilters:(enum FBSDKGameRequestFilter)filters SWIFT_WARN_UNUSED_RESULT; |
|
648 |
+ (NSString * _Nullable)actionTypeNameForActionType:(enum FBSDKGameRequestActionType)actionType SWIFT_WARN_UNUSED_RESULT; |
|
649 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
650 |
@end |
|
651 |
|
|
652 |
|
|
653 |
|
|
654 |
|
|
655 |
SWIFT_CLASS_NAMED("GamingContext") |
|
656 |
@interface FBSDKGamingContext : NSObject |
|
657 |
/// A shared object that holds data about the current user’s game instance which could be solo game or multiplayer game with other users. |
|
658 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) FBSDKGamingContext * _Nullable currentContext;) |
|
659 |
+ (FBSDKGamingContext * _Nullable)currentContext SWIFT_WARN_UNUSED_RESULT; |
|
660 |
+ (void)setCurrentContext:(FBSDKGamingContext * _Nullable)value; |
|
661 |
/// A unique identifier for the current game context. This represents a specific game instance that the user is playing in. |
|
662 |
@property (nonatomic, readonly, copy) NSString * _Nonnull identifier; |
|
663 |
/// The number of players in the current user’s game instance |
|
664 |
@property (nonatomic, readonly) NSInteger size; |
|
665 |
- (nullable instancetype)initWithIdentifier:(NSString * _Nonnull)identifier size:(NSInteger)size OBJC_DESIGNATED_INITIALIZER; |
|
666 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
667 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
668 |
@end |
|
669 |
|
|
670 |
|
|
671 |
SWIFT_CLASS_NAMED("GamingGroupIntegration") |
|
672 |
@interface FBSDKGamingGroupIntegration : NSObject |
|
673 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
674 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
675 |
+ (void)openGroupPageWithCompletionHandler:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completionHandler; |
|
676 |
@end |
|
677 |
|
|
678 |
@class FBSDKGamingImageUploaderConfiguration; |
|
679 |
|
|
680 |
SWIFT_CLASS_NAMED("GamingImageUploader") |
|
681 |
@interface FBSDKGamingImageUploader : NSObject |
|
682 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
683 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
684 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
685 |
/// @param configuration model object contain the content that will be uploaded |
|
686 |
/// @param completion a callback that is fired dependent on the configuration. |
|
687 |
/// Fired when the upload completes or when the users returns to the caller app |
|
688 |
/// after the media dialog is shown. |
|
689 |
+ (void)uploadImageWithConfiguration:(FBSDKGamingImageUploaderConfiguration * _Nonnull)configuration andResultCompletion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion; |
|
690 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
691 |
/// @param configuration model object contain the content that will be uploaded |
|
692 |
/// @param completion a callback that is fired dependent on the configuration. |
|
693 |
/// Fired when the upload completes or when the users returns to the caller app |
|
694 |
/// after the media dialog is shown. |
|
695 |
/// @param progressHandler an optional callback that is fired multiple times as |
|
696 |
/// bytes are transferred to Facebook. |
|
697 |
+ (void)uploadImageWithConfiguration:(FBSDKGamingImageUploaderConfiguration * _Nonnull)configuration completion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion andProgressHandler:(void (^ _Nullable)(int64_t, int64_t, int64_t))progressHandler; |
|
698 |
@end |
|
699 |
|
|
700 |
@protocol FBSDKGraphRequestConnecting; |
|
701 |
|
|
702 |
@interface FBSDKGamingImageUploader (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKGraphRequestConnectionDelegate> |
|
703 |
- (void)requestConnection:(id <FBSDKGraphRequestConnecting> _Nonnull)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; |
|
704 |
@end |
|
705 |
|
|
706 |
@class UIImage; |
|
707 |
|
|
708 |
SWIFT_CLASS_NAMED("GamingImageUploaderConfiguration") |
|
709 |
@interface FBSDKGamingImageUploaderConfiguration : NSObject |
|
710 |
@property (nonatomic, readonly, strong) UIImage * _Nonnull image; |
|
711 |
@property (nonatomic, readonly, copy) NSString * _Nullable caption; |
|
712 |
@property (nonatomic, readonly) BOOL shouldLaunchMediaDialog; |
|
713 |
/// A model for Gaming image upload content to be shared. |
|
714 |
/// @param image the image that will be shared. |
|
715 |
/// @param caption and optional caption that will appear along side the image on Facebook. |
|
716 |
/// @param shouldLaunchMediaDialog whether or not to open the media dialog on Facebook when the upload completes. |
|
717 |
- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image caption:(NSString * _Nullable)caption shouldLaunchMediaDialog:(BOOL)shouldLaunchMediaDialog OBJC_DESIGNATED_INITIALIZER; |
|
718 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
719 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
720 |
@end |
|
721 |
|
|
722 |
@class FBSDKURL; |
|
723 |
|
|
724 |
SWIFT_CLASS_NAMED("GamingPayload") |
|
725 |
@interface FBSDKGamingPayload : NSObject |
|
726 |
@property (nonatomic, strong) FBSDKURL * _Nonnull URL; |
|
727 |
@property (nonatomic, copy) NSString * _Nonnull payload; |
|
728 |
- (nonnull instancetype)initWithURL:(FBSDKURL * _Nonnull)URL OBJC_DESIGNATED_INITIALIZER; |
|
729 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
730 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
731 |
@end |
|
732 |
|
|
733 |
|
|
734 |
SWIFT_PROTOCOL_NAMED("GamingPayloadDelegate") |
|
735 |
@protocol FBSDKGamingPayloadDelegate <NSObject> |
|
736 |
@optional |
|
737 |
/// Delegate method will be triggered when a <code>GamingPayloadObserver</code> parses a url with a payload and game request ID |
|
738 |
/// @param payload The payload recieved in the url |
|
739 |
/// @param gameRequestID The game request ID recieved in the url |
|
740 |
- (void)parsedGameRequestURLContaining:(FBSDKGamingPayload * _Nonnull)payload gameRequestID:(NSString * _Nonnull)gameRequestID; |
|
741 |
/// Delegate method will be triggered when a <code>GamingPayloadObserver</code> parses a gaming context url with a payload and game context token ID. The current gaming context will be update with the context ID. |
|
742 |
/// @param payload The payload recieved in the url |
|
743 |
- (void)parsedGamingContextURLContaining:(FBSDKGamingPayload * _Nonnull)payload; |
|
744 |
/// Delegate method will be triggered when a <code>GamingPayloadObserver</code> parses a url with a payload and tournament ID |
|
745 |
/// @param payload The payload associated with the tournament |
|
746 |
/// @param tournamentID The tournament ID the player wants to enter |
|
747 |
- (void)parsedTournamentURLContaining:(FBSDKGamingPayload * _Nonnull)payload tournamentID:(NSString * _Nonnull)tournamentID; |
|
748 |
@end |
|
749 |
|
|
750 |
|
|
751 |
SWIFT_CLASS_NAMED("GamingPayloadObserver") |
|
752 |
@interface FBSDKGamingPayloadObserver : NSObject |
|
753 |
@property (nonatomic, weak) id <FBSDKGamingPayloadDelegate> _Nullable delegate; |
|
754 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
755 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
756 |
- (nonnull instancetype)initWithDelegate:(id <FBSDKGamingPayloadDelegate> _Nullable)delegate; |
|
757 |
@end |
|
758 |
|
|
759 |
|
|
760 |
@interface FBSDKGamingPayloadObserver (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKApplicationObserving> |
|
761 |
- (BOOL)application:(UIApplication * _Nonnull)application openURL:(NSURL * _Nonnull)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
762 |
@end |
|
763 |
|
|
764 |
@class FBSDKGamingVideoUploaderConfiguration; |
|
765 |
|
|
766 |
SWIFT_CLASS_NAMED("GamingVideoUploader") |
|
767 |
@interface FBSDKGamingVideoUploader : NSObject |
|
768 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
769 |
/// @param configuration model object contain the content that will be uploaded |
|
770 |
/// @param completion a callback that is fired when the upload completes. |
|
771 |
+ (void)uploadVideoWithConfiguration:(FBSDKGamingVideoUploaderConfiguration * _Nonnull)configuration andResultCompletion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion; |
|
772 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
773 |
/// @param configuration model object contain the content that will be uploaded |
|
774 |
/// @param completion a callback that is fired when the upload completes. |
|
775 |
/// @param progressHandler an optional callback that is fired multiple times as bytes are transferred to Facebook. |
|
776 |
+ (void)uploadVideoWithConfiguration:(FBSDKGamingVideoUploaderConfiguration * _Nonnull)configuration completion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion andProgressHandler:(void (^ _Nullable)(int64_t, int64_t, int64_t))progressHandler; |
|
777 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
778 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
779 |
@end |
|
780 |
|
|
781 |
|
|
782 |
|
|
783 |
SWIFT_CLASS_NAMED("GamingVideoUploaderConfiguration") |
|
784 |
@interface FBSDKGamingVideoUploaderConfiguration : NSObject |
|
785 |
@property (nonatomic, readonly, copy) NSURL * _Nonnull videoURL; |
|
786 |
@property (nonatomic, readonly, copy) NSString * _Nullable caption; |
|
787 |
/// A model for Gaming video upload content to be shared. |
|
788 |
/// @param videoURL a url to the videos location on local disk. |
|
789 |
/// @param caption and optional caption that will appear along side the video on Facebook. |
|
790 |
- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL caption:(NSString * _Nullable)caption OBJC_DESIGNATED_INITIALIZER; |
|
791 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
792 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
793 |
@end |
|
794 |
|
|
795 |
|
|
796 |
SWIFT_CLASS("_TtC22FBSDKGamingServicesKit21ShareTournamentDialog") |
|
797 |
@interface ShareTournamentDialog : NSObject <FBSDKURLOpening> |
|
798 |
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
|
799 |
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
800 |
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
801 |
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application; |
|
802 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
803 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
804 |
@end |
|
805 |
|
|
806 |
|
|
807 |
|
|
808 |
/// A model for an instant games switchAsync cross play request. |
|
809 |
SWIFT_CLASS_NAMED("SwitchContextContent") |
|
810 |
@interface FBSDKSwitchContextContent : NSObject <FBSDKValidatable> |
|
811 |
- (nonnull instancetype)initDialogContentWithContextID:(NSString * _Nonnull)contextID OBJC_DESIGNATED_INITIALIZER; |
|
812 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
813 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
814 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
815 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
816 |
@end |
|
817 |
|
|
818 |
|
|
819 |
/// A dialog to switch the current gaming context through a web view |
|
820 |
SWIFT_CLASS_NAMED("SwitchContextDialog") |
|
821 |
@interface FBSDKSwitchContextDialog : FBSDKContextWebDialog <FBSDKShowable> |
|
822 |
/// Creates a switch context web dialog with content and a delegate. |
|
823 |
/// \param content The content for the switch context dialog |
|
824 |
/// |
|
825 |
/// \param windowFinder The application window finder that provides the window to display the dialog |
|
826 |
/// |
|
827 |
/// \param delegate The receiver’s delegate used to let the receiver know a context switch was successful or failed |
|
828 |
/// |
|
829 |
- (nonnull instancetype)initWithContent:(FBSDKSwitchContextContent * _Nonnull)content windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate OBJC_DESIGNATED_INITIALIZER; |
|
830 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
831 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
832 |
@end |
|
833 |
|
|
834 |
|
|
835 |
|
|
836 |
|
|
837 |
|
|
838 |
#endif |
|
839 |
#if __has_attribute(external_source_symbol) |
|
840 |
# pragma clang attribute pop |
97fc0a
|
841 |
#endif |
L |
842 |
#if defined(__cplusplus) |
e0ec42
|
843 |
#endif |
L |
844 |
#pragma clang diagnostic pop |
|
845 |
#endif |
|
846 |
|
|
847 |
#elif defined(__x86_64__) && __x86_64__ |
97fc0a
|
848 |
// Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) |
e0ec42
|
849 |
#ifndef FBSDKGAMINGSERVICESKIT_SWIFT_H |
L |
850 |
#define FBSDKGAMINGSERVICESKIT_SWIFT_H |
|
851 |
#pragma clang diagnostic push |
|
852 |
#pragma clang diagnostic ignored "-Wgcc-compat" |
|
853 |
|
|
854 |
#if !defined(__has_include) |
|
855 |
# define __has_include(x) 0 |
|
856 |
#endif |
|
857 |
#if !defined(__has_attribute) |
|
858 |
# define __has_attribute(x) 0 |
|
859 |
#endif |
|
860 |
#if !defined(__has_feature) |
|
861 |
# define __has_feature(x) 0 |
|
862 |
#endif |
|
863 |
#if !defined(__has_warning) |
|
864 |
# define __has_warning(x) 0 |
|
865 |
#endif |
|
866 |
|
|
867 |
#if __has_include(<swift/objc-prologue.h>) |
|
868 |
# include <swift/objc-prologue.h> |
|
869 |
#endif |
|
870 |
|
|
871 |
#pragma clang diagnostic ignored "-Wauto-import" |
|
872 |
#if defined(__OBJC__) |
|
873 |
#include <Foundation/Foundation.h> |
|
874 |
#endif |
|
875 |
#if defined(__cplusplus) |
|
876 |
#include <cstdint> |
|
877 |
#include <cstddef> |
|
878 |
#include <cstdbool> |
97fc0a
|
879 |
#include <cstring> |
L |
880 |
#include <stdlib.h> |
|
881 |
#include <new> |
|
882 |
#include <type_traits> |
e0ec42
|
883 |
#else |
L |
884 |
#include <stdint.h> |
|
885 |
#include <stddef.h> |
|
886 |
#include <stdbool.h> |
97fc0a
|
887 |
#include <string.h> |
L |
888 |
#endif |
|
889 |
#if defined(__cplusplus) |
|
890 |
#if defined(__arm64e__) && __has_include(<ptrauth.h>) |
|
891 |
# include <ptrauth.h> |
|
892 |
#else |
|
893 |
#pragma clang diagnostic push |
|
894 |
#pragma clang diagnostic ignored "-Wreserved-macro-identifier" |
|
895 |
# ifndef __ptrauth_swift_value_witness_function_pointer |
|
896 |
# define __ptrauth_swift_value_witness_function_pointer(x) |
|
897 |
# endif |
|
898 |
# ifndef __ptrauth_swift_class_method_pointer |
|
899 |
# define __ptrauth_swift_class_method_pointer(x) |
|
900 |
# endif |
|
901 |
#pragma clang diagnostic pop |
|
902 |
#endif |
e0ec42
|
903 |
#endif |
L |
904 |
|
|
905 |
#if !defined(SWIFT_TYPEDEFS) |
|
906 |
# define SWIFT_TYPEDEFS 1 |
|
907 |
# if __has_include(<uchar.h>) |
|
908 |
# include <uchar.h> |
|
909 |
# elif !defined(__cplusplus) |
|
910 |
typedef uint_least16_t char16_t; |
|
911 |
typedef uint_least32_t char32_t; |
|
912 |
# endif |
|
913 |
typedef float swift_float2 __attribute__((__ext_vector_type__(2))); |
|
914 |
typedef float swift_float3 __attribute__((__ext_vector_type__(3))); |
|
915 |
typedef float swift_float4 __attribute__((__ext_vector_type__(4))); |
|
916 |
typedef double swift_double2 __attribute__((__ext_vector_type__(2))); |
|
917 |
typedef double swift_double3 __attribute__((__ext_vector_type__(3))); |
|
918 |
typedef double swift_double4 __attribute__((__ext_vector_type__(4))); |
|
919 |
typedef int swift_int2 __attribute__((__ext_vector_type__(2))); |
|
920 |
typedef int swift_int3 __attribute__((__ext_vector_type__(3))); |
|
921 |
typedef int swift_int4 __attribute__((__ext_vector_type__(4))); |
|
922 |
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); |
|
923 |
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); |
|
924 |
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); |
|
925 |
#endif |
|
926 |
|
|
927 |
#if !defined(SWIFT_PASTE) |
|
928 |
# define SWIFT_PASTE_HELPER(x, y) x##y |
|
929 |
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) |
|
930 |
#endif |
|
931 |
#if !defined(SWIFT_METATYPE) |
|
932 |
# define SWIFT_METATYPE(X) Class |
|
933 |
#endif |
|
934 |
#if !defined(SWIFT_CLASS_PROPERTY) |
|
935 |
# if __has_feature(objc_class_property) |
|
936 |
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ |
|
937 |
# else |
97fc0a
|
938 |
# define SWIFT_CLASS_PROPERTY(...) |
e0ec42
|
939 |
# endif |
L |
940 |
#endif |
97fc0a
|
941 |
#if !defined(SWIFT_RUNTIME_NAME) |
L |
942 |
# if __has_attribute(objc_runtime_name) |
|
943 |
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) |
|
944 |
# else |
|
945 |
# define SWIFT_RUNTIME_NAME(X) |
|
946 |
# endif |
e0ec42
|
947 |
#endif |
97fc0a
|
948 |
#if !defined(SWIFT_COMPILE_NAME) |
L |
949 |
# if __has_attribute(swift_name) |
|
950 |
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) |
|
951 |
# else |
|
952 |
# define SWIFT_COMPILE_NAME(X) |
|
953 |
# endif |
e0ec42
|
954 |
#endif |
97fc0a
|
955 |
#if !defined(SWIFT_METHOD_FAMILY) |
L |
956 |
# if __has_attribute(objc_method_family) |
|
957 |
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) |
|
958 |
# else |
|
959 |
# define SWIFT_METHOD_FAMILY(X) |
|
960 |
# endif |
e0ec42
|
961 |
#endif |
97fc0a
|
962 |
#if !defined(SWIFT_NOESCAPE) |
L |
963 |
# if __has_attribute(noescape) |
|
964 |
# define SWIFT_NOESCAPE __attribute__((noescape)) |
|
965 |
# else |
|
966 |
# define SWIFT_NOESCAPE |
|
967 |
# endif |
e0ec42
|
968 |
#endif |
97fc0a
|
969 |
#if !defined(SWIFT_RELEASES_ARGUMENT) |
L |
970 |
# if __has_attribute(ns_consumed) |
|
971 |
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) |
|
972 |
# else |
|
973 |
# define SWIFT_RELEASES_ARGUMENT |
|
974 |
# endif |
e0ec42
|
975 |
#endif |
97fc0a
|
976 |
#if !defined(SWIFT_WARN_UNUSED_RESULT) |
L |
977 |
# if __has_attribute(warn_unused_result) |
|
978 |
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
|
979 |
# else |
|
980 |
# define SWIFT_WARN_UNUSED_RESULT |
|
981 |
# endif |
e0ec42
|
982 |
#endif |
97fc0a
|
983 |
#if !defined(SWIFT_NORETURN) |
L |
984 |
# if __has_attribute(noreturn) |
|
985 |
# define SWIFT_NORETURN __attribute__((noreturn)) |
|
986 |
# else |
|
987 |
# define SWIFT_NORETURN |
|
988 |
# endif |
e0ec42
|
989 |
#endif |
L |
990 |
#if !defined(SWIFT_CLASS_EXTRA) |
97fc0a
|
991 |
# define SWIFT_CLASS_EXTRA |
e0ec42
|
992 |
#endif |
L |
993 |
#if !defined(SWIFT_PROTOCOL_EXTRA) |
97fc0a
|
994 |
# define SWIFT_PROTOCOL_EXTRA |
e0ec42
|
995 |
#endif |
L |
996 |
#if !defined(SWIFT_ENUM_EXTRA) |
97fc0a
|
997 |
# define SWIFT_ENUM_EXTRA |
e0ec42
|
998 |
#endif |
L |
999 |
#if !defined(SWIFT_CLASS) |
|
1000 |
# if __has_attribute(objc_subclassing_restricted) |
|
1001 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA |
|
1002 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
1003 |
# else |
|
1004 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
1005 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
1006 |
# endif |
|
1007 |
#endif |
|
1008 |
#if !defined(SWIFT_RESILIENT_CLASS) |
|
1009 |
# if __has_attribute(objc_class_stub) |
|
1010 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) |
|
1011 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
1012 |
# else |
|
1013 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) |
|
1014 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
1015 |
# endif |
|
1016 |
#endif |
|
1017 |
#if !defined(SWIFT_PROTOCOL) |
|
1018 |
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
1019 |
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
1020 |
#endif |
|
1021 |
#if !defined(SWIFT_EXTENSION) |
|
1022 |
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) |
|
1023 |
#endif |
|
1024 |
#if !defined(OBJC_DESIGNATED_INITIALIZER) |
|
1025 |
# if __has_attribute(objc_designated_initializer) |
|
1026 |
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) |
|
1027 |
# else |
97fc0a
|
1028 |
# define OBJC_DESIGNATED_INITIALIZER |
e0ec42
|
1029 |
# endif |
L |
1030 |
#endif |
|
1031 |
#if !defined(SWIFT_ENUM_ATTR) |
97fc0a
|
1032 |
# if __has_attribute(enum_extensibility) |
e0ec42
|
1033 |
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) |
L |
1034 |
# else |
97fc0a
|
1035 |
# define SWIFT_ENUM_ATTR(_extensibility) |
e0ec42
|
1036 |
# endif |
L |
1037 |
#endif |
|
1038 |
#if !defined(SWIFT_ENUM) |
|
1039 |
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type |
|
1040 |
# if __has_feature(generalized_swift_name) |
|
1041 |
# 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 |
|
1042 |
# else |
|
1043 |
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) |
|
1044 |
# endif |
|
1045 |
#endif |
|
1046 |
#if !defined(SWIFT_UNAVAILABLE) |
|
1047 |
# define SWIFT_UNAVAILABLE __attribute__((unavailable)) |
|
1048 |
#endif |
|
1049 |
#if !defined(SWIFT_UNAVAILABLE_MSG) |
|
1050 |
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) |
|
1051 |
#endif |
|
1052 |
#if !defined(SWIFT_AVAILABILITY) |
|
1053 |
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) |
|
1054 |
#endif |
|
1055 |
#if !defined(SWIFT_WEAK_IMPORT) |
|
1056 |
# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) |
|
1057 |
#endif |
|
1058 |
#if !defined(SWIFT_DEPRECATED) |
|
1059 |
# define SWIFT_DEPRECATED __attribute__((deprecated)) |
|
1060 |
#endif |
|
1061 |
#if !defined(SWIFT_DEPRECATED_MSG) |
|
1062 |
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) |
|
1063 |
#endif |
97fc0a
|
1064 |
#if !defined(SWIFT_DEPRECATED_OBJC) |
L |
1065 |
# if __has_feature(attribute_diagnose_if_objc) |
|
1066 |
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) |
|
1067 |
# else |
|
1068 |
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) |
|
1069 |
# endif |
e0ec42
|
1070 |
#endif |
L |
1071 |
#if defined(__OBJC__) |
|
1072 |
#if !defined(IBSegueAction) |
97fc0a
|
1073 |
# define IBSegueAction |
e0ec42
|
1074 |
#endif |
L |
1075 |
#endif |
|
1076 |
#if !defined(SWIFT_EXTERN) |
|
1077 |
# if defined(__cplusplus) |
|
1078 |
# define SWIFT_EXTERN extern "C" |
|
1079 |
# else |
|
1080 |
# define SWIFT_EXTERN extern |
|
1081 |
# endif |
|
1082 |
#endif |
|
1083 |
#if !defined(SWIFT_CALL) |
|
1084 |
# define SWIFT_CALL __attribute__((swiftcall)) |
|
1085 |
#endif |
97fc0a
|
1086 |
#if !defined(SWIFT_INDIRECT_RESULT) |
L |
1087 |
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) |
e0ec42
|
1088 |
#endif |
97fc0a
|
1089 |
#if !defined(SWIFT_CONTEXT) |
L |
1090 |
# define SWIFT_CONTEXT __attribute__((swift_context)) |
|
1091 |
#endif |
|
1092 |
#if !defined(SWIFT_ERROR_RESULT) |
|
1093 |
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) |
|
1094 |
#endif |
|
1095 |
#if defined(__cplusplus) |
|
1096 |
# define SWIFT_NOEXCEPT noexcept |
e0ec42
|
1097 |
#else |
L |
1098 |
# define SWIFT_NOEXCEPT |
|
1099 |
#endif |
97fc0a
|
1100 |
#if !defined(SWIFT_C_INLINE_THUNK) |
L |
1101 |
# if __has_attribute(always_inline) |
|
1102 |
# if __has_attribute(nodebug) |
|
1103 |
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) |
|
1104 |
# else |
|
1105 |
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) |
|
1106 |
# endif |
|
1107 |
# else |
|
1108 |
# define SWIFT_C_INLINE_THUNK inline |
|
1109 |
# endif |
e0ec42
|
1110 |
#endif |
97fc0a
|
1111 |
#if defined(_WIN32) |
L |
1112 |
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) |
|
1113 |
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) |
|
1114 |
#endif |
|
1115 |
#else |
|
1116 |
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) |
|
1117 |
# define SWIFT_IMPORT_STDLIB_SYMBOL |
e0ec42
|
1118 |
#endif |
L |
1119 |
#endif |
|
1120 |
#if defined(__OBJC__) |
97fc0a
|
1121 |
#if __has_feature(objc_modules) |
e0ec42
|
1122 |
#if __has_warning("-Watimport-in-framework-header") |
L |
1123 |
#pragma clang diagnostic ignored "-Watimport-in-framework-header" |
|
1124 |
#endif |
|
1125 |
@import CoreFoundation; |
|
1126 |
@import FBSDKCoreKit; |
|
1127 |
@import FBSDKShareKit; |
|
1128 |
@import Foundation; |
|
1129 |
@import ObjectiveC; |
|
1130 |
#endif |
|
1131 |
|
|
1132 |
#endif |
|
1133 |
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" |
|
1134 |
#pragma clang diagnostic ignored "-Wduplicate-method-arg" |
|
1135 |
#if __has_warning("-Wpragma-clang-attribute") |
|
1136 |
# pragma clang diagnostic ignored "-Wpragma-clang-attribute" |
|
1137 |
#endif |
|
1138 |
#pragma clang diagnostic ignored "-Wunknown-pragmas" |
|
1139 |
#pragma clang diagnostic ignored "-Wnullability" |
|
1140 |
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" |
|
1141 |
|
|
1142 |
#if __has_attribute(external_source_symbol) |
|
1143 |
# pragma push_macro("any") |
|
1144 |
# undef any |
|
1145 |
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKGamingServicesKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) |
|
1146 |
# pragma pop_macro("any") |
|
1147 |
#endif |
|
1148 |
|
|
1149 |
#if defined(__OBJC__) |
|
1150 |
|
|
1151 |
/// A protocol that a content object must conform to be used in a Gaming Services dialog |
|
1152 |
SWIFT_PROTOCOL_NAMED("ValidatableProtocol") |
|
1153 |
@protocol FBSDKValidatable |
|
1154 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
1155 |
@end |
|
1156 |
|
|
1157 |
enum FBSDKChooseContextFilter : NSInteger; |
|
1158 |
@class NSString; |
|
1159 |
|
|
1160 |
/// A model for an instant games choose context app switch dialog |
|
1161 |
SWIFT_CLASS_NAMED("ChooseContextContent") |
|
1162 |
@interface FBSDKChooseContextContent : NSObject <FBSDKValidatable> |
|
1163 |
/// This sets the filter which determines which context will show when the user is app switched to the choose context dialog. |
|
1164 |
@property (nonatomic) enum FBSDKChooseContextFilter filter; |
|
1165 |
/// This sets the maximum number of participants that the suggested context(s) shown in the dialog should have. |
|
1166 |
@property (nonatomic) NSInteger maxParticipants; |
|
1167 |
/// This sets the minimum number of participants that the suggested context(s) shown in the dialog should have. |
|
1168 |
@property (nonatomic) NSInteger minParticipants; |
|
1169 |
+ (NSString * _Nonnull)filtersNameForFilters:(enum FBSDKChooseContextFilter)filter SWIFT_WARN_UNUSED_RESULT; |
|
1170 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
1171 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
1172 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1173 |
@end |
|
1174 |
|
|
1175 |
@protocol FBSDKContextDialogDelegate; |
|
1176 |
|
|
1177 |
/// The protocol sdk dialogs must conform to and implement all the following methods. |
|
1178 |
SWIFT_PROTOCOL_NAMED("DialogProtocol") |
|
1179 |
@protocol FBSDKDialog |
|
1180 |
/// The receiver’s delegate or nil if it doesn’t have a delegate. |
|
1181 |
@property (nonatomic, weak) id <FBSDKContextDialogDelegate> _Nullable delegate; |
|
1182 |
/// The content object used to create the specific dialog |
|
1183 |
@property (nonatomic, strong) id <FBSDKValidatable> _Nullable dialogContent; |
|
1184 |
/// Begins to show the specfic dialog |
|
1185 |
/// @return true if the receiver was able to show the dialog, otherwise false. |
|
1186 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
1187 |
/// Validates the content for the dialog |
|
1188 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
1189 |
@end |
|
1190 |
|
|
1191 |
@class FBSDKWebDialog; |
|
1192 |
@protocol _FBSDKWindowFinding; |
|
1193 |
|
|
1194 |
/// A super class type for the context dialogs classes that show an in-app webview to display content. |
|
1195 |
SWIFT_CLASS_NAMED("ContextWebDialog") |
|
1196 |
@interface FBSDKContextWebDialog : NSObject <FBSDKWebDialogDelegate, FBSDKDialog> |
|
1197 |
@property (nonatomic, strong) id <FBSDKContextDialogDelegate> _Nullable delegate; |
|
1198 |
@property (nonatomic, strong) id <FBSDKValidatable> _Nullable dialogContent; |
|
1199 |
@property (nonatomic, strong) FBSDKWebDialog * _Nullable currentWebDialog; |
|
1200 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
1201 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
1202 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results; |
|
1203 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error; |
|
1204 |
- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog; |
|
1205 |
/// Depending on the content size within the browser, this method allows for the resizing of web dialog |
|
1206 |
- (CGRect)createWebDialogFrameWithWidth:(CGFloat)width height:(CGFloat)height windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder SWIFT_WARN_UNUSED_RESULT; |
|
1207 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1208 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1209 |
@end |
|
1210 |
|
|
1211 |
@class UIApplication; |
|
1212 |
@class NSURL; |
|
1213 |
|
|
1214 |
/// A dialog for the choose context through app switch |
|
1215 |
SWIFT_CLASS_NAMED("ChooseContextDialog") |
|
1216 |
@interface FBSDKChooseContextDialog : FBSDKContextWebDialog <FBSDKURLOpening> |
|
1217 |
/// Convenience method to build up a choose context app switch with content and a delegate. |
|
1218 |
/// @param content The content for the choose context dialog |
|
1219 |
/// @param delegate The receiver’s delegate. |
|
1220 |
- (nonnull instancetype)initWithContent:(FBSDKChooseContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate; |
|
1221 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
1222 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
1223 |
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
1224 |
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
1225 |
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application; |
|
1226 |
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
|
1227 |
@end |
|
1228 |
|
|
1229 |
|
|
1230 |
SWIFT_PROTOCOL_NAMED("Showable") |
|
1231 |
@protocol FBSDKShowable |
|
1232 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
1233 |
@end |
|
1234 |
|
|
1235 |
|
|
1236 |
@interface FBSDKChooseContextDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKShowable> |
|
1237 |
@end |
|
1238 |
|
|
1239 |
typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKChooseContextFilter, "ChooseContextFilter", open) { |
|
1240 |
FBSDKChooseContextFilterNone = 0, |
|
1241 |
FBSDKChooseContextFilterExistingChallenges = 1, |
|
1242 |
FBSDKChooseContextFilterNewPlayersOnly = 2, |
|
1243 |
FBSDKChooseContextFilterNewContextOnly = 3, |
|
1244 |
}; |
|
1245 |
|
|
1246 |
|
|
1247 |
/// A delegate for context dialogs to communicate with the dialog handler. |
|
1248 |
/// The delegate is notified with the results of the cross play request as long as the application has permissions to |
|
1249 |
/// receive the information. For example, if the person is not signed into the containing app, the shower may not be able |
|
1250 |
/// to distinguish between completion of a cross play request and cancellation. |
|
1251 |
SWIFT_PROTOCOL_NAMED("ContextDialogDelegate") |
|
1252 |
@protocol FBSDKContextDialogDelegate |
|
1253 |
/// Sent to the delegate when the context dialog completes without error. |
|
1254 |
/// @param contextDialog The FBSDKContextDialog that completed. |
|
1255 |
- (void)contextDialogDidComplete:(FBSDKContextWebDialog * _Nonnull)contextDialog; |
|
1256 |
/// Sent to the delegate when the context dialog encounters an error. |
|
1257 |
/// @param contextDialog The FBSDKContextDialog that completed. |
|
1258 |
/// @param error The error. |
|
1259 |
- (void)contextDialog:(FBSDKContextWebDialog * _Nonnull)contextDialog didFailWithError:(NSError * _Nonnull)error; |
|
1260 |
/// Sent to the delegate when the cross play request dialog is cancelled. |
|
1261 |
/// @param contextDialog The FBSDKContextDialog that completed. |
|
1262 |
- (void)contextDialogDidCancel:(FBSDKContextWebDialog * _Nonnull)contextDialog; |
|
1263 |
@end |
|
1264 |
|
|
1265 |
@class FBSDKCreateContextContent; |
|
1266 |
@class FBSDKSwitchContextContent; |
|
1267 |
|
|
1268 |
/// A dialog presenter responsible for creating and showing all the dialogs that create, switch, |
|
1269 |
/// choose and otherwise manipulate the gaming context. |
|
1270 |
SWIFT_CLASS_NAMED("ContextDialogPresenter") |
|
1271 |
@interface FBSDKContextDialogPresenter : NSObject |
|
1272 |
- (nonnull instancetype)init; |
|
1273 |
/// Convenience method to build up and show an instant games create context dialog with content and delegate. |
|
1274 |
/// \param content The content for the create context dialog |
|
1275 |
/// |
|
1276 |
/// \param delegate The receiver’s delegate. |
|
1277 |
/// |
|
1278 |
- (BOOL)makeAndShowCreateContextDialogWithContent:(FBSDKCreateContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error; |
|
1279 |
/// Convenience method to build up and show an instant games switch context dialog with the giving content and delegate. |
|
1280 |
/// \param content The content for the switch context dialog |
|
1281 |
/// |
|
1282 |
/// \param delegate The receiver’s delegate. |
|
1283 |
/// |
|
1284 |
- (BOOL)makeAndShowSwitchContextDialogWithContent:(FBSDKSwitchContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error; |
|
1285 |
/// Convenience method to build up and show an instant games choose context dialog with content and a delegate. |
|
1286 |
/// \param content The content for the choose context dialog |
|
1287 |
/// |
|
1288 |
/// \param delegate The receiver’s delegate. |
|
1289 |
/// |
|
1290 |
- (void)makeAndShowChooseContextDialogWithContent:(FBSDKChooseContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate; |
|
1291 |
@end |
|
1292 |
|
|
1293 |
|
|
1294 |
|
|
1295 |
/// A model for an instant games createAsync cross play request. |
|
1296 |
SWIFT_CLASS_NAMED("CreateContextContent") |
|
1297 |
@interface FBSDKCreateContextContent : NSObject <FBSDKValidatable> |
|
1298 |
/// The ID of the player that is being challenged. |
|
1299 |
/// @return The ID for the player being challenged |
|
1300 |
@property (nonatomic, copy) NSString * _Nonnull playerID; |
|
1301 |
/// Builds a content object that will be use to display a create context dialog |
|
1302 |
/// @param playerID The player ID of the user being challenged which will be used to create a game context |
|
1303 |
- (nonnull instancetype)initDialogContentWithPlayerID:(NSString * _Nonnull)playerID OBJC_DESIGNATED_INITIALIZER; |
|
1304 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
1305 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
1306 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1307 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1308 |
@end |
|
1309 |
|
|
1310 |
|
|
1311 |
/// A dialog to create a context through a web view |
|
1312 |
SWIFT_CLASS_NAMED("CreateContextDialog") |
|
1313 |
@interface FBSDKCreateContextDialog : FBSDKContextWebDialog |
|
1314 |
/// Builds a context creation web dialog with content and a delegate. |
|
1315 |
/// @param content The content for the create context dialog |
|
1316 |
/// @param windowFinder The application window finder that provides the window to display the dialog |
|
1317 |
/// @param delegate The receiver’s delegate used to let the receiver know a context was created or failure |
|
1318 |
- (nonnull instancetype)initWithContent:(FBSDKCreateContextContent * _Nonnull)content windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate OBJC_DESIGNATED_INITIALIZER; |
|
1319 |
- (BOOL)show; |
|
1320 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
1321 |
@end |
|
1322 |
|
|
1323 |
|
|
1324 |
@interface FBSDKCreateContextDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKShowable> |
|
1325 |
@end |
|
1326 |
|
|
1327 |
|
|
1328 |
|
|
1329 |
|
|
1330 |
SWIFT_CLASS_NAMED("FriendFinderDialog") |
|
1331 |
@interface FBSDKFriendFinderDialog : NSObject |
|
1332 |
- (nonnull instancetype)init; |
|
1333 |
+ (void)launchFriendFinderDialogWithCompletionHandler:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completionHandler; |
|
1334 |
@end |
|
1335 |
|
|
1336 |
/// Additional context about the nature of the game request. |
|
1337 |
typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKGameRequestActionType, "GameRequestActionType", open) { |
|
1338 |
/// No action type |
|
1339 |
FBSDKGameRequestActionTypeNone = 0, |
|
1340 |
/// Send action type: The user is sending an object to the friends. |
|
1341 |
FBSDKGameRequestActionTypeSend = 1, |
|
1342 |
/// Ask For action type: The user is asking for an object from friends. |
|
1343 |
FBSDKGameRequestActionTypeAskFor = 2, |
|
1344 |
/// Turn action type: It is the turn of the friends to play against the user in a match. |
|
1345 |
FBSDKGameRequestActionTypeTurn = 3, |
|
1346 |
/// Invite action type: The user is inviting a friend. |
|
1347 |
FBSDKGameRequestActionTypeInvite = 4, |
|
1348 |
}; |
|
1349 |
|
|
1350 |
enum FBSDKGameRequestFilter : NSUInteger; |
|
1351 |
@class NSCoder; |
|
1352 |
|
|
1353 |
/// A model for a game request. |
|
1354 |
SWIFT_CLASS_NAMED("GameRequestContent") |
|
1355 |
@interface FBSDKGameRequestContent : NSObject <FBSDKSharingValidatable, NSSecureCoding> |
|
1356 |
/// Used when defining additional context about the nature of the request. |
|
1357 |
/// The parameter ‘objectID’ is required if the action type is either |
|
1358 |
/// ‘.send’ or ‘.askFor’. |
|
1359 |
/// seealso: |
|
1360 |
/// objectID |
|
1361 |
@property (nonatomic) enum FBSDKGameRequestActionType actionType; |
|
1362 |
/// Additional freeform data you may pass for tracking. This will be stored as part of |
|
1363 |
/// the request objects created. The maximum length is 255 characters. |
|
1364 |
@property (nonatomic, copy) NSString * _Nullable data; |
|
1365 |
/// This controls the set of friends someone sees if a multi-friend selector is shown. |
|
1366 |
/// It is <code>.none</code> by default, meaning that all friends can be shown. |
|
1367 |
/// If specify as <code>.appUsers</code>, only friends who use the app will be shown. |
|
1368 |
/// On the other hands, use <code>.appNonUsers</code> to filter only friends who do not use the app. |
|
1369 |
/// The parameter name is preserved to be consistent with the counter part on desktop. |
|
1370 |
@property (nonatomic) enum FBSDKGameRequestFilter filters; |
|
1371 |
/// A plain-text message to be sent as part of the request. This text will surface in the App Center view |
|
1372 |
/// of the request, but not on the notification jewel. Required parameter. |
|
1373 |
@property (nonatomic, copy) NSString * _Nonnull message; |
|
1374 |
/// The Open Graph object ID of the object being sent. |
|
1375 |
/// seealso: |
|
1376 |
/// actionType |
|
1377 |
@property (nonatomic, copy) NSString * _Nonnull objectID; |
|
1378 |
/// An array of user IDs, usernames or invite tokens (NSString) of people to send request. |
|
1379 |
/// These may or may not be a friend of the sender. If this is specified by the app, |
|
1380 |
/// the sender will not have a choice of recipients. If not, the sender will see a multi-friend selector |
|
1381 |
/// This is equivalent to the “to” parameter when using the web game request dialog. |
|
1382 |
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull recipients; |
|
1383 |
/// An array of user IDs that will be included in the dialog as the first suggested friends. |
|
1384 |
/// Cannot be used together with filters. |
|
1385 |
/// This is equivalent to the <code>suggestions</code> parameter when using the web game request dialog. |
|
1386 |
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull recipientSuggestions; |
|
1387 |
/// The title for the dialog. |
|
1388 |
@property (nonatomic, copy) NSString * _Nonnull title; |
|
1389 |
/// The call to action for the dialog. |
|
1390 |
@property (nonatomic, copy) NSString * _Nonnull cta; |
|
1391 |
- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error; |
|
1392 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
1393 |
/// Compares the receiver to another game request content. |
|
1394 |
/// @param content The other content |
|
1395 |
/// @return <code>true</code> if the receiver’s values are equal to the other content’s values; otherwise <code>false</code> |
|
1396 |
- (BOOL)isEqualToGameRequestContent:(FBSDKGameRequestContent * _Nonnull)content SWIFT_WARN_UNUSED_RESULT; |
|
1397 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;) |
|
1398 |
+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; |
|
1399 |
- (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)decoder; |
|
1400 |
- (void)encodeWithCoder:(NSCoder * _Nonnull)encoder; |
|
1401 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1402 |
@end |
|
1403 |
|
|
1404 |
@protocol FBSDKGameRequestDialogDelegate; |
|
1405 |
|
|
1406 |
/// A dialog for sending game requests. |
|
1407 |
SWIFT_CLASS_NAMED("GameRequestDialog") |
|
1408 |
@interface FBSDKGameRequestDialog : NSObject |
|
1409 |
/// The receiver’s delegate or nil if it doesn’t have a delegate. |
|
1410 |
@property (nonatomic, weak) id <FBSDKGameRequestDialogDelegate> _Nullable delegate; |
|
1411 |
/// The content for game request. |
|
1412 |
@property (nonatomic, strong) FBSDKGameRequestContent * _Nonnull content; |
|
1413 |
/// Specifies whether frictionless requests are enabled. |
|
1414 |
@property (nonatomic) BOOL isFrictionlessRequestsEnabled; |
|
1415 |
/// A Boolean value that indicates whether the receiver can initiate a game request. |
|
1416 |
/// May return <code>false</code> if the appropriate Facebook app is not installed and is required or an access token is |
|
1417 |
/// required but not available. This method does not validate the content on the receiver, so this can be checked before |
|
1418 |
/// building up the content. |
|
1419 |
/// See <code>validate()</code> |
|
1420 |
/// @return <code>true</code> if the receiver can share, otherwise <code>false</code>. |
|
1421 |
@property (nonatomic, readonly) BOOL canShow; |
|
1422 |
- (nonnull instancetype)initWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate OBJC_DESIGNATED_INITIALIZER; |
|
1423 |
/// Convenience method to build up a game request with content and a delegate. |
|
1424 |
/// @param content The content for the game request. |
|
1425 |
/// @param delegate The receiver’s delegate. |
|
1426 |
+ (FBSDKGameRequestDialog * _Nonnull)dialogWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; |
|
1427 |
/// Convenience method to build up and show a game request with content and a delegate. |
|
1428 |
/// @param content The content for the game request. |
|
1429 |
/// @param delegate The receiver’s delegate. |
|
1430 |
+ (FBSDKGameRequestDialog * _Nonnull)showWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate; |
|
1431 |
/// Begins the game request from the receiver. |
|
1432 |
/// @return <code>true</code> if the receiver was able to show the dialog, otherwise <code>false</code>. |
|
1433 |
- (BOOL)show; |
|
1434 |
/// Validates the content on the receiver. |
|
1435 |
- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; |
|
1436 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1437 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1438 |
@end |
|
1439 |
|
|
1440 |
|
|
1441 |
|
|
1442 |
@interface FBSDKGameRequestDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKWebDialogDelegate> |
|
1443 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results; |
|
1444 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error; |
|
1445 |
- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog; |
|
1446 |
@end |
|
1447 |
|
|
1448 |
|
|
1449 |
@interface FBSDKGameRequestDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKURLOpening> |
|
1450 |
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)potentialURL sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
1451 |
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
1452 |
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application; |
|
1453 |
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
|
1454 |
@end |
|
1455 |
|
|
1456 |
|
|
1457 |
/// A delegate for <code>GameRequestDialog</code>. |
|
1458 |
/// The delegate is notified with the results of the game request as long as the application has permissions to |
|
1459 |
/// receive the information. For example, if the person is not signed into the containing app, the shower may not be able |
|
1460 |
/// to distinguish between completion of a game request and cancellation. |
|
1461 |
SWIFT_PROTOCOL_NAMED("GameRequestDialogDelegate") |
|
1462 |
@protocol FBSDKGameRequestDialogDelegate |
|
1463 |
/// Sent to the delegate when the game request completes without error. |
|
1464 |
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed. |
|
1465 |
/// @param results The results from the dialog. This may be nil or empty. |
|
1466 |
- (void)gameRequestDialog:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results; |
|
1467 |
/// Sent to the delegate when the game request encounters an error. |
|
1468 |
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed. |
|
1469 |
/// @param error The error. |
|
1470 |
- (void)gameRequestDialog:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog didFailWithError:(NSError * _Nonnull)error; |
|
1471 |
/// Sent to the delegate when the game request dialog is cancelled. |
|
1472 |
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed. |
|
1473 |
- (void)gameRequestDialogDidCancel:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog; |
|
1474 |
@end |
|
1475 |
|
|
1476 |
/// Filter for who can be displayed in the multi-friend selector. |
|
1477 |
typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKGameRequestFilter, "GameRequestFilter", open) { |
|
1478 |
/// No filter, all friends can be displayed. |
|
1479 |
FBSDKGameRequestFilterNone = 0, |
|
1480 |
/// Friends using the app can be displayed. |
|
1481 |
FBSDKGameRequestFilterAppUsers = 1, |
|
1482 |
/// Friends not using the app can be displayed. |
|
1483 |
FBSDKGameRequestFilterAppNonUsers = 2, |
|
1484 |
/// All friends can be displayed if FB app is installed. |
|
1485 |
FBSDKGameRequestFilterEverybody = 3, |
|
1486 |
}; |
|
1487 |
|
|
1488 |
|
|
1489 |
SWIFT_CLASS_NAMED("GameRequestURLProvider") |
|
1490 |
@interface FBSDKGameRequestURLProvider : NSObject |
|
1491 |
+ (NSURL * _Nullable)createDeepLinkURLWithQueryDictionary:(NSDictionary<NSString *, id> * _Nonnull)queryDictionary SWIFT_WARN_UNUSED_RESULT; |
|
1492 |
+ (NSString * _Nullable)filtersNameForFilters:(enum FBSDKGameRequestFilter)filters SWIFT_WARN_UNUSED_RESULT; |
|
1493 |
+ (NSString * _Nullable)actionTypeNameForActionType:(enum FBSDKGameRequestActionType)actionType SWIFT_WARN_UNUSED_RESULT; |
|
1494 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
1495 |
@end |
|
1496 |
|
|
1497 |
|
|
1498 |
|
|
1499 |
|
|
1500 |
SWIFT_CLASS_NAMED("GamingContext") |
|
1501 |
@interface FBSDKGamingContext : NSObject |
|
1502 |
/// A shared object that holds data about the current user’s game instance which could be solo game or multiplayer game with other users. |
|
1503 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) FBSDKGamingContext * _Nullable currentContext;) |
|
1504 |
+ (FBSDKGamingContext * _Nullable)currentContext SWIFT_WARN_UNUSED_RESULT; |
|
1505 |
+ (void)setCurrentContext:(FBSDKGamingContext * _Nullable)value; |
|
1506 |
/// A unique identifier for the current game context. This represents a specific game instance that the user is playing in. |
|
1507 |
@property (nonatomic, readonly, copy) NSString * _Nonnull identifier; |
|
1508 |
/// The number of players in the current user’s game instance |
|
1509 |
@property (nonatomic, readonly) NSInteger size; |
|
1510 |
- (nullable instancetype)initWithIdentifier:(NSString * _Nonnull)identifier size:(NSInteger)size OBJC_DESIGNATED_INITIALIZER; |
|
1511 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1512 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1513 |
@end |
|
1514 |
|
|
1515 |
|
|
1516 |
SWIFT_CLASS_NAMED("GamingGroupIntegration") |
|
1517 |
@interface FBSDKGamingGroupIntegration : NSObject |
|
1518 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1519 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1520 |
+ (void)openGroupPageWithCompletionHandler:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completionHandler; |
|
1521 |
@end |
|
1522 |
|
|
1523 |
@class FBSDKGamingImageUploaderConfiguration; |
|
1524 |
|
|
1525 |
SWIFT_CLASS_NAMED("GamingImageUploader") |
|
1526 |
@interface FBSDKGamingImageUploader : NSObject |
|
1527 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1528 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1529 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
1530 |
/// @param configuration model object contain the content that will be uploaded |
|
1531 |
/// @param completion a callback that is fired dependent on the configuration. |
|
1532 |
/// Fired when the upload completes or when the users returns to the caller app |
|
1533 |
/// after the media dialog is shown. |
|
1534 |
+ (void)uploadImageWithConfiguration:(FBSDKGamingImageUploaderConfiguration * _Nonnull)configuration andResultCompletion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion; |
|
1535 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
1536 |
/// @param configuration model object contain the content that will be uploaded |
|
1537 |
/// @param completion a callback that is fired dependent on the configuration. |
|
1538 |
/// Fired when the upload completes or when the users returns to the caller app |
|
1539 |
/// after the media dialog is shown. |
|
1540 |
/// @param progressHandler an optional callback that is fired multiple times as |
|
1541 |
/// bytes are transferred to Facebook. |
|
1542 |
+ (void)uploadImageWithConfiguration:(FBSDKGamingImageUploaderConfiguration * _Nonnull)configuration completion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion andProgressHandler:(void (^ _Nullable)(int64_t, int64_t, int64_t))progressHandler; |
|
1543 |
@end |
|
1544 |
|
|
1545 |
@protocol FBSDKGraphRequestConnecting; |
|
1546 |
|
|
1547 |
@interface FBSDKGamingImageUploader (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKGraphRequestConnectionDelegate> |
|
1548 |
- (void)requestConnection:(id <FBSDKGraphRequestConnecting> _Nonnull)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; |
|
1549 |
@end |
|
1550 |
|
|
1551 |
@class UIImage; |
|
1552 |
|
|
1553 |
SWIFT_CLASS_NAMED("GamingImageUploaderConfiguration") |
|
1554 |
@interface FBSDKGamingImageUploaderConfiguration : NSObject |
|
1555 |
@property (nonatomic, readonly, strong) UIImage * _Nonnull image; |
|
1556 |
@property (nonatomic, readonly, copy) NSString * _Nullable caption; |
|
1557 |
@property (nonatomic, readonly) BOOL shouldLaunchMediaDialog; |
|
1558 |
/// A model for Gaming image upload content to be shared. |
|
1559 |
/// @param image the image that will be shared. |
|
1560 |
/// @param caption and optional caption that will appear along side the image on Facebook. |
|
1561 |
/// @param shouldLaunchMediaDialog whether or not to open the media dialog on Facebook when the upload completes. |
|
1562 |
- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image caption:(NSString * _Nullable)caption shouldLaunchMediaDialog:(BOOL)shouldLaunchMediaDialog OBJC_DESIGNATED_INITIALIZER; |
|
1563 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1564 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1565 |
@end |
|
1566 |
|
|
1567 |
@class FBSDKURL; |
|
1568 |
|
|
1569 |
SWIFT_CLASS_NAMED("GamingPayload") |
|
1570 |
@interface FBSDKGamingPayload : NSObject |
|
1571 |
@property (nonatomic, strong) FBSDKURL * _Nonnull URL; |
|
1572 |
@property (nonatomic, copy) NSString * _Nonnull payload; |
|
1573 |
- (nonnull instancetype)initWithURL:(FBSDKURL * _Nonnull)URL OBJC_DESIGNATED_INITIALIZER; |
|
1574 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1575 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1576 |
@end |
|
1577 |
|
|
1578 |
|
|
1579 |
SWIFT_PROTOCOL_NAMED("GamingPayloadDelegate") |
|
1580 |
@protocol FBSDKGamingPayloadDelegate <NSObject> |
|
1581 |
@optional |
|
1582 |
/// Delegate method will be triggered when a <code>GamingPayloadObserver</code> parses a url with a payload and game request ID |
|
1583 |
/// @param payload The payload recieved in the url |
|
1584 |
/// @param gameRequestID The game request ID recieved in the url |
|
1585 |
- (void)parsedGameRequestURLContaining:(FBSDKGamingPayload * _Nonnull)payload gameRequestID:(NSString * _Nonnull)gameRequestID; |
|
1586 |
/// Delegate method will be triggered when a <code>GamingPayloadObserver</code> parses a gaming context url with a payload and game context token ID. The current gaming context will be update with the context ID. |
|
1587 |
/// @param payload The payload recieved in the url |
|
1588 |
- (void)parsedGamingContextURLContaining:(FBSDKGamingPayload * _Nonnull)payload; |
|
1589 |
/// Delegate method will be triggered when a <code>GamingPayloadObserver</code> parses a url with a payload and tournament ID |
|
1590 |
/// @param payload The payload associated with the tournament |
|
1591 |
/// @param tournamentID The tournament ID the player wants to enter |
|
1592 |
- (void)parsedTournamentURLContaining:(FBSDKGamingPayload * _Nonnull)payload tournamentID:(NSString * _Nonnull)tournamentID; |
|
1593 |
@end |
|
1594 |
|
|
1595 |
|
|
1596 |
SWIFT_CLASS_NAMED("GamingPayloadObserver") |
|
1597 |
@interface FBSDKGamingPayloadObserver : NSObject |
|
1598 |
@property (nonatomic, weak) id <FBSDKGamingPayloadDelegate> _Nullable delegate; |
|
1599 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1600 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1601 |
- (nonnull instancetype)initWithDelegate:(id <FBSDKGamingPayloadDelegate> _Nullable)delegate; |
|
1602 |
@end |
|
1603 |
|
|
1604 |
|
|
1605 |
@interface FBSDKGamingPayloadObserver (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKApplicationObserving> |
|
1606 |
- (BOOL)application:(UIApplication * _Nonnull)application openURL:(NSURL * _Nonnull)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
1607 |
@end |
|
1608 |
|
|
1609 |
@class FBSDKGamingVideoUploaderConfiguration; |
|
1610 |
|
|
1611 |
SWIFT_CLASS_NAMED("GamingVideoUploader") |
|
1612 |
@interface FBSDKGamingVideoUploader : NSObject |
|
1613 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
1614 |
/// @param configuration model object contain the content that will be uploaded |
|
1615 |
/// @param completion a callback that is fired when the upload completes. |
|
1616 |
+ (void)uploadVideoWithConfiguration:(FBSDKGamingVideoUploaderConfiguration * _Nonnull)configuration andResultCompletion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion; |
|
1617 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
1618 |
/// @param configuration model object contain the content that will be uploaded |
|
1619 |
/// @param completion a callback that is fired when the upload completes. |
|
1620 |
/// @param progressHandler an optional callback that is fired multiple times as bytes are transferred to Facebook. |
|
1621 |
+ (void)uploadVideoWithConfiguration:(FBSDKGamingVideoUploaderConfiguration * _Nonnull)configuration completion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion andProgressHandler:(void (^ _Nullable)(int64_t, int64_t, int64_t))progressHandler; |
|
1622 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1623 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1624 |
@end |
|
1625 |
|
|
1626 |
|
|
1627 |
|
|
1628 |
SWIFT_CLASS_NAMED("GamingVideoUploaderConfiguration") |
|
1629 |
@interface FBSDKGamingVideoUploaderConfiguration : NSObject |
|
1630 |
@property (nonatomic, readonly, copy) NSURL * _Nonnull videoURL; |
|
1631 |
@property (nonatomic, readonly, copy) NSString * _Nullable caption; |
|
1632 |
/// A model for Gaming video upload content to be shared. |
|
1633 |
/// @param videoURL a url to the videos location on local disk. |
|
1634 |
/// @param caption and optional caption that will appear along side the video on Facebook. |
|
1635 |
- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL caption:(NSString * _Nullable)caption OBJC_DESIGNATED_INITIALIZER; |
|
1636 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1637 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1638 |
@end |
|
1639 |
|
|
1640 |
|
|
1641 |
SWIFT_CLASS("_TtC22FBSDKGamingServicesKit21ShareTournamentDialog") |
|
1642 |
@interface ShareTournamentDialog : NSObject <FBSDKURLOpening> |
|
1643 |
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
|
1644 |
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
1645 |
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
1646 |
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application; |
|
1647 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1648 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1649 |
@end |
|
1650 |
|
|
1651 |
|
|
1652 |
|
|
1653 |
/// A model for an instant games switchAsync cross play request. |
|
1654 |
SWIFT_CLASS_NAMED("SwitchContextContent") |
|
1655 |
@interface FBSDKSwitchContextContent : NSObject <FBSDKValidatable> |
|
1656 |
- (nonnull instancetype)initDialogContentWithContextID:(NSString * _Nonnull)contextID OBJC_DESIGNATED_INITIALIZER; |
|
1657 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
1658 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
1659 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
1660 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
1661 |
@end |
|
1662 |
|
|
1663 |
|
|
1664 |
/// A dialog to switch the current gaming context through a web view |
|
1665 |
SWIFT_CLASS_NAMED("SwitchContextDialog") |
|
1666 |
@interface FBSDKSwitchContextDialog : FBSDKContextWebDialog <FBSDKShowable> |
|
1667 |
/// Creates a switch context web dialog with content and a delegate. |
|
1668 |
/// \param content The content for the switch context dialog |
|
1669 |
/// |
|
1670 |
/// \param windowFinder The application window finder that provides the window to display the dialog |
|
1671 |
/// |
|
1672 |
/// \param delegate The receiver’s delegate used to let the receiver know a context switch was successful or failed |
|
1673 |
/// |
|
1674 |
- (nonnull instancetype)initWithContent:(FBSDKSwitchContextContent * _Nonnull)content windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate OBJC_DESIGNATED_INITIALIZER; |
|
1675 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
1676 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
1677 |
@end |
|
1678 |
|
|
1679 |
|
|
1680 |
|
|
1681 |
|
|
1682 |
|
|
1683 |
#endif |
|
1684 |
#if __has_attribute(external_source_symbol) |
|
1685 |
# pragma clang attribute pop |
|
1686 |
#endif |
97fc0a
|
1687 |
#if defined(__cplusplus) |
L |
1688 |
#endif |
e0ec42
|
1689 |
#pragma clang diagnostic pop |
L |
1690 |
#endif |
|
1691 |
|
|
1692 |
#else |
|
1693 |
#error unsupported Swift architecture |
|
1694 |
#endif |