commit | author | age
|
e0ec42
|
1 |
#if 0 |
L |
2 |
#elif defined(__arm64__) && __arm64__ |
|
3 |
// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) |
|
4 |
#ifndef FBSDKGAMINGSERVICESKIT_SWIFT_H |
|
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 "-Wduplicate-method-match" |
|
27 |
#pragma clang diagnostic ignored "-Wauto-import" |
|
28 |
#if defined(__OBJC__) |
|
29 |
#include <Foundation/Foundation.h> |
|
30 |
#endif |
|
31 |
#if defined(__cplusplus) |
|
32 |
#include <cstdint> |
|
33 |
#include <cstddef> |
|
34 |
#include <cstdbool> |
|
35 |
#else |
|
36 |
#include <stdint.h> |
|
37 |
#include <stddef.h> |
|
38 |
#include <stdbool.h> |
|
39 |
#endif |
|
40 |
|
|
41 |
#if !defined(SWIFT_TYPEDEFS) |
|
42 |
# define SWIFT_TYPEDEFS 1 |
|
43 |
# if __has_include(<uchar.h>) |
|
44 |
# include <uchar.h> |
|
45 |
# elif !defined(__cplusplus) |
|
46 |
typedef uint_least16_t char16_t; |
|
47 |
typedef uint_least32_t char32_t; |
|
48 |
# endif |
|
49 |
typedef float swift_float2 __attribute__((__ext_vector_type__(2))); |
|
50 |
typedef float swift_float3 __attribute__((__ext_vector_type__(3))); |
|
51 |
typedef float swift_float4 __attribute__((__ext_vector_type__(4))); |
|
52 |
typedef double swift_double2 __attribute__((__ext_vector_type__(2))); |
|
53 |
typedef double swift_double3 __attribute__((__ext_vector_type__(3))); |
|
54 |
typedef double swift_double4 __attribute__((__ext_vector_type__(4))); |
|
55 |
typedef int swift_int2 __attribute__((__ext_vector_type__(2))); |
|
56 |
typedef int swift_int3 __attribute__((__ext_vector_type__(3))); |
|
57 |
typedef int swift_int4 __attribute__((__ext_vector_type__(4))); |
|
58 |
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); |
|
59 |
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); |
|
60 |
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); |
|
61 |
#endif |
|
62 |
|
|
63 |
#if !defined(SWIFT_PASTE) |
|
64 |
# define SWIFT_PASTE_HELPER(x, y) x##y |
|
65 |
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) |
|
66 |
#endif |
|
67 |
#if !defined(SWIFT_METATYPE) |
|
68 |
# define SWIFT_METATYPE(X) Class |
|
69 |
#endif |
|
70 |
#if !defined(SWIFT_CLASS_PROPERTY) |
|
71 |
# if __has_feature(objc_class_property) |
|
72 |
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ |
|
73 |
# else |
|
74 |
# define SWIFT_CLASS_PROPERTY(...) |
|
75 |
# endif |
|
76 |
#endif |
|
77 |
|
|
78 |
#if __has_attribute(objc_runtime_name) |
|
79 |
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) |
|
80 |
#else |
|
81 |
# define SWIFT_RUNTIME_NAME(X) |
|
82 |
#endif |
|
83 |
#if __has_attribute(swift_name) |
|
84 |
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) |
|
85 |
#else |
|
86 |
# define SWIFT_COMPILE_NAME(X) |
|
87 |
#endif |
|
88 |
#if __has_attribute(objc_method_family) |
|
89 |
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) |
|
90 |
#else |
|
91 |
# define SWIFT_METHOD_FAMILY(X) |
|
92 |
#endif |
|
93 |
#if __has_attribute(noescape) |
|
94 |
# define SWIFT_NOESCAPE __attribute__((noescape)) |
|
95 |
#else |
|
96 |
# define SWIFT_NOESCAPE |
|
97 |
#endif |
|
98 |
#if __has_attribute(ns_consumed) |
|
99 |
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) |
|
100 |
#else |
|
101 |
# define SWIFT_RELEASES_ARGUMENT |
|
102 |
#endif |
|
103 |
#if __has_attribute(warn_unused_result) |
|
104 |
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
|
105 |
#else |
|
106 |
# define SWIFT_WARN_UNUSED_RESULT |
|
107 |
#endif |
|
108 |
#if __has_attribute(noreturn) |
|
109 |
# define SWIFT_NORETURN __attribute__((noreturn)) |
|
110 |
#else |
|
111 |
# define SWIFT_NORETURN |
|
112 |
#endif |
|
113 |
#if !defined(SWIFT_CLASS_EXTRA) |
|
114 |
# define SWIFT_CLASS_EXTRA |
|
115 |
#endif |
|
116 |
#if !defined(SWIFT_PROTOCOL_EXTRA) |
|
117 |
# define SWIFT_PROTOCOL_EXTRA |
|
118 |
#endif |
|
119 |
#if !defined(SWIFT_ENUM_EXTRA) |
|
120 |
# define SWIFT_ENUM_EXTRA |
|
121 |
#endif |
|
122 |
#if !defined(SWIFT_CLASS) |
|
123 |
# if __has_attribute(objc_subclassing_restricted) |
|
124 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA |
|
125 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
126 |
# else |
|
127 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
128 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
129 |
# endif |
|
130 |
#endif |
|
131 |
#if !defined(SWIFT_RESILIENT_CLASS) |
|
132 |
# if __has_attribute(objc_class_stub) |
|
133 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) |
|
134 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
135 |
# else |
|
136 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) |
|
137 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
138 |
# endif |
|
139 |
#endif |
|
140 |
|
|
141 |
#if !defined(SWIFT_PROTOCOL) |
|
142 |
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
143 |
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
144 |
#endif |
|
145 |
|
|
146 |
#if !defined(SWIFT_EXTENSION) |
|
147 |
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) |
|
148 |
#endif |
|
149 |
|
|
150 |
#if !defined(OBJC_DESIGNATED_INITIALIZER) |
|
151 |
# if __has_attribute(objc_designated_initializer) |
|
152 |
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) |
|
153 |
# else |
|
154 |
# define OBJC_DESIGNATED_INITIALIZER |
|
155 |
# endif |
|
156 |
#endif |
|
157 |
#if !defined(SWIFT_ENUM_ATTR) |
|
158 |
# if defined(__has_attribute) && __has_attribute(enum_extensibility) |
|
159 |
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) |
|
160 |
# else |
|
161 |
# define SWIFT_ENUM_ATTR(_extensibility) |
|
162 |
# endif |
|
163 |
#endif |
|
164 |
#if !defined(SWIFT_ENUM) |
|
165 |
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type |
|
166 |
# if __has_feature(generalized_swift_name) |
|
167 |
# 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 |
|
168 |
# else |
|
169 |
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) |
|
170 |
# endif |
|
171 |
#endif |
|
172 |
#if !defined(SWIFT_UNAVAILABLE) |
|
173 |
# define SWIFT_UNAVAILABLE __attribute__((unavailable)) |
|
174 |
#endif |
|
175 |
#if !defined(SWIFT_UNAVAILABLE_MSG) |
|
176 |
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) |
|
177 |
#endif |
|
178 |
#if !defined(SWIFT_AVAILABILITY) |
|
179 |
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) |
|
180 |
#endif |
|
181 |
#if !defined(SWIFT_WEAK_IMPORT) |
|
182 |
# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) |
|
183 |
#endif |
|
184 |
#if !defined(SWIFT_DEPRECATED) |
|
185 |
# define SWIFT_DEPRECATED __attribute__((deprecated)) |
|
186 |
#endif |
|
187 |
#if !defined(SWIFT_DEPRECATED_MSG) |
|
188 |
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) |
|
189 |
#endif |
|
190 |
#if __has_feature(attribute_diagnose_if_objc) |
|
191 |
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) |
|
192 |
#else |
|
193 |
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) |
|
194 |
#endif |
|
195 |
#if defined(__OBJC__) |
|
196 |
#if !defined(IBSegueAction) |
|
197 |
# define IBSegueAction |
|
198 |
#endif |
|
199 |
#endif |
|
200 |
#if !defined(SWIFT_EXTERN) |
|
201 |
# if defined(__cplusplus) |
|
202 |
# define SWIFT_EXTERN extern "C" |
|
203 |
# else |
|
204 |
# define SWIFT_EXTERN extern |
|
205 |
# endif |
|
206 |
#endif |
|
207 |
#if !defined(SWIFT_CALL) |
|
208 |
# define SWIFT_CALL __attribute__((swiftcall)) |
|
209 |
#endif |
|
210 |
#if defined(__cplusplus) |
|
211 |
#if !defined(SWIFT_NOEXCEPT) |
|
212 |
# define SWIFT_NOEXCEPT noexcept |
|
213 |
#endif |
|
214 |
#else |
|
215 |
#if !defined(SWIFT_NOEXCEPT) |
|
216 |
# define SWIFT_NOEXCEPT |
|
217 |
#endif |
|
218 |
#endif |
|
219 |
#if defined(__cplusplus) |
|
220 |
#if !defined(SWIFT_CXX_INT_DEFINED) |
|
221 |
#define SWIFT_CXX_INT_DEFINED |
|
222 |
namespace swift { |
|
223 |
using Int = ptrdiff_t; |
|
224 |
using UInt = size_t; |
|
225 |
} |
|
226 |
#endif |
|
227 |
#endif |
|
228 |
#if defined(__OBJC__) |
|
229 |
#if __has_feature(modules) |
|
230 |
#if __has_warning("-Watimport-in-framework-header") |
|
231 |
#pragma clang diagnostic ignored "-Watimport-in-framework-header" |
|
232 |
#endif |
|
233 |
@import CoreFoundation; |
|
234 |
@import FBSDKCoreKit; |
|
235 |
@import FBSDKShareKit; |
|
236 |
@import Foundation; |
|
237 |
@import ObjectiveC; |
|
238 |
#endif |
|
239 |
|
|
240 |
#endif |
|
241 |
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" |
|
242 |
#pragma clang diagnostic ignored "-Wduplicate-method-arg" |
|
243 |
#if __has_warning("-Wpragma-clang-attribute") |
|
244 |
# pragma clang diagnostic ignored "-Wpragma-clang-attribute" |
|
245 |
#endif |
|
246 |
#pragma clang diagnostic ignored "-Wunknown-pragmas" |
|
247 |
#pragma clang diagnostic ignored "-Wnullability" |
|
248 |
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" |
|
249 |
|
|
250 |
#if __has_attribute(external_source_symbol) |
|
251 |
# pragma push_macro("any") |
|
252 |
# undef any |
|
253 |
# 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)) |
|
254 |
# pragma pop_macro("any") |
|
255 |
#endif |
|
256 |
|
|
257 |
#if defined(__OBJC__) |
|
258 |
|
|
259 |
/// A protocol that a content object must conform to be used in a Gaming Services dialog |
|
260 |
SWIFT_PROTOCOL_NAMED("ValidatableProtocol") |
|
261 |
@protocol FBSDKValidatable |
|
262 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
263 |
@end |
|
264 |
|
|
265 |
enum FBSDKChooseContextFilter : NSInteger; |
|
266 |
@class NSString; |
|
267 |
|
|
268 |
/// A model for an instant games choose context app switch dialog |
|
269 |
SWIFT_CLASS_NAMED("ChooseContextContent") |
|
270 |
@interface FBSDKChooseContextContent : NSObject <FBSDKValidatable> |
|
271 |
/// This sets the filter which determines which context will show when the user is app switched to the choose context dialog. |
|
272 |
@property (nonatomic) enum FBSDKChooseContextFilter filter; |
|
273 |
/// This sets the maximum number of participants that the suggested context(s) shown in the dialog should have. |
|
274 |
@property (nonatomic) NSInteger maxParticipants; |
|
275 |
/// This sets the minimum number of participants that the suggested context(s) shown in the dialog should have. |
|
276 |
@property (nonatomic) NSInteger minParticipants; |
|
277 |
+ (NSString * _Nonnull)filtersNameForFilters:(enum FBSDKChooseContextFilter)filter SWIFT_WARN_UNUSED_RESULT; |
|
278 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
279 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
280 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
281 |
@end |
|
282 |
|
|
283 |
@protocol FBSDKContextDialogDelegate; |
|
284 |
|
|
285 |
/// The protocol sdk dialogs must conform to and implement all the following methods. |
|
286 |
SWIFT_PROTOCOL_NAMED("DialogProtocol") |
|
287 |
@protocol FBSDKDialog |
|
288 |
/// The receiver’s delegate or nil if it doesn’t have a delegate. |
|
289 |
@property (nonatomic, weak) id <FBSDKContextDialogDelegate> _Nullable delegate; |
|
290 |
/// The content object used to create the specific dialog |
|
291 |
@property (nonatomic, strong) id <FBSDKValidatable> _Nullable dialogContent; |
|
292 |
/// Begins to show the specfic dialog |
|
293 |
/// @return true if the receiver was able to show the dialog, otherwise false. |
|
294 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
295 |
/// Validates the content for the dialog |
|
296 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
297 |
@end |
|
298 |
|
|
299 |
@class FBSDKWebDialog; |
|
300 |
@protocol _FBSDKWindowFinding; |
|
301 |
|
|
302 |
/// A super class type for the context dialogs classes that show an in-app webview to display content. |
|
303 |
SWIFT_CLASS_NAMED("ContextWebDialog") |
|
304 |
@interface FBSDKContextWebDialog : NSObject <FBSDKWebDialogDelegate, FBSDKDialog> |
|
305 |
@property (nonatomic, strong) id <FBSDKContextDialogDelegate> _Nullable delegate; |
|
306 |
@property (nonatomic, strong) id <FBSDKValidatable> _Nullable dialogContent; |
|
307 |
@property (nonatomic, strong) FBSDKWebDialog * _Nullable currentWebDialog; |
|
308 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
309 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
310 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results; |
|
311 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error; |
|
312 |
- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog; |
|
313 |
/// Depending on the content size within the browser, this method allows for the resizing of web dialog |
|
314 |
- (CGRect)createWebDialogFrameWithWidth:(CGFloat)width height:(CGFloat)height windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder SWIFT_WARN_UNUSED_RESULT; |
|
315 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
316 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
317 |
@end |
|
318 |
|
|
319 |
@class UIApplication; |
|
320 |
@class NSURL; |
|
321 |
|
|
322 |
/// A dialog for the choose context through app switch |
|
323 |
SWIFT_CLASS_NAMED("ChooseContextDialog") |
|
324 |
@interface FBSDKChooseContextDialog : FBSDKContextWebDialog <FBSDKURLOpening> |
|
325 |
/// Convenience method to build up a choose context app switch with content and a delegate. |
|
326 |
/// @param content The content for the choose context dialog |
|
327 |
/// @param delegate The receiver’s delegate. |
|
328 |
- (nonnull instancetype)initWithContent:(FBSDKChooseContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate; |
|
329 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
330 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
331 |
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
332 |
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
333 |
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application; |
|
334 |
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
|
335 |
@end |
|
336 |
|
|
337 |
|
|
338 |
SWIFT_PROTOCOL_NAMED("Showable") |
|
339 |
@protocol FBSDKShowable |
|
340 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
341 |
@end |
|
342 |
|
|
343 |
|
|
344 |
@interface FBSDKChooseContextDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKShowable> |
|
345 |
@end |
|
346 |
|
|
347 |
typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKChooseContextFilter, "ChooseContextFilter", open) { |
|
348 |
FBSDKChooseContextFilterNone = 0, |
|
349 |
FBSDKChooseContextFilterExistingChallenges = 1, |
|
350 |
FBSDKChooseContextFilterNewPlayersOnly = 2, |
|
351 |
FBSDKChooseContextFilterNewContextOnly = 3, |
|
352 |
}; |
|
353 |
|
|
354 |
|
|
355 |
/// A delegate for context dialogs to communicate with the dialog handler. |
|
356 |
/// The delegate is notified with the results of the cross play request as long as the application has permissions to |
|
357 |
/// receive the information. For example, if the person is not signed into the containing app, the shower may not be able |
|
358 |
/// to distinguish between completion of a cross play request and cancellation. |
|
359 |
SWIFT_PROTOCOL_NAMED("ContextDialogDelegate") |
|
360 |
@protocol FBSDKContextDialogDelegate |
|
361 |
/// Sent to the delegate when the context dialog completes without error. |
|
362 |
/// @param contextDialog The FBSDKContextDialog that completed. |
|
363 |
- (void)contextDialogDidComplete:(FBSDKContextWebDialog * _Nonnull)contextDialog; |
|
364 |
/// Sent to the delegate when the context dialog encounters an error. |
|
365 |
/// @param contextDialog The FBSDKContextDialog that completed. |
|
366 |
/// @param error The error. |
|
367 |
- (void)contextDialog:(FBSDKContextWebDialog * _Nonnull)contextDialog didFailWithError:(NSError * _Nonnull)error; |
|
368 |
/// Sent to the delegate when the cross play request dialog is cancelled. |
|
369 |
/// @param contextDialog The FBSDKContextDialog that completed. |
|
370 |
- (void)contextDialogDidCancel:(FBSDKContextWebDialog * _Nonnull)contextDialog; |
|
371 |
@end |
|
372 |
|
|
373 |
@class FBSDKCreateContextContent; |
|
374 |
@class FBSDKSwitchContextContent; |
|
375 |
|
|
376 |
/// A dialog presenter responsible for creating and showing all the dialogs that create, switch, |
|
377 |
/// choose and otherwise manipulate the gaming context. |
|
378 |
SWIFT_CLASS_NAMED("ContextDialogPresenter") |
|
379 |
@interface FBSDKContextDialogPresenter : NSObject |
|
380 |
- (nonnull instancetype)init; |
|
381 |
/// Convenience method to build up and show an instant games create context dialog with content and delegate. |
|
382 |
/// \param content The content for the create context dialog |
|
383 |
/// |
|
384 |
/// \param delegate The receiver’s delegate. |
|
385 |
/// |
|
386 |
- (BOOL)makeAndShowCreateContextDialogWithContent:(FBSDKCreateContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error; |
|
387 |
/// Convenience method to build up and show an instant games switch context dialog with the giving content and delegate. |
|
388 |
/// \param content The content for the switch context dialog |
|
389 |
/// |
|
390 |
/// \param delegate The receiver’s delegate. |
|
391 |
/// |
|
392 |
- (BOOL)makeAndShowSwitchContextDialogWithContent:(FBSDKSwitchContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error; |
|
393 |
/// Convenience method to build up and show an instant games choose context dialog with content and a delegate. |
|
394 |
/// \param content The content for the choose context dialog |
|
395 |
/// |
|
396 |
/// \param delegate The receiver’s delegate. |
|
397 |
/// |
|
398 |
- (void)makeAndShowChooseContextDialogWithContent:(FBSDKChooseContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate; |
|
399 |
@end |
|
400 |
|
|
401 |
|
|
402 |
|
|
403 |
/// A model for an instant games createAsync cross play request. |
|
404 |
SWIFT_CLASS_NAMED("CreateContextContent") |
|
405 |
@interface FBSDKCreateContextContent : NSObject <FBSDKValidatable> |
|
406 |
/// The ID of the player that is being challenged. |
|
407 |
/// @return The ID for the player being challenged |
|
408 |
@property (nonatomic, copy) NSString * _Nonnull playerID; |
|
409 |
/// Builds a content object that will be use to display a create context dialog |
|
410 |
/// @param playerID The player ID of the user being challenged which will be used to create a game context |
|
411 |
- (nonnull instancetype)initDialogContentWithPlayerID:(NSString * _Nonnull)playerID OBJC_DESIGNATED_INITIALIZER; |
|
412 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
413 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
414 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
415 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
416 |
@end |
|
417 |
|
|
418 |
|
|
419 |
/// A dialog to create a context through a web view |
|
420 |
SWIFT_CLASS_NAMED("CreateContextDialog") |
|
421 |
@interface FBSDKCreateContextDialog : FBSDKContextWebDialog |
|
422 |
/// Builds a context creation web dialog with content and a delegate. |
|
423 |
/// @param content The content for the create context dialog |
|
424 |
/// @param windowFinder The application window finder that provides the window to display the dialog |
|
425 |
/// @param delegate The receiver’s delegate used to let the receiver know a context was created or failure |
|
426 |
- (nonnull instancetype)initWithContent:(FBSDKCreateContextContent * _Nonnull)content windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate OBJC_DESIGNATED_INITIALIZER; |
|
427 |
- (BOOL)show; |
|
428 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
429 |
@end |
|
430 |
|
|
431 |
|
|
432 |
@interface FBSDKCreateContextDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKShowable> |
|
433 |
@end |
|
434 |
|
|
435 |
|
|
436 |
|
|
437 |
|
|
438 |
SWIFT_CLASS_NAMED("FriendFinderDialog") |
|
439 |
@interface FBSDKFriendFinderDialog : NSObject |
|
440 |
- (nonnull instancetype)init; |
|
441 |
+ (void)launchFriendFinderDialogWithCompletionHandler:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completionHandler; |
|
442 |
@end |
|
443 |
|
|
444 |
/// Additional context about the nature of the game request. |
|
445 |
typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKGameRequestActionType, "GameRequestActionType", open) { |
|
446 |
/// No action type |
|
447 |
FBSDKGameRequestActionTypeNone = 0, |
|
448 |
/// Send action type: The user is sending an object to the friends. |
|
449 |
FBSDKGameRequestActionTypeSend = 1, |
|
450 |
/// Ask For action type: The user is asking for an object from friends. |
|
451 |
FBSDKGameRequestActionTypeAskFor = 2, |
|
452 |
/// Turn action type: It is the turn of the friends to play against the user in a match. |
|
453 |
FBSDKGameRequestActionTypeTurn = 3, |
|
454 |
/// Invite action type: The user is inviting a friend. |
|
455 |
FBSDKGameRequestActionTypeInvite = 4, |
|
456 |
}; |
|
457 |
|
|
458 |
enum FBSDKGameRequestFilter : NSUInteger; |
|
459 |
@class NSCoder; |
|
460 |
|
|
461 |
/// A model for a game request. |
|
462 |
SWIFT_CLASS_NAMED("GameRequestContent") |
|
463 |
@interface FBSDKGameRequestContent : NSObject <FBSDKSharingValidatable, NSSecureCoding> |
|
464 |
/// Used when defining additional context about the nature of the request. |
|
465 |
/// The parameter ‘objectID’ is required if the action type is either |
|
466 |
/// ‘.send’ or ‘.askFor’. |
|
467 |
/// seealso: |
|
468 |
/// objectID |
|
469 |
@property (nonatomic) enum FBSDKGameRequestActionType actionType; |
|
470 |
/// Additional freeform data you may pass for tracking. This will be stored as part of |
|
471 |
/// the request objects created. The maximum length is 255 characters. |
|
472 |
@property (nonatomic, copy) NSString * _Nullable data; |
|
473 |
/// This controls the set of friends someone sees if a multi-friend selector is shown. |
|
474 |
/// It is <code>.none</code> by default, meaning that all friends can be shown. |
|
475 |
/// If specify as <code>.appUsers</code>, only friends who use the app will be shown. |
|
476 |
/// On the other hands, use <code>.appNonUsers</code> to filter only friends who do not use the app. |
|
477 |
/// The parameter name is preserved to be consistent with the counter part on desktop. |
|
478 |
@property (nonatomic) enum FBSDKGameRequestFilter filters; |
|
479 |
/// A plain-text message to be sent as part of the request. This text will surface in the App Center view |
|
480 |
/// of the request, but not on the notification jewel. Required parameter. |
|
481 |
@property (nonatomic, copy) NSString * _Nonnull message; |
|
482 |
/// The Open Graph object ID of the object being sent. |
|
483 |
/// seealso: |
|
484 |
/// actionType |
|
485 |
@property (nonatomic, copy) NSString * _Nonnull objectID; |
|
486 |
/// An array of user IDs, usernames or invite tokens (NSString) of people to send request. |
|
487 |
/// These may or may not be a friend of the sender. If this is specified by the app, |
|
488 |
/// the sender will not have a choice of recipients. If not, the sender will see a multi-friend selector |
|
489 |
/// This is equivalent to the “to” parameter when using the web game request dialog. |
|
490 |
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull recipients; |
|
491 |
/// An array of user IDs that will be included in the dialog as the first suggested friends. |
|
492 |
/// Cannot be used together with filters. |
|
493 |
/// This is equivalent to the <code>suggestions</code> parameter when using the web game request dialog. |
|
494 |
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull recipientSuggestions; |
|
495 |
/// The title for the dialog. |
|
496 |
@property (nonatomic, copy) NSString * _Nonnull title; |
|
497 |
/// The call to action for the dialog. |
|
498 |
@property (nonatomic, copy) NSString * _Nonnull cta; |
|
499 |
- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error; |
|
500 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
501 |
/// Compares the receiver to another game request content. |
|
502 |
/// @param content The other content |
|
503 |
/// @return <code>true</code> if the receiver’s values are equal to the other content’s values; otherwise <code>false</code> |
|
504 |
- (BOOL)isEqualToGameRequestContent:(FBSDKGameRequestContent * _Nonnull)content SWIFT_WARN_UNUSED_RESULT; |
|
505 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;) |
|
506 |
+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; |
|
507 |
- (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)decoder; |
|
508 |
- (void)encodeWithCoder:(NSCoder * _Nonnull)encoder; |
|
509 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
510 |
@end |
|
511 |
|
|
512 |
@protocol FBSDKGameRequestDialogDelegate; |
|
513 |
|
|
514 |
/// A dialog for sending game requests. |
|
515 |
SWIFT_CLASS_NAMED("GameRequestDialog") |
|
516 |
@interface FBSDKGameRequestDialog : NSObject |
|
517 |
/// The receiver’s delegate or nil if it doesn’t have a delegate. |
|
518 |
@property (nonatomic, weak) id <FBSDKGameRequestDialogDelegate> _Nullable delegate; |
|
519 |
/// The content for game request. |
|
520 |
@property (nonatomic, strong) FBSDKGameRequestContent * _Nonnull content; |
|
521 |
/// Specifies whether frictionless requests are enabled. |
|
522 |
@property (nonatomic) BOOL isFrictionlessRequestsEnabled; |
|
523 |
/// A Boolean value that indicates whether the receiver can initiate a game request. |
|
524 |
/// May return <code>false</code> if the appropriate Facebook app is not installed and is required or an access token is |
|
525 |
/// required but not available. This method does not validate the content on the receiver, so this can be checked before |
|
526 |
/// building up the content. |
|
527 |
/// See <code>validate()</code> |
|
528 |
/// @return <code>true</code> if the receiver can share, otherwise <code>false</code>. |
|
529 |
@property (nonatomic, readonly) BOOL canShow; |
|
530 |
- (nonnull instancetype)initWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate OBJC_DESIGNATED_INITIALIZER; |
|
531 |
/// Convenience method to build up a game request with content and a delegate. |
|
532 |
/// @param content The content for the game request. |
|
533 |
/// @param delegate The receiver’s delegate. |
|
534 |
+ (FBSDKGameRequestDialog * _Nonnull)dialogWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; |
|
535 |
/// Convenience method to build up and show a game request with content and a delegate. |
|
536 |
/// @param content The content for the game request. |
|
537 |
/// @param delegate The receiver’s delegate. |
|
538 |
+ (FBSDKGameRequestDialog * _Nonnull)showWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate; |
|
539 |
/// Begins the game request from the receiver. |
|
540 |
/// @return <code>true</code> if the receiver was able to show the dialog, otherwise <code>false</code>. |
|
541 |
- (BOOL)show; |
|
542 |
/// Validates the content on the receiver. |
|
543 |
- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; |
|
544 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
545 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
546 |
@end |
|
547 |
|
|
548 |
|
|
549 |
|
|
550 |
@interface FBSDKGameRequestDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKWebDialogDelegate> |
|
551 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results; |
|
552 |
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error; |
|
553 |
- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog; |
|
554 |
@end |
|
555 |
|
|
556 |
|
|
557 |
@interface FBSDKGameRequestDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKURLOpening> |
|
558 |
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)potentialURL sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
559 |
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
560 |
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application; |
|
561 |
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
|
562 |
@end |
|
563 |
|
|
564 |
|
|
565 |
/// A delegate for <code>GameRequestDialog</code>. |
|
566 |
/// The delegate is notified with the results of the game request as long as the application has permissions to |
|
567 |
/// receive the information. For example, if the person is not signed into the containing app, the shower may not be able |
|
568 |
/// to distinguish between completion of a game request and cancellation. |
|
569 |
SWIFT_PROTOCOL_NAMED("GameRequestDialogDelegate") |
|
570 |
@protocol FBSDKGameRequestDialogDelegate |
|
571 |
/// Sent to the delegate when the game request completes without error. |
|
572 |
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed. |
|
573 |
/// @param results The results from the dialog. This may be nil or empty. |
|
574 |
- (void)gameRequestDialog:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results; |
|
575 |
/// Sent to the delegate when the game request encounters an error. |
|
576 |
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed. |
|
577 |
/// @param error The error. |
|
578 |
- (void)gameRequestDialog:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog didFailWithError:(NSError * _Nonnull)error; |
|
579 |
/// Sent to the delegate when the game request dialog is cancelled. |
|
580 |
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed. |
|
581 |
- (void)gameRequestDialogDidCancel:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog; |
|
582 |
@end |
|
583 |
|
|
584 |
/// Filter for who can be displayed in the multi-friend selector. |
|
585 |
typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKGameRequestFilter, "GameRequestFilter", open) { |
|
586 |
/// No filter, all friends can be displayed. |
|
587 |
FBSDKGameRequestFilterNone = 0, |
|
588 |
/// Friends using the app can be displayed. |
|
589 |
FBSDKGameRequestFilterAppUsers = 1, |
|
590 |
/// Friends not using the app can be displayed. |
|
591 |
FBSDKGameRequestFilterAppNonUsers = 2, |
|
592 |
/// All friends can be displayed if FB app is installed. |
|
593 |
FBSDKGameRequestFilterEverybody = 3, |
|
594 |
}; |
|
595 |
|
|
596 |
|
|
597 |
SWIFT_CLASS_NAMED("GameRequestURLProvider") |
|
598 |
@interface FBSDKGameRequestURLProvider : NSObject |
|
599 |
+ (NSURL * _Nullable)createDeepLinkURLWithQueryDictionary:(NSDictionary<NSString *, id> * _Nonnull)queryDictionary SWIFT_WARN_UNUSED_RESULT; |
|
600 |
+ (NSString * _Nullable)filtersNameForFilters:(enum FBSDKGameRequestFilter)filters SWIFT_WARN_UNUSED_RESULT; |
|
601 |
+ (NSString * _Nullable)actionTypeNameForActionType:(enum FBSDKGameRequestActionType)actionType SWIFT_WARN_UNUSED_RESULT; |
|
602 |
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
|
603 |
@end |
|
604 |
|
|
605 |
|
|
606 |
|
|
607 |
|
|
608 |
SWIFT_CLASS_NAMED("GamingContext") |
|
609 |
@interface FBSDKGamingContext : NSObject |
|
610 |
/// A shared object that holds data about the current user’s game instance which could be solo game or multiplayer game with other users. |
|
611 |
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) FBSDKGamingContext * _Nullable currentContext;) |
|
612 |
+ (FBSDKGamingContext * _Nullable)currentContext SWIFT_WARN_UNUSED_RESULT; |
|
613 |
+ (void)setCurrentContext:(FBSDKGamingContext * _Nullable)value; |
|
614 |
/// A unique identifier for the current game context. This represents a specific game instance that the user is playing in. |
|
615 |
@property (nonatomic, readonly, copy) NSString * _Nonnull identifier; |
|
616 |
/// The number of players in the current user’s game instance |
|
617 |
@property (nonatomic, readonly) NSInteger size; |
|
618 |
- (nullable instancetype)initWithIdentifier:(NSString * _Nonnull)identifier size:(NSInteger)size OBJC_DESIGNATED_INITIALIZER; |
|
619 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
620 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
621 |
@end |
|
622 |
|
|
623 |
|
|
624 |
SWIFT_CLASS_NAMED("GamingGroupIntegration") |
|
625 |
@interface FBSDKGamingGroupIntegration : NSObject |
|
626 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
627 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
628 |
+ (void)openGroupPageWithCompletionHandler:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completionHandler; |
|
629 |
@end |
|
630 |
|
|
631 |
@class FBSDKGamingImageUploaderConfiguration; |
|
632 |
|
|
633 |
SWIFT_CLASS_NAMED("GamingImageUploader") |
|
634 |
@interface FBSDKGamingImageUploader : NSObject |
|
635 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
636 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
637 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
638 |
/// @param configuration model object contain the content that will be uploaded |
|
639 |
/// @param completion a callback that is fired dependent on the configuration. |
|
640 |
/// Fired when the upload completes or when the users returns to the caller app |
|
641 |
/// after the media dialog is shown. |
|
642 |
+ (void)uploadImageWithConfiguration:(FBSDKGamingImageUploaderConfiguration * _Nonnull)configuration andResultCompletion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion; |
|
643 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
644 |
/// @param configuration model object contain the content that will be uploaded |
|
645 |
/// @param completion a callback that is fired dependent on the configuration. |
|
646 |
/// Fired when the upload completes or when the users returns to the caller app |
|
647 |
/// after the media dialog is shown. |
|
648 |
/// @param progressHandler an optional callback that is fired multiple times as |
|
649 |
/// bytes are transferred to Facebook. |
|
650 |
+ (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; |
|
651 |
@end |
|
652 |
|
|
653 |
@protocol FBSDKGraphRequestConnecting; |
|
654 |
|
|
655 |
@interface FBSDKGamingImageUploader (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKGraphRequestConnectionDelegate> |
|
656 |
- (void)requestConnection:(id <FBSDKGraphRequestConnecting> _Nonnull)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; |
|
657 |
@end |
|
658 |
|
|
659 |
@class UIImage; |
|
660 |
|
|
661 |
SWIFT_CLASS_NAMED("GamingImageUploaderConfiguration") |
|
662 |
@interface FBSDKGamingImageUploaderConfiguration : NSObject |
|
663 |
@property (nonatomic, readonly, strong) UIImage * _Nonnull image; |
|
664 |
@property (nonatomic, readonly, copy) NSString * _Nullable caption; |
|
665 |
@property (nonatomic, readonly) BOOL shouldLaunchMediaDialog; |
|
666 |
/// A model for Gaming image upload content to be shared. |
|
667 |
/// @param image the image that will be shared. |
|
668 |
/// @param caption and optional caption that will appear along side the image on Facebook. |
|
669 |
/// @param shouldLaunchMediaDialog whether or not to open the media dialog on Facebook when the upload completes. |
|
670 |
- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image caption:(NSString * _Nullable)caption shouldLaunchMediaDialog:(BOOL)shouldLaunchMediaDialog OBJC_DESIGNATED_INITIALIZER; |
|
671 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
672 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
673 |
@end |
|
674 |
|
|
675 |
@class FBSDKURL; |
|
676 |
|
|
677 |
SWIFT_CLASS_NAMED("GamingPayload") |
|
678 |
@interface FBSDKGamingPayload : NSObject |
|
679 |
@property (nonatomic, strong) FBSDKURL * _Nonnull URL; |
|
680 |
@property (nonatomic, copy) NSString * _Nonnull payload; |
|
681 |
- (nonnull instancetype)initWithURL:(FBSDKURL * _Nonnull)URL OBJC_DESIGNATED_INITIALIZER; |
|
682 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
683 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
684 |
@end |
|
685 |
|
|
686 |
|
|
687 |
SWIFT_PROTOCOL_NAMED("GamingPayloadDelegate") |
|
688 |
@protocol FBSDKGamingPayloadDelegate <NSObject> |
|
689 |
@optional |
|
690 |
/// Delegate method will be triggered when a <code>GamingPayloadObserver</code> parses a url with a payload and game request ID |
|
691 |
/// @param payload The payload recieved in the url |
|
692 |
/// @param gameRequestID The game request ID recieved in the url |
|
693 |
- (void)parsedGameRequestURLContaining:(FBSDKGamingPayload * _Nonnull)payload gameRequestID:(NSString * _Nonnull)gameRequestID; |
|
694 |
/// 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. |
|
695 |
/// @param payload The payload recieved in the url |
|
696 |
- (void)parsedGamingContextURLContaining:(FBSDKGamingPayload * _Nonnull)payload; |
|
697 |
/// Delegate method will be triggered when a <code>GamingPayloadObserver</code> parses a url with a payload and tournament ID |
|
698 |
/// @param payload The payload associated with the tournament |
|
699 |
/// @param tournamentID The tournament ID the player wants to enter |
|
700 |
- (void)parsedTournamentURLContaining:(FBSDKGamingPayload * _Nonnull)payload tournamentID:(NSString * _Nonnull)tournamentID; |
|
701 |
@end |
|
702 |
|
|
703 |
|
|
704 |
SWIFT_CLASS_NAMED("GamingPayloadObserver") |
|
705 |
@interface FBSDKGamingPayloadObserver : NSObject |
|
706 |
@property (nonatomic, weak) id <FBSDKGamingPayloadDelegate> _Nullable delegate; |
|
707 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
708 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
709 |
- (nonnull instancetype)initWithDelegate:(id <FBSDKGamingPayloadDelegate> _Nullable)delegate; |
|
710 |
@end |
|
711 |
|
|
712 |
|
|
713 |
@interface FBSDKGamingPayloadObserver (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKApplicationObserving> |
|
714 |
- (BOOL)application:(UIApplication * _Nonnull)application openURL:(NSURL * _Nonnull)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
715 |
@end |
|
716 |
|
|
717 |
@class FBSDKGamingVideoUploaderConfiguration; |
|
718 |
|
|
719 |
SWIFT_CLASS_NAMED("GamingVideoUploader") |
|
720 |
@interface FBSDKGamingVideoUploader : NSObject |
|
721 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
722 |
/// @param configuration model object contain the content that will be uploaded |
|
723 |
/// @param completion a callback that is fired when the upload completes. |
|
724 |
+ (void)uploadVideoWithConfiguration:(FBSDKGamingVideoUploaderConfiguration * _Nonnull)configuration andResultCompletion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion; |
|
725 |
/// Runs an upload to a users Gaming Media Library with the given configuration |
|
726 |
/// @param configuration model object contain the content that will be uploaded |
|
727 |
/// @param completion a callback that is fired when the upload completes. |
|
728 |
/// @param progressHandler an optional callback that is fired multiple times as bytes are transferred to Facebook. |
|
729 |
+ (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; |
|
730 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
731 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
732 |
@end |
|
733 |
|
|
734 |
|
|
735 |
|
|
736 |
SWIFT_CLASS_NAMED("GamingVideoUploaderConfiguration") |
|
737 |
@interface FBSDKGamingVideoUploaderConfiguration : NSObject |
|
738 |
@property (nonatomic, readonly, copy) NSURL * _Nonnull videoURL; |
|
739 |
@property (nonatomic, readonly, copy) NSString * _Nullable caption; |
|
740 |
/// A model for Gaming video upload content to be shared. |
|
741 |
/// @param videoURL a url to the videos location on local disk. |
|
742 |
/// @param caption and optional caption that will appear along side the video on Facebook. |
|
743 |
- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL caption:(NSString * _Nullable)caption OBJC_DESIGNATED_INITIALIZER; |
|
744 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
745 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
746 |
@end |
|
747 |
|
|
748 |
|
|
749 |
SWIFT_CLASS("_TtC22FBSDKGamingServicesKit21ShareTournamentDialog") |
|
750 |
@interface ShareTournamentDialog : NSObject <FBSDKURLOpening> |
|
751 |
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; |
|
752 |
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
753 |
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT; |
|
754 |
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application; |
|
755 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
756 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
757 |
@end |
|
758 |
|
|
759 |
|
|
760 |
|
|
761 |
/// A model for an instant games switchAsync cross play request. |
|
762 |
SWIFT_CLASS_NAMED("SwitchContextContent") |
|
763 |
@interface FBSDKSwitchContextContent : NSObject <FBSDKValidatable> |
|
764 |
- (nonnull instancetype)initDialogContentWithContextID:(NSString * _Nonnull)contextID OBJC_DESIGNATED_INITIALIZER; |
|
765 |
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; |
|
766 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
767 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
768 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
769 |
@end |
|
770 |
|
|
771 |
|
|
772 |
/// A dialog to switch the current gaming context through a web view |
|
773 |
SWIFT_CLASS_NAMED("SwitchContextDialog") |
|
774 |
@interface FBSDKSwitchContextDialog : FBSDKContextWebDialog <FBSDKShowable> |
|
775 |
/// Creates a switch context web dialog with content and a delegate. |
|
776 |
/// \param content The content for the switch context dialog |
|
777 |
/// |
|
778 |
/// \param windowFinder The application window finder that provides the window to display the dialog |
|
779 |
/// |
|
780 |
/// \param delegate The receiver’s delegate used to let the receiver know a context switch was successful or failed |
|
781 |
/// |
|
782 |
- (nonnull instancetype)initWithContent:(FBSDKSwitchContextContent * _Nonnull)content windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate OBJC_DESIGNATED_INITIALIZER; |
|
783 |
- (BOOL)show SWIFT_WARN_UNUSED_RESULT; |
|
784 |
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error; |
|
785 |
@end |
|
786 |
|
|
787 |
|
|
788 |
|
|
789 |
|
|
790 |
|
|
791 |
#endif |
|
792 |
#if defined(__cplusplus) |
|
793 |
#endif |
|
794 |
#if __has_attribute(external_source_symbol) |
|
795 |
# pragma clang attribute pop |
|
796 |
#endif |
|
797 |
#pragma clang diagnostic pop |
|
798 |
#endif |
|
799 |
|
|
800 |
#else |
|
801 |
#error unsupported Swift architecture |
|
802 |
#endif |