commit | author | age
|
e0ec42
|
1 |
#if 0 |
L |
2 |
#elif defined(__arm64__) && __arm64__ |
2a6e18
|
3 |
// Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) |
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 |
|
841 |
#endif |
97fc0a
|
842 |
#if defined(__cplusplus) |
L |
843 |
#endif |
e0ec42
|
844 |
#pragma clang diagnostic pop |
L |
845 |
#endif |
|
846 |
|
|
847 |
#else |
|
848 |
#error unsupported Swift architecture |
|
849 |
#endif |