[U] Upgrade to Unity 2022.3.53f1
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,849 @@
|
||||
#if 0
|
||||
#elif defined(__arm64__) && __arm64__
|
||||
// Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
|
||||
#ifndef FBSDKGAMINGSERVICESKIT_SWIFT_H
|
||||
#define FBSDKGAMINGSERVICESKIT_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wgcc-compat"
|
||||
|
||||
#if !defined(__has_include)
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
#if !defined(__has_attribute)
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
#if !defined(__has_feature)
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
#if !defined(__has_warning)
|
||||
# define __has_warning(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_include(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#if defined(__OBJC__)
|
||||
#include <Foundation/Foundation.h>
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <cstdbool>
|
||||
#include <cstring>
|
||||
#include <stdlib.h>
|
||||
#include <new>
|
||||
#include <type_traits>
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
||||
# include <ptrauth.h>
|
||||
#else
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
||||
# ifndef __ptrauth_swift_value_witness_function_pointer
|
||||
# define __ptrauth_swift_value_witness_function_pointer(x)
|
||||
# endif
|
||||
# ifndef __ptrauth_swift_class_method_pointer
|
||||
# define __ptrauth_swift_class_method_pointer(x)
|
||||
# endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# elif !defined(__cplusplus)
|
||||
typedef uint_least16_t char16_t;
|
||||
typedef uint_least32_t char32_t;
|
||||
# endif
|
||||
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PASTE)
|
||||
# define SWIFT_PASTE_HELPER(x, y) x##y
|
||||
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
||||
#endif
|
||||
#if !defined(SWIFT_METATYPE)
|
||||
# define SWIFT_METATYPE(X) Class
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_PROPERTY)
|
||||
# if __has_feature(objc_class_property)
|
||||
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
||||
# else
|
||||
# define SWIFT_CLASS_PROPERTY(...)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RUNTIME_NAME)
|
||||
# if __has_attribute(objc_runtime_name)
|
||||
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
||||
# else
|
||||
# define SWIFT_RUNTIME_NAME(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_COMPILE_NAME)
|
||||
# if __has_attribute(swift_name)
|
||||
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
||||
# else
|
||||
# define SWIFT_COMPILE_NAME(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_METHOD_FAMILY)
|
||||
# if __has_attribute(objc_method_family)
|
||||
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
||||
# else
|
||||
# define SWIFT_METHOD_FAMILY(X)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_NOESCAPE)
|
||||
# if __has_attribute(noescape)
|
||||
# define SWIFT_NOESCAPE __attribute__((noescape))
|
||||
# else
|
||||
# define SWIFT_NOESCAPE
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
||||
# if __has_attribute(ns_consumed)
|
||||
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
||||
# else
|
||||
# define SWIFT_RELEASES_ARGUMENT
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
||||
# if __has_attribute(warn_unused_result)
|
||||
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
# else
|
||||
# define SWIFT_WARN_UNUSED_RESULT
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_NORETURN)
|
||||
# if __has_attribute(noreturn)
|
||||
# define SWIFT_NORETURN __attribute__((noreturn))
|
||||
# else
|
||||
# define SWIFT_NORETURN
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_EXTRA)
|
||||
# define SWIFT_CLASS_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
||||
# define SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_EXTRA)
|
||||
# define SWIFT_ENUM_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS)
|
||||
# if __has_attribute(objc_subclassing_restricted)
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# else
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RESILIENT_CLASS)
|
||||
# if __has_attribute(objc_class_stub)
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# else
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL)
|
||||
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_EXTENSION)
|
||||
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
||||
#endif
|
||||
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
||||
# if __has_attribute(objc_designated_initializer)
|
||||
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
||||
# else
|
||||
# define OBJC_DESIGNATED_INITIALIZER
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_ATTR)
|
||||
# if __has_attribute(enum_extensibility)
|
||||
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
||||
# else
|
||||
# define SWIFT_ENUM_ATTR(_extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM)
|
||||
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# if __has_feature(generalized_swift_name)
|
||||
# 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
|
||||
# else
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE)
|
||||
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
||||
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
||||
#endif
|
||||
#if !defined(SWIFT_AVAILABILITY)
|
||||
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_WEAK_IMPORT)
|
||||
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED)
|
||||
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_MSG)
|
||||
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_OBJC)
|
||||
# if __has_feature(attribute_diagnose_if_objc)
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
||||
# else
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
||||
# endif
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if !defined(IBSegueAction)
|
||||
# define IBSegueAction
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(SWIFT_EXTERN)
|
||||
# if defined(__cplusplus)
|
||||
# define SWIFT_EXTERN extern "C"
|
||||
# else
|
||||
# define SWIFT_EXTERN extern
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_CALL)
|
||||
# define SWIFT_CALL __attribute__((swiftcall))
|
||||
#endif
|
||||
#if !defined(SWIFT_INDIRECT_RESULT)
|
||||
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
||||
#endif
|
||||
#if !defined(SWIFT_CONTEXT)
|
||||
# define SWIFT_CONTEXT __attribute__((swift_context))
|
||||
#endif
|
||||
#if !defined(SWIFT_ERROR_RESULT)
|
||||
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
# define SWIFT_NOEXCEPT noexcept
|
||||
#else
|
||||
# define SWIFT_NOEXCEPT
|
||||
#endif
|
||||
#if !defined(SWIFT_C_INLINE_THUNK)
|
||||
# if __has_attribute(always_inline)
|
||||
# if __has_attribute(nodebug)
|
||||
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
||||
# else
|
||||
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
||||
# endif
|
||||
# else
|
||||
# define SWIFT_C_INLINE_THUNK inline
|
||||
# endif
|
||||
#endif
|
||||
#if defined(_WIN32)
|
||||
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
||||
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
||||
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__OBJC__)
|
||||
#if __has_feature(objc_modules)
|
||||
#if __has_warning("-Watimport-in-framework-header")
|
||||
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
||||
#endif
|
||||
@import CoreFoundation;
|
||||
@import FBSDKCoreKit;
|
||||
@import FBSDKShareKit;
|
||||
@import Foundation;
|
||||
@import ObjectiveC;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
||||
#if __has_warning("-Wpragma-clang-attribute")
|
||||
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
||||
#pragma clang diagnostic ignored "-Wnullability"
|
||||
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma push_macro("any")
|
||||
# undef any
|
||||
# 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))
|
||||
# pragma pop_macro("any")
|
||||
#endif
|
||||
|
||||
#if defined(__OBJC__)
|
||||
|
||||
/// A protocol that a content object must conform to be used in a Gaming Services dialog
|
||||
SWIFT_PROTOCOL_NAMED("ValidatableProtocol")
|
||||
@protocol FBSDKValidatable
|
||||
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error;
|
||||
@end
|
||||
|
||||
enum FBSDKChooseContextFilter : NSInteger;
|
||||
@class NSString;
|
||||
|
||||
/// A model for an instant games choose context app switch dialog
|
||||
SWIFT_CLASS_NAMED("ChooseContextContent")
|
||||
@interface FBSDKChooseContextContent : NSObject <FBSDKValidatable>
|
||||
/// This sets the filter which determines which context will show when the user is app switched to the choose context dialog.
|
||||
@property (nonatomic) enum FBSDKChooseContextFilter filter;
|
||||
/// This sets the maximum number of participants that the suggested context(s) shown in the dialog should have.
|
||||
@property (nonatomic) NSInteger maxParticipants;
|
||||
/// This sets the minimum number of participants that the suggested context(s) shown in the dialog should have.
|
||||
@property (nonatomic) NSInteger minParticipants;
|
||||
+ (NSString * _Nonnull)filtersNameForFilters:(enum FBSDKChooseContextFilter)filter SWIFT_WARN_UNUSED_RESULT;
|
||||
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error;
|
||||
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
||||
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
||||
@end
|
||||
|
||||
@protocol FBSDKContextDialogDelegate;
|
||||
|
||||
/// The protocol sdk dialogs must conform to and implement all the following methods.
|
||||
SWIFT_PROTOCOL_NAMED("DialogProtocol")
|
||||
@protocol FBSDKDialog
|
||||
/// The receiver’s delegate or nil if it doesn’t have a delegate.
|
||||
@property (nonatomic, weak) id <FBSDKContextDialogDelegate> _Nullable delegate;
|
||||
/// The content object used to create the specific dialog
|
||||
@property (nonatomic, strong) id <FBSDKValidatable> _Nullable dialogContent;
|
||||
/// Begins to show the specfic dialog
|
||||
/// @return true if the receiver was able to show the dialog, otherwise false.
|
||||
- (BOOL)show SWIFT_WARN_UNUSED_RESULT;
|
||||
/// Validates the content for the dialog
|
||||
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error;
|
||||
@end
|
||||
|
||||
@class FBSDKWebDialog;
|
||||
@protocol _FBSDKWindowFinding;
|
||||
|
||||
/// A super class type for the context dialogs classes that show an in-app webview to display content.
|
||||
SWIFT_CLASS_NAMED("ContextWebDialog")
|
||||
@interface FBSDKContextWebDialog : NSObject <FBSDKWebDialogDelegate, FBSDKDialog>
|
||||
@property (nonatomic, strong) id <FBSDKContextDialogDelegate> _Nullable delegate;
|
||||
@property (nonatomic, strong) id <FBSDKValidatable> _Nullable dialogContent;
|
||||
@property (nonatomic, strong) FBSDKWebDialog * _Nullable currentWebDialog;
|
||||
- (BOOL)show SWIFT_WARN_UNUSED_RESULT;
|
||||
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error;
|
||||
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results;
|
||||
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error;
|
||||
- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog;
|
||||
/// Depending on the content size within the browser, this method allows for the resizing of web dialog
|
||||
- (CGRect)createWebDialogFrameWithWidth:(CGFloat)width height:(CGFloat)height windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder SWIFT_WARN_UNUSED_RESULT;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
@end
|
||||
|
||||
@class UIApplication;
|
||||
@class NSURL;
|
||||
|
||||
/// A dialog for the choose context through app switch
|
||||
SWIFT_CLASS_NAMED("ChooseContextDialog")
|
||||
@interface FBSDKChooseContextDialog : FBSDKContextWebDialog <FBSDKURLOpening>
|
||||
/// Convenience method to build up a choose context app switch with content and a delegate.
|
||||
/// @param content The content for the choose context dialog
|
||||
/// @param delegate The receiver’s delegate.
|
||||
- (nonnull instancetype)initWithContent:(FBSDKChooseContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate;
|
||||
- (BOOL)show SWIFT_WARN_UNUSED_RESULT;
|
||||
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error;
|
||||
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT;
|
||||
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT;
|
||||
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application;
|
||||
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT;
|
||||
@end
|
||||
|
||||
|
||||
SWIFT_PROTOCOL_NAMED("Showable")
|
||||
@protocol FBSDKShowable
|
||||
- (BOOL)show SWIFT_WARN_UNUSED_RESULT;
|
||||
@end
|
||||
|
||||
|
||||
@interface FBSDKChooseContextDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKShowable>
|
||||
@end
|
||||
|
||||
typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKChooseContextFilter, "ChooseContextFilter", open) {
|
||||
FBSDKChooseContextFilterNone = 0,
|
||||
FBSDKChooseContextFilterExistingChallenges = 1,
|
||||
FBSDKChooseContextFilterNewPlayersOnly = 2,
|
||||
FBSDKChooseContextFilterNewContextOnly = 3,
|
||||
};
|
||||
|
||||
|
||||
/// A delegate for context dialogs to communicate with the dialog handler.
|
||||
/// The delegate is notified with the results of the cross play request as long as the application has permissions to
|
||||
/// receive the information. For example, if the person is not signed into the containing app, the shower may not be able
|
||||
/// to distinguish between completion of a cross play request and cancellation.
|
||||
SWIFT_PROTOCOL_NAMED("ContextDialogDelegate")
|
||||
@protocol FBSDKContextDialogDelegate
|
||||
/// Sent to the delegate when the context dialog completes without error.
|
||||
/// @param contextDialog The FBSDKContextDialog that completed.
|
||||
- (void)contextDialogDidComplete:(FBSDKContextWebDialog * _Nonnull)contextDialog;
|
||||
/// Sent to the delegate when the context dialog encounters an error.
|
||||
/// @param contextDialog The FBSDKContextDialog that completed.
|
||||
/// @param error The error.
|
||||
- (void)contextDialog:(FBSDKContextWebDialog * _Nonnull)contextDialog didFailWithError:(NSError * _Nonnull)error;
|
||||
/// Sent to the delegate when the cross play request dialog is cancelled.
|
||||
/// @param contextDialog The FBSDKContextDialog that completed.
|
||||
- (void)contextDialogDidCancel:(FBSDKContextWebDialog * _Nonnull)contextDialog;
|
||||
@end
|
||||
|
||||
@class FBSDKCreateContextContent;
|
||||
@class FBSDKSwitchContextContent;
|
||||
|
||||
/// A dialog presenter responsible for creating and showing all the dialogs that create, switch,
|
||||
/// choose and otherwise manipulate the gaming context.
|
||||
SWIFT_CLASS_NAMED("ContextDialogPresenter")
|
||||
@interface FBSDKContextDialogPresenter : NSObject
|
||||
- (nonnull instancetype)init;
|
||||
/// Convenience method to build up and show an instant games create context dialog with content and delegate.
|
||||
/// \param content The content for the create context dialog
|
||||
///
|
||||
/// \param delegate The receiver’s delegate.
|
||||
///
|
||||
- (BOOL)makeAndShowCreateContextDialogWithContent:(FBSDKCreateContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error;
|
||||
/// Convenience method to build up and show an instant games switch context dialog with the giving content and delegate.
|
||||
/// \param content The content for the switch context dialog
|
||||
///
|
||||
/// \param delegate The receiver’s delegate.
|
||||
///
|
||||
- (BOOL)makeAndShowSwitchContextDialogWithContent:(FBSDKSwitchContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate error:(NSError * _Nullable * _Nullable)error;
|
||||
/// Convenience method to build up and show an instant games choose context dialog with content and a delegate.
|
||||
/// \param content The content for the choose context dialog
|
||||
///
|
||||
/// \param delegate The receiver’s delegate.
|
||||
///
|
||||
- (void)makeAndShowChooseContextDialogWithContent:(FBSDKChooseContextContent * _Nonnull)content delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate;
|
||||
@end
|
||||
|
||||
|
||||
|
||||
/// A model for an instant games createAsync cross play request.
|
||||
SWIFT_CLASS_NAMED("CreateContextContent")
|
||||
@interface FBSDKCreateContextContent : NSObject <FBSDKValidatable>
|
||||
/// The ID of the player that is being challenged.
|
||||
/// @return The ID for the player being challenged
|
||||
@property (nonatomic, copy) NSString * _Nonnull playerID;
|
||||
/// Builds a content object that will be use to display a create context dialog
|
||||
/// @param playerID The player ID of the user being challenged which will be used to create a game context
|
||||
- (nonnull instancetype)initDialogContentWithPlayerID:(NSString * _Nonnull)playerID OBJC_DESIGNATED_INITIALIZER;
|
||||
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
||||
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
@end
|
||||
|
||||
|
||||
/// A dialog to create a context through a web view
|
||||
SWIFT_CLASS_NAMED("CreateContextDialog")
|
||||
@interface FBSDKCreateContextDialog : FBSDKContextWebDialog
|
||||
/// Builds a context creation web dialog with content and a delegate.
|
||||
/// @param content The content for the create context dialog
|
||||
/// @param windowFinder The application window finder that provides the window to display the dialog
|
||||
/// @param delegate The receiver’s delegate used to let the receiver know a context was created or failure
|
||||
- (nonnull instancetype)initWithContent:(FBSDKCreateContextContent * _Nonnull)content windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate OBJC_DESIGNATED_INITIALIZER;
|
||||
- (BOOL)show;
|
||||
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error;
|
||||
@end
|
||||
|
||||
|
||||
@interface FBSDKCreateContextDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKShowable>
|
||||
@end
|
||||
|
||||
|
||||
|
||||
|
||||
SWIFT_CLASS_NAMED("FriendFinderDialog")
|
||||
@interface FBSDKFriendFinderDialog : NSObject
|
||||
- (nonnull instancetype)init;
|
||||
+ (void)launchFriendFinderDialogWithCompletionHandler:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completionHandler;
|
||||
@end
|
||||
|
||||
/// Additional context about the nature of the game request.
|
||||
typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKGameRequestActionType, "GameRequestActionType", open) {
|
||||
/// No action type
|
||||
FBSDKGameRequestActionTypeNone = 0,
|
||||
/// Send action type: The user is sending an object to the friends.
|
||||
FBSDKGameRequestActionTypeSend = 1,
|
||||
/// Ask For action type: The user is asking for an object from friends.
|
||||
FBSDKGameRequestActionTypeAskFor = 2,
|
||||
/// Turn action type: It is the turn of the friends to play against the user in a match.
|
||||
FBSDKGameRequestActionTypeTurn = 3,
|
||||
/// Invite action type: The user is inviting a friend.
|
||||
FBSDKGameRequestActionTypeInvite = 4,
|
||||
};
|
||||
|
||||
enum FBSDKGameRequestFilter : NSUInteger;
|
||||
@class NSCoder;
|
||||
|
||||
/// A model for a game request.
|
||||
SWIFT_CLASS_NAMED("GameRequestContent")
|
||||
@interface FBSDKGameRequestContent : NSObject <FBSDKSharingValidatable, NSSecureCoding>
|
||||
/// Used when defining additional context about the nature of the request.
|
||||
/// The parameter ‘objectID’ is required if the action type is either
|
||||
/// ‘.send’ or ‘.askFor’.
|
||||
/// seealso:
|
||||
/// objectID
|
||||
@property (nonatomic) enum FBSDKGameRequestActionType actionType;
|
||||
/// Additional freeform data you may pass for tracking. This will be stored as part of
|
||||
/// the request objects created. The maximum length is 255 characters.
|
||||
@property (nonatomic, copy) NSString * _Nullable data;
|
||||
/// This controls the set of friends someone sees if a multi-friend selector is shown.
|
||||
/// It is <code>.none</code> by default, meaning that all friends can be shown.
|
||||
/// If specify as <code>.appUsers</code>, only friends who use the app will be shown.
|
||||
/// On the other hands, use <code>.appNonUsers</code> to filter only friends who do not use the app.
|
||||
/// The parameter name is preserved to be consistent with the counter part on desktop.
|
||||
@property (nonatomic) enum FBSDKGameRequestFilter filters;
|
||||
/// A plain-text message to be sent as part of the request. This text will surface in the App Center view
|
||||
/// of the request, but not on the notification jewel. Required parameter.
|
||||
@property (nonatomic, copy) NSString * _Nonnull message;
|
||||
/// The Open Graph object ID of the object being sent.
|
||||
/// seealso:
|
||||
/// actionType
|
||||
@property (nonatomic, copy) NSString * _Nonnull objectID;
|
||||
/// An array of user IDs, usernames or invite tokens (NSString) of people to send request.
|
||||
/// These may or may not be a friend of the sender. If this is specified by the app,
|
||||
/// the sender will not have a choice of recipients. If not, the sender will see a multi-friend selector
|
||||
/// This is equivalent to the “to” parameter when using the web game request dialog.
|
||||
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull recipients;
|
||||
/// An array of user IDs that will be included in the dialog as the first suggested friends.
|
||||
/// Cannot be used together with filters.
|
||||
/// This is equivalent to the <code>suggestions</code> parameter when using the web game request dialog.
|
||||
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull recipientSuggestions;
|
||||
/// The title for the dialog.
|
||||
@property (nonatomic, copy) NSString * _Nonnull title;
|
||||
/// The call to action for the dialog.
|
||||
@property (nonatomic, copy) NSString * _Nonnull cta;
|
||||
- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error;
|
||||
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
||||
/// Compares the receiver to another game request content.
|
||||
/// @param content The other content
|
||||
/// @return <code>true</code> if the receiver’s values are equal to the other content’s values; otherwise <code>false</code>
|
||||
- (BOOL)isEqualToGameRequestContent:(FBSDKGameRequestContent * _Nonnull)content SWIFT_WARN_UNUSED_RESULT;
|
||||
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL supportsSecureCoding;)
|
||||
+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT;
|
||||
- (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)decoder;
|
||||
- (void)encodeWithCoder:(NSCoder * _Nonnull)encoder;
|
||||
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
||||
@end
|
||||
|
||||
@protocol FBSDKGameRequestDialogDelegate;
|
||||
|
||||
/// A dialog for sending game requests.
|
||||
SWIFT_CLASS_NAMED("GameRequestDialog")
|
||||
@interface FBSDKGameRequestDialog : NSObject
|
||||
/// The receiver’s delegate or nil if it doesn’t have a delegate.
|
||||
@property (nonatomic, weak) id <FBSDKGameRequestDialogDelegate> _Nullable delegate;
|
||||
/// The content for game request.
|
||||
@property (nonatomic, strong) FBSDKGameRequestContent * _Nonnull content;
|
||||
/// Specifies whether frictionless requests are enabled.
|
||||
@property (nonatomic) BOOL isFrictionlessRequestsEnabled;
|
||||
/// A Boolean value that indicates whether the receiver can initiate a game request.
|
||||
/// May return <code>false</code> if the appropriate Facebook app is not installed and is required or an access token is
|
||||
/// required but not available. This method does not validate the content on the receiver, so this can be checked before
|
||||
/// building up the content.
|
||||
/// See <code>validate()</code>
|
||||
/// @return <code>true</code> if the receiver can share, otherwise <code>false</code>.
|
||||
@property (nonatomic, readonly) BOOL canShow;
|
||||
- (nonnull instancetype)initWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate OBJC_DESIGNATED_INITIALIZER;
|
||||
/// Convenience method to build up a game request with content and a delegate.
|
||||
/// @param content The content for the game request.
|
||||
/// @param delegate The receiver’s delegate.
|
||||
+ (FBSDKGameRequestDialog * _Nonnull)dialogWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate SWIFT_WARN_UNUSED_RESULT;
|
||||
/// Convenience method to build up and show a game request with content and a delegate.
|
||||
/// @param content The content for the game request.
|
||||
/// @param delegate The receiver’s delegate.
|
||||
+ (FBSDKGameRequestDialog * _Nonnull)showWithContent:(FBSDKGameRequestContent * _Nonnull)content delegate:(id <FBSDKGameRequestDialogDelegate> _Nullable)delegate;
|
||||
/// Begins the game request from the receiver.
|
||||
/// @return <code>true</code> if the receiver was able to show the dialog, otherwise <code>false</code>.
|
||||
- (BOOL)show;
|
||||
/// Validates the content on the receiver.
|
||||
- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
@end
|
||||
|
||||
|
||||
|
||||
@interface FBSDKGameRequestDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKWebDialogDelegate>
|
||||
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results;
|
||||
- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error;
|
||||
- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog;
|
||||
@end
|
||||
|
||||
|
||||
@interface FBSDKGameRequestDialog (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKURLOpening>
|
||||
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)potentialURL sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT;
|
||||
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT;
|
||||
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application;
|
||||
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT;
|
||||
@end
|
||||
|
||||
|
||||
/// A delegate for <code>GameRequestDialog</code>.
|
||||
/// The delegate is notified with the results of the game request as long as the application has permissions to
|
||||
/// receive the information. For example, if the person is not signed into the containing app, the shower may not be able
|
||||
/// to distinguish between completion of a game request and cancellation.
|
||||
SWIFT_PROTOCOL_NAMED("GameRequestDialogDelegate")
|
||||
@protocol FBSDKGameRequestDialogDelegate
|
||||
/// Sent to the delegate when the game request completes without error.
|
||||
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed.
|
||||
/// @param results The results from the dialog. This may be nil or empty.
|
||||
- (void)gameRequestDialog:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog didCompleteWithResults:(NSDictionary<NSString *, id> * _Nonnull)results;
|
||||
/// Sent to the delegate when the game request encounters an error.
|
||||
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed.
|
||||
/// @param error The error.
|
||||
- (void)gameRequestDialog:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog didFailWithError:(NSError * _Nonnull)error;
|
||||
/// Sent to the delegate when the game request dialog is cancelled.
|
||||
/// @param gameRequestDialog The <code>GameRequestDialog</code> that completed.
|
||||
- (void)gameRequestDialogDidCancel:(FBSDKGameRequestDialog * _Nonnull)gameRequestDialog;
|
||||
@end
|
||||
|
||||
/// Filter for who can be displayed in the multi-friend selector.
|
||||
typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKGameRequestFilter, "GameRequestFilter", open) {
|
||||
/// No filter, all friends can be displayed.
|
||||
FBSDKGameRequestFilterNone = 0,
|
||||
/// Friends using the app can be displayed.
|
||||
FBSDKGameRequestFilterAppUsers = 1,
|
||||
/// Friends not using the app can be displayed.
|
||||
FBSDKGameRequestFilterAppNonUsers = 2,
|
||||
/// All friends can be displayed if FB app is installed.
|
||||
FBSDKGameRequestFilterEverybody = 3,
|
||||
};
|
||||
|
||||
|
||||
SWIFT_CLASS_NAMED("GameRequestURLProvider")
|
||||
@interface FBSDKGameRequestURLProvider : NSObject
|
||||
+ (NSURL * _Nullable)createDeepLinkURLWithQueryDictionary:(NSDictionary<NSString *, id> * _Nonnull)queryDictionary SWIFT_WARN_UNUSED_RESULT;
|
||||
+ (NSString * _Nullable)filtersNameForFilters:(enum FBSDKGameRequestFilter)filters SWIFT_WARN_UNUSED_RESULT;
|
||||
+ (NSString * _Nullable)actionTypeNameForActionType:(enum FBSDKGameRequestActionType)actionType SWIFT_WARN_UNUSED_RESULT;
|
||||
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
||||
@end
|
||||
|
||||
|
||||
|
||||
|
||||
SWIFT_CLASS_NAMED("GamingContext")
|
||||
@interface FBSDKGamingContext : NSObject
|
||||
/// A shared object that holds data about the current user’s game instance which could be solo game or multiplayer game with other users.
|
||||
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) FBSDKGamingContext * _Nullable currentContext;)
|
||||
+ (FBSDKGamingContext * _Nullable)currentContext SWIFT_WARN_UNUSED_RESULT;
|
||||
+ (void)setCurrentContext:(FBSDKGamingContext * _Nullable)value;
|
||||
/// A unique identifier for the current game context. This represents a specific game instance that the user is playing in.
|
||||
@property (nonatomic, readonly, copy) NSString * _Nonnull identifier;
|
||||
/// The number of players in the current user’s game instance
|
||||
@property (nonatomic, readonly) NSInteger size;
|
||||
- (nullable instancetype)initWithIdentifier:(NSString * _Nonnull)identifier size:(NSInteger)size OBJC_DESIGNATED_INITIALIZER;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
@end
|
||||
|
||||
|
||||
SWIFT_CLASS_NAMED("GamingGroupIntegration")
|
||||
@interface FBSDKGamingGroupIntegration : NSObject
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
+ (void)openGroupPageWithCompletionHandler:(void (^ _Nonnull)(BOOL, NSError * _Nullable))completionHandler;
|
||||
@end
|
||||
|
||||
@class FBSDKGamingImageUploaderConfiguration;
|
||||
|
||||
SWIFT_CLASS_NAMED("GamingImageUploader")
|
||||
@interface FBSDKGamingImageUploader : NSObject
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
/// Runs an upload to a users Gaming Media Library with the given configuration
|
||||
/// @param configuration model object contain the content that will be uploaded
|
||||
/// @param completion a callback that is fired dependent on the configuration.
|
||||
/// Fired when the upload completes or when the users returns to the caller app
|
||||
/// after the media dialog is shown.
|
||||
+ (void)uploadImageWithConfiguration:(FBSDKGamingImageUploaderConfiguration * _Nonnull)configuration andResultCompletion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion;
|
||||
/// Runs an upload to a users Gaming Media Library with the given configuration
|
||||
/// @param configuration model object contain the content that will be uploaded
|
||||
/// @param completion a callback that is fired dependent on the configuration.
|
||||
/// Fired when the upload completes or when the users returns to the caller app
|
||||
/// after the media dialog is shown.
|
||||
/// @param progressHandler an optional callback that is fired multiple times as
|
||||
/// bytes are transferred to Facebook.
|
||||
+ (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;
|
||||
@end
|
||||
|
||||
@protocol FBSDKGraphRequestConnecting;
|
||||
|
||||
@interface FBSDKGamingImageUploader (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKGraphRequestConnectionDelegate>
|
||||
- (void)requestConnection:(id <FBSDKGraphRequestConnecting> _Nonnull)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite;
|
||||
@end
|
||||
|
||||
@class UIImage;
|
||||
|
||||
SWIFT_CLASS_NAMED("GamingImageUploaderConfiguration")
|
||||
@interface FBSDKGamingImageUploaderConfiguration : NSObject
|
||||
@property (nonatomic, readonly, strong) UIImage * _Nonnull image;
|
||||
@property (nonatomic, readonly, copy) NSString * _Nullable caption;
|
||||
@property (nonatomic, readonly) BOOL shouldLaunchMediaDialog;
|
||||
/// A model for Gaming image upload content to be shared.
|
||||
/// @param image the image that will be shared.
|
||||
/// @param caption and optional caption that will appear along side the image on Facebook.
|
||||
/// @param shouldLaunchMediaDialog whether or not to open the media dialog on Facebook when the upload completes.
|
||||
- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image caption:(NSString * _Nullable)caption shouldLaunchMediaDialog:(BOOL)shouldLaunchMediaDialog OBJC_DESIGNATED_INITIALIZER;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
@end
|
||||
|
||||
@class FBSDKURL;
|
||||
|
||||
SWIFT_CLASS_NAMED("GamingPayload")
|
||||
@interface FBSDKGamingPayload : NSObject
|
||||
@property (nonatomic, strong) FBSDKURL * _Nonnull URL;
|
||||
@property (nonatomic, copy) NSString * _Nonnull payload;
|
||||
- (nonnull instancetype)initWithURL:(FBSDKURL * _Nonnull)URL OBJC_DESIGNATED_INITIALIZER;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
@end
|
||||
|
||||
|
||||
SWIFT_PROTOCOL_NAMED("GamingPayloadDelegate")
|
||||
@protocol FBSDKGamingPayloadDelegate <NSObject>
|
||||
@optional
|
||||
/// Delegate method will be triggered when a <code>GamingPayloadObserver</code> parses a url with a payload and game request ID
|
||||
/// @param payload The payload recieved in the url
|
||||
/// @param gameRequestID The game request ID recieved in the url
|
||||
- (void)parsedGameRequestURLContaining:(FBSDKGamingPayload * _Nonnull)payload gameRequestID:(NSString * _Nonnull)gameRequestID;
|
||||
/// 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.
|
||||
/// @param payload The payload recieved in the url
|
||||
- (void)parsedGamingContextURLContaining:(FBSDKGamingPayload * _Nonnull)payload;
|
||||
/// Delegate method will be triggered when a <code>GamingPayloadObserver</code> parses a url with a payload and tournament ID
|
||||
/// @param payload The payload associated with the tournament
|
||||
/// @param tournamentID The tournament ID the player wants to enter
|
||||
- (void)parsedTournamentURLContaining:(FBSDKGamingPayload * _Nonnull)payload tournamentID:(NSString * _Nonnull)tournamentID;
|
||||
@end
|
||||
|
||||
|
||||
SWIFT_CLASS_NAMED("GamingPayloadObserver")
|
||||
@interface FBSDKGamingPayloadObserver : NSObject
|
||||
@property (nonatomic, weak) id <FBSDKGamingPayloadDelegate> _Nullable delegate;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
- (nonnull instancetype)initWithDelegate:(id <FBSDKGamingPayloadDelegate> _Nullable)delegate;
|
||||
@end
|
||||
|
||||
|
||||
@interface FBSDKGamingPayloadObserver (SWIFT_EXTENSION(FBSDKGamingServicesKit)) <FBSDKApplicationObserving>
|
||||
- (BOOL)application:(UIApplication * _Nonnull)application openURL:(NSURL * _Nonnull)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT;
|
||||
@end
|
||||
|
||||
@class FBSDKGamingVideoUploaderConfiguration;
|
||||
|
||||
SWIFT_CLASS_NAMED("GamingVideoUploader")
|
||||
@interface FBSDKGamingVideoUploader : NSObject
|
||||
/// Runs an upload to a users Gaming Media Library with the given configuration
|
||||
/// @param configuration model object contain the content that will be uploaded
|
||||
/// @param completion a callback that is fired when the upload completes.
|
||||
+ (void)uploadVideoWithConfiguration:(FBSDKGamingVideoUploaderConfiguration * _Nonnull)configuration andResultCompletion:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable))completion;
|
||||
/// Runs an upload to a users Gaming Media Library with the given configuration
|
||||
/// @param configuration model object contain the content that will be uploaded
|
||||
/// @param completion a callback that is fired when the upload completes.
|
||||
/// @param progressHandler an optional callback that is fired multiple times as bytes are transferred to Facebook.
|
||||
+ (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;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
@end
|
||||
|
||||
|
||||
|
||||
SWIFT_CLASS_NAMED("GamingVideoUploaderConfiguration")
|
||||
@interface FBSDKGamingVideoUploaderConfiguration : NSObject
|
||||
@property (nonatomic, readonly, copy) NSURL * _Nonnull videoURL;
|
||||
@property (nonatomic, readonly, copy) NSString * _Nullable caption;
|
||||
/// A model for Gaming video upload content to be shared.
|
||||
/// @param videoURL a url to the videos location on local disk.
|
||||
/// @param caption and optional caption that will appear along side the video on Facebook.
|
||||
- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL caption:(NSString * _Nullable)caption OBJC_DESIGNATED_INITIALIZER;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
@end
|
||||
|
||||
|
||||
SWIFT_CLASS("_TtC22FBSDKGamingServicesKit21ShareTournamentDialog")
|
||||
@interface ShareTournamentDialog : NSObject <FBSDKURLOpening>
|
||||
- (BOOL)isAuthenticationURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT;
|
||||
- (BOOL)application:(UIApplication * _Nullable)application openURL:(NSURL * _Nullable)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT;
|
||||
- (BOOL)canOpenURL:(NSURL * _Nonnull)url forApplication:(UIApplication * _Nullable)application sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation SWIFT_WARN_UNUSED_RESULT;
|
||||
- (void)applicationDidBecomeActive:(UIApplication * _Nonnull)application;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
@end
|
||||
|
||||
|
||||
|
||||
/// A model for an instant games switchAsync cross play request.
|
||||
SWIFT_CLASS_NAMED("SwitchContextContent")
|
||||
@interface FBSDKSwitchContextContent : NSObject <FBSDKValidatable>
|
||||
- (nonnull instancetype)initDialogContentWithContextID:(NSString * _Nonnull)contextID OBJC_DESIGNATED_INITIALIZER;
|
||||
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
||||
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error;
|
||||
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
||||
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
||||
@end
|
||||
|
||||
|
||||
/// A dialog to switch the current gaming context through a web view
|
||||
SWIFT_CLASS_NAMED("SwitchContextDialog")
|
||||
@interface FBSDKSwitchContextDialog : FBSDKContextWebDialog <FBSDKShowable>
|
||||
/// Creates a switch context web dialog with content and a delegate.
|
||||
/// \param content The content for the switch context dialog
|
||||
///
|
||||
/// \param windowFinder The application window finder that provides the window to display the dialog
|
||||
///
|
||||
/// \param delegate The receiver’s delegate used to let the receiver know a context switch was successful or failed
|
||||
///
|
||||
- (nonnull instancetype)initWithContent:(FBSDKSwitchContextContent * _Nonnull)content windowFinder:(id <_FBSDKWindowFinding> _Nonnull)windowFinder delegate:(id <FBSDKContextDialogDelegate> _Nonnull)delegate OBJC_DESIGNATED_INITIALIZER;
|
||||
- (BOOL)show SWIFT_WARN_UNUSED_RESULT;
|
||||
- (BOOL)validateAndReturnError:(NSError * _Nullable * _Nullable)error;
|
||||
@end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma clang attribute pop
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error unsupported Swift architecture
|
||||
#endif
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,494 @@
|
||||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
|
||||
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FBSDKGamingServicesKit
|
||||
import FBSDKCoreKit
|
||||
import FBSDKCoreKit_Basics
|
||||
import FBSDKShareKit
|
||||
import Foundation
|
||||
import Swift
|
||||
import UIKit
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
import _SwiftConcurrencyShims
|
||||
@objc(FBSDKChooseContextFilter) public enum ChooseContextFilter : Swift.Int, Swift.CaseIterable {
|
||||
case none
|
||||
case existingChallenges
|
||||
case newPlayersOnly
|
||||
case newContextOnly
|
||||
public var name: Swift.String {
|
||||
get
|
||||
}
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias AllCases = [FBSDKGamingServicesKit.ChooseContextFilter]
|
||||
public typealias RawValue = Swift.Int
|
||||
public static var allCases: [FBSDKGamingServicesKit.ChooseContextFilter] {
|
||||
get
|
||||
}
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKChooseContextContent) final public class ChooseContextContent : ObjectiveC.NSObject, FBSDKGamingServicesKit.ValidatableProtocol {
|
||||
@objc final public var filter: FBSDKGamingServicesKit.ChooseContextFilter
|
||||
@objc final public var maxParticipants: Swift.Int
|
||||
@objc final public var minParticipants: Swift.Int
|
||||
@objc public static func filtersName(forFilters filter: FBSDKGamingServicesKit.ChooseContextFilter) -> Swift.String
|
||||
@objc final public func validate() throws
|
||||
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
||||
@objc override dynamic public init()
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKChooseContextDialog) final public class ChooseContextDialog : FBSDKGamingServicesKit.ContextWebDialog, FBSDKCoreKit.URLOpening {
|
||||
@objc convenience public init(content: FBSDKGamingServicesKit.ChooseContextContent, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate)
|
||||
@objc override final public func show() -> Swift.Bool
|
||||
@objc override final public func validate() throws
|
||||
@objc final public func application(_ application: UIKit.UIApplication?, open url: Foundation.URL?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func canOpen(_ url: Foundation.URL, for application: UIKit.UIApplication?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func applicationDidBecomeActive(_ application: UIKit.UIApplication)
|
||||
@objc final public func isAuthenticationURL(_ url: Foundation.URL) -> Swift.Bool
|
||||
@objc deinit
|
||||
}
|
||||
@objc(FBSDKContextDialogDelegate) public protocol ContextDialogDelegate {
|
||||
@objc func contextDialogDidComplete(_ contextDialog: FBSDKGamingServicesKit.ContextWebDialog)
|
||||
@objc func contextDialog(_ contextDialog: FBSDKGamingServicesKit.ContextWebDialog, didFailWithError error: any Swift.Error)
|
||||
@objc func contextDialogDidCancel(_ contextDialog: FBSDKGamingServicesKit.ContextWebDialog)
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKContextDialogPresenter) final public class ContextDialogPresenter : ObjectiveC.NSObject {
|
||||
@objc override convenience dynamic public init()
|
||||
@objc final public func makeAndShowCreateContextDialog(content: FBSDKGamingServicesKit.CreateContextContent, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate) throws
|
||||
@objc final public func makeAndShowSwitchContextDialog(content: FBSDKGamingServicesKit.SwitchContextContent, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate) throws
|
||||
@objc final public func makeAndShowChooseContextDialog(content: FBSDKGamingServicesKit.ChooseContextContent, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate)
|
||||
@objc deinit
|
||||
}
|
||||
public enum ContextDialogPresenterError : Swift.Error {
|
||||
case showCreateContext
|
||||
case showSwitchContext
|
||||
case showChooseContext
|
||||
case invalidAccessToken
|
||||
public static func == (a: FBSDKGamingServicesKit.ContextDialogPresenterError, b: FBSDKGamingServicesKit.ContextDialogPresenterError) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKContextWebDialog) public class ContextWebDialog : ObjectiveC.NSObject, FBSDKCoreKit.WebDialogDelegate, FBSDKGamingServicesKit.DialogProtocol {
|
||||
@objc public var delegate: (any FBSDKGamingServicesKit.ContextDialogDelegate)?
|
||||
@objc public var dialogContent: (any FBSDKGamingServicesKit.ValidatableProtocol)?
|
||||
@objc public var currentWebDialog: FBSDKCoreKit._WebDialog?
|
||||
@objc public func show() -> Swift.Bool
|
||||
@objc public func validate() throws
|
||||
@objc public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didCompleteWithResults results: [Swift.String : Any])
|
||||
@objc public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didFailWithError error: any Swift.Error)
|
||||
@objc public func webDialogDidCancel(_ webDialog: FBSDKCoreKit._WebDialog)
|
||||
@objc public func createWebDialogFrame(withWidth width: CoreFoundation.CGFloat, height: CoreFoundation.CGFloat, windowFinder: any FBSDKCoreKit._WindowFinding) -> CoreFoundation.CGRect
|
||||
@objc deinit
|
||||
}
|
||||
@objcMembers @objc(FBSDKCreateContextContent) final public class CreateContextContent : ObjectiveC.NSObject, FBSDKGamingServicesKit.ValidatableProtocol {
|
||||
@objc final public var playerID: Swift.String
|
||||
@objc(initDialogContentWithPlayerID:) public init(playerID: Swift.String)
|
||||
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
||||
@objc final public func validate() throws
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKCreateContextDialog) final public class CreateContextDialog : FBSDKGamingServicesKit.ContextWebDialog {
|
||||
@objc public init(content: FBSDKGamingServicesKit.CreateContextContent, windowFinder: any FBSDKCoreKit._WindowFinding, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate)
|
||||
@discardableResult
|
||||
@objc override final public func show() -> Swift.Bool
|
||||
@objc override final public func validate() throws
|
||||
@objc deinit
|
||||
}
|
||||
public enum CustomUpdateContentError : Swift.Error {
|
||||
case notInGameContext
|
||||
case invalidMessage
|
||||
case invalidMedia
|
||||
case invalidImage
|
||||
public static func == (a: FBSDKGamingServicesKit.CustomUpdateContentError, b: FBSDKGamingServicesKit.CustomUpdateContentError) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
final public class CustomUpdateContentImage {
|
||||
public init(message: Swift.String, image: UIKit.UIImage, cta: Swift.String? = nil, payload: Swift.String? = nil, messageLocalization: [Swift.String : Swift.String] = [:], ctaLocalization: [Swift.String : Swift.String] = [:])
|
||||
@objc deinit
|
||||
}
|
||||
final public class CustomUpdateContentMedia {
|
||||
public init(message: Swift.String, media: any FBSDKGamingServicesKit.URLMedia, cta: Swift.String? = nil, payload: Swift.String? = nil, messageLocalization: [Swift.String : Swift.String] = [:], ctaLocalization: [Swift.String : Swift.String] = [:])
|
||||
@objc deinit
|
||||
}
|
||||
public enum CustomUpdateGraphRequestError : Swift.Error {
|
||||
case server(any Swift.Error)
|
||||
case invalidAccessToken
|
||||
case contentParsing
|
||||
case decoding
|
||||
}
|
||||
final public class CustomUpdateGraphRequest {
|
||||
final public let graphRequestFactory: any FBSDKCoreKit.GraphRequestFactoryProtocol
|
||||
public init()
|
||||
public init(graphRequestFactory: any FBSDKCoreKit.GraphRequestFactoryProtocol = GraphRequestFactory())
|
||||
final public func request(content: FBSDKGamingServicesKit.CustomUpdateContentMedia, completionHandler: @escaping (Swift.Result<Swift.Bool, FBSDKGamingServicesKit.CustomUpdateGraphRequestError>) -> Swift.Void) throws
|
||||
final public func request(content: FBSDKGamingServicesKit.CustomUpdateContentImage, completionHandler: @escaping (Swift.Result<Swift.Bool, FBSDKGamingServicesKit.CustomUpdateGraphRequestError>) -> Swift.Void) throws
|
||||
@objc deinit
|
||||
}
|
||||
@objc(FBSDKDialog) public protocol DialogProtocol {
|
||||
@objc weak var delegate: (any FBSDKGamingServicesKit.ContextDialogDelegate)? { get set }
|
||||
@objc var dialogContent: (any FBSDKGamingServicesKit.ValidatableProtocol)? { get set }
|
||||
@objc func show() -> Swift.Bool
|
||||
@objc func validate() throws
|
||||
}
|
||||
@objc(FBSDKValidatable) public protocol ValidatableProtocol {
|
||||
@objc func validate() throws
|
||||
}
|
||||
public struct FacebookGIF : Swift.Codable, Swift.Equatable, FBSDKGamingServicesKit.URLMedia {
|
||||
public init(withUrl url: Foundation.URL)
|
||||
public static func == (a: FBSDKGamingServicesKit.FacebookGIF, b: FBSDKGamingServicesKit.FacebookGIF) -> Swift.Bool
|
||||
public func encode(to encoder: any Swift.Encoder) throws
|
||||
public init(from decoder: any Swift.Decoder) throws
|
||||
}
|
||||
public struct FacebookVideo : Swift.Codable, Swift.Equatable, FBSDKGamingServicesKit.URLMedia {
|
||||
public init(withUrl url: Foundation.URL)
|
||||
public static func == (a: FBSDKGamingServicesKit.FacebookVideo, b: FBSDKGamingServicesKit.FacebookVideo) -> Swift.Bool
|
||||
public func encode(to encoder: any Swift.Encoder) throws
|
||||
public init(from decoder: any Swift.Decoder) throws
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(FBSDKFriendFinderDialog) final public class FriendFinderDialog : ObjectiveC.NSObject {
|
||||
@objc override convenience dynamic public init()
|
||||
@objc(launchFriendFinderDialogWithCompletionHandler:) public static func launch(completionHandler: @escaping FBSDKGamingServicesKit.GamingServiceCompletionHandler)
|
||||
@objc deinit
|
||||
}
|
||||
@objc(FBSDKGameRequestActionType) public enum GameRequestActionType : Swift.UInt {
|
||||
case none
|
||||
case send
|
||||
case askFor
|
||||
case turn
|
||||
case invite
|
||||
public init?(rawValue: Swift.UInt)
|
||||
public typealias RawValue = Swift.UInt
|
||||
public var rawValue: Swift.UInt {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKGameRequestContent) final public class GameRequestContent : ObjectiveC.NSObject, FBSDKShareKit.SharingValidatable, Foundation.NSSecureCoding {
|
||||
@objc final public var actionType: FBSDKGamingServicesKit.GameRequestActionType
|
||||
@objc final public var data: Swift.String?
|
||||
@objc final public var filters: FBSDKGamingServicesKit.GameRequestFilter
|
||||
@objc final public var message: Swift.String
|
||||
@objc final public var objectID: Swift.String
|
||||
@objc final public var recipients: [Swift.String]
|
||||
@objc final public var recipientSuggestions: [Swift.String]
|
||||
@objc final public var title: Swift.String
|
||||
@objc final public var cta: Swift.String
|
||||
@objc(validateWithOptions:error:) final public func validate(options: FBSDKShareKit.ShareBridgeOptions = []) throws
|
||||
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
||||
@objc(isEqualToGameRequestContent:) final public func isEqual(to content: FBSDKGamingServicesKit.GameRequestContent) -> Swift.Bool
|
||||
@objc final public class var supportsSecureCoding: Swift.Bool {
|
||||
@objc get
|
||||
}
|
||||
@objc convenience public init(coder decoder: Foundation.NSCoder)
|
||||
@objc final public func encode(with encoder: Foundation.NSCoder)
|
||||
@objc override dynamic public init()
|
||||
@objc deinit
|
||||
}
|
||||
@objcMembers @objc(FBSDKGameRequestDialog) final public class GameRequestDialog : ObjectiveC.NSObject {
|
||||
@objc weak final public var delegate: (any FBSDKGamingServicesKit.GameRequestDialogDelegate)?
|
||||
@objc final public var content: FBSDKGamingServicesKit.GameRequestContent
|
||||
@objc final public var isFrictionlessRequestsEnabled: Swift.Bool
|
||||
@objc final public var canShow: Swift.Bool {
|
||||
@objc get
|
||||
}
|
||||
@objc public init(content: FBSDKGamingServicesKit.GameRequestContent, delegate: (any FBSDKGamingServicesKit.GameRequestDialogDelegate)?)
|
||||
@objc(dialogWithContent:delegate:) public static func dialog(content: FBSDKGamingServicesKit.GameRequestContent, delegate: (any FBSDKGamingServicesKit.GameRequestDialogDelegate)?) -> FBSDKGamingServicesKit.GameRequestDialog
|
||||
@discardableResult
|
||||
@objc(showWithContent:delegate:) public static func show(content: FBSDKGamingServicesKit.GameRequestContent, delegate: (any FBSDKGamingServicesKit.GameRequestDialogDelegate)?) -> FBSDKGamingServicesKit.GameRequestDialog
|
||||
@objc @discardableResult
|
||||
final public func show() -> Swift.Bool
|
||||
@objc(validateWithError:) final public func validate() throws
|
||||
@objc deinit
|
||||
}
|
||||
extension FBSDKGamingServicesKit.GameRequestDialog : FBSDKCoreKit.WebDialogDelegate {
|
||||
@objc final public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didCompleteWithResults results: [Swift.String : Any])
|
||||
@objc final public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didFailWithError error: any Swift.Error)
|
||||
@objc final public func webDialogDidCancel(_ webDialog: FBSDKCoreKit._WebDialog)
|
||||
}
|
||||
extension FBSDKGamingServicesKit.GameRequestDialog : FBSDKCoreKit.URLOpening {
|
||||
@objc final public func application(_ application: UIKit.UIApplication?, open potentialURL: Foundation.URL?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func canOpen(_ url: Foundation.URL, for application: UIKit.UIApplication?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func applicationDidBecomeActive(_ application: UIKit.UIApplication)
|
||||
@objc final public func isAuthenticationURL(_ url: Foundation.URL) -> Swift.Bool
|
||||
}
|
||||
@objc(FBSDKGameRequestDialogDelegate) public protocol GameRequestDialogDelegate {
|
||||
@objc(gameRequestDialog:didCompleteWithResults:) func gameRequestDialog(_ gameRequestDialog: FBSDKGamingServicesKit.GameRequestDialog, didCompleteWithResults results: [Swift.String : Any])
|
||||
@objc(gameRequestDialog:didFailWithError:) func gameRequestDialog(_ gameRequestDialog: FBSDKGamingServicesKit.GameRequestDialog, didFailWithError error: any Swift.Error)
|
||||
@objc func gameRequestDialogDidCancel(_ gameRequestDialog: FBSDKGamingServicesKit.GameRequestDialog)
|
||||
}
|
||||
@objc(FBSDKGameRequestFilter) public enum GameRequestFilter : Swift.UInt {
|
||||
case none
|
||||
case appUsers
|
||||
case appNonUsers
|
||||
case everybody
|
||||
public init?(rawValue: Swift.UInt)
|
||||
public typealias RawValue = Swift.UInt
|
||||
public var rawValue: Swift.UInt {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKGameRequestURLProvider) final public class GameRequestURLProvider : ObjectiveC.NSObject {
|
||||
@objc(createDeepLinkURLWithQueryDictionary:) final public class func createDeepLinkURL(queryDictionary: [Swift.String : Any]) -> Foundation.URL?
|
||||
@objc(filtersNameForFilters:) final public class func filtersName(for filters: FBSDKGamingServicesKit.GameRequestFilter) -> Swift.String?
|
||||
@objc(actionTypeNameForActionType:) final public class func actionTypeName(for actionType: FBSDKGamingServicesKit.GameRequestActionType) -> Swift.String?
|
||||
@objc override dynamic public init()
|
||||
@objc deinit
|
||||
}
|
||||
@objcMembers @objc(FBSDKGamingContext) final public class GamingContext : ObjectiveC.NSObject {
|
||||
@objc(currentContext) public static var current: FBSDKGamingServicesKit.GamingContext?
|
||||
@objc final public let identifier: Swift.String
|
||||
@objc final public let size: Swift.Int
|
||||
@objc public init?(identifier: Swift.String, size: Swift.Int)
|
||||
@objc deinit
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKGamingGroupIntegration) final public class GamingGroupIntegration : ObjectiveC.NSObject {
|
||||
@objc public static func openGroupPage(completionHandler: @escaping FBSDKGamingServicesKit.GamingServiceCompletionHandler)
|
||||
@objc deinit
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKGamingImageUploader) final public class GamingImageUploader : ObjectiveC.NSObject {
|
||||
@objc(uploadImageWithConfiguration:andResultCompletion:) public static func uploadImage(with configuration: FBSDKGamingServicesKit.GamingImageUploaderConfiguration, andResultCompletion completion: @escaping FBSDKGamingServicesKit.GamingServiceResultCompletion)
|
||||
@objc(uploadImageWithConfiguration:completion:andProgressHandler:) public static func uploadImage(with configuration: FBSDKGamingServicesKit.GamingImageUploaderConfiguration, completion: @escaping FBSDKGamingServicesKit.GamingServiceResultCompletion, andProgressHandler progressHandler: FBSDKGamingServicesKit.GamingServiceProgressHandler?)
|
||||
@objc deinit
|
||||
}
|
||||
extension FBSDKGamingServicesKit.GamingImageUploader : FBSDKCoreKit.GraphRequestConnectionDelegate {
|
||||
@objc final public func requestConnection(_ connection: any FBSDKCoreKit.GraphRequestConnecting, didSendBodyData bytesWritten: Swift.Int, totalBytesWritten: Swift.Int, totalBytesExpectedToWrite: Swift.Int)
|
||||
}
|
||||
@objcMembers @objc(FBSDKGamingImageUploaderConfiguration) final public class GamingImageUploaderConfiguration : ObjectiveC.NSObject {
|
||||
@objc final public var image: UIKit.UIImage {
|
||||
get
|
||||
}
|
||||
@objc final public var caption: Swift.String? {
|
||||
get
|
||||
}
|
||||
@objc final public var shouldLaunchMediaDialog: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@objc public init(image: UIKit.UIImage, caption: Swift.String?, shouldLaunchMediaDialog: Swift.Bool)
|
||||
@objc deinit
|
||||
}
|
||||
@objcMembers @objc(FBSDKGamingPayload) final public class GamingPayload : ObjectiveC.NSObject {
|
||||
@objc final public var URL: FBSDKCoreKit.AppLinkURL
|
||||
@objc final public var payload: Swift.String
|
||||
@objc public init(URL: FBSDKCoreKit.AppLinkURL)
|
||||
@objc deinit
|
||||
}
|
||||
@objc(FBSDKGamingPayloadDelegate) public protocol GamingPayloadDelegate : ObjectiveC.NSObjectProtocol {
|
||||
@objc optional func parsedGameRequestURLContaining(_ payload: FBSDKGamingServicesKit.GamingPayload, gameRequestID: Swift.String)
|
||||
@objc optional func parsedGamingContextURLContaining(_ payload: FBSDKGamingServicesKit.GamingPayload)
|
||||
@objc optional func parsedTournamentURLContaining(_ payload: FBSDKGamingServicesKit.GamingPayload, tournamentID: Swift.String)
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKGamingPayloadObserver) final public class GamingPayloadObserver : ObjectiveC.NSObject {
|
||||
@objc weak final public var delegate: (any FBSDKGamingServicesKit.GamingPayloadDelegate)? {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc convenience public init(delegate: (any FBSDKGamingServicesKit.GamingPayloadDelegate)?)
|
||||
@objc deinit
|
||||
}
|
||||
extension FBSDKGamingServicesKit.GamingPayloadObserver : FBSDKCoreKit.FBSDKApplicationObserving {
|
||||
@objc final public func application(_ application: UIKit.UIApplication, open url: Foundation.URL, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
}
|
||||
public typealias GamingServiceCompletionHandler = (_ success: Swift.Bool, _ error: (any Swift.Error)?) -> Swift.Void
|
||||
public typealias FBSDKGamingServiceCompletionHandler = FBSDKGamingServicesKit.GamingServiceCompletionHandler
|
||||
public typealias GamingServiceResultCompletion = (_ success: Swift.Bool, _ result: [Swift.String : Any]?, _ error: (any Swift.Error)?) -> Swift.Void
|
||||
public typealias FBSDKGamingServiceResultCompletion = FBSDKGamingServicesKit.GamingServiceResultCompletion
|
||||
public typealias GamingServiceProgressHandler = (_ bytesSent: Swift.Int64, _ totalBytesSent: Swift.Int64, _ totalBytesExpectedToSend: Swift.Int64) -> Swift.Void
|
||||
public typealias FBSDKGamingServiceProgressHandler = FBSDKGamingServicesKit.GamingServiceProgressHandler
|
||||
public enum GamingServicesDialogError : Swift.Error {
|
||||
case invalidContentType
|
||||
case missingContent
|
||||
case deeplinkURLCreation
|
||||
case cancelled
|
||||
public static func == (a: FBSDKGamingServicesKit.GamingServicesDialogError, b: FBSDKGamingServicesKit.GamingServicesDialogError) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKGamingVideoUploader) final public class GamingVideoUploader : ObjectiveC.NSObject {
|
||||
@objc(uploadVideoWithConfiguration:andResultCompletion:) public static func uploadVideo(configuration: FBSDKGamingServicesKit.GamingVideoUploaderConfiguration, completion: @escaping FBSDKGamingServicesKit.GamingServiceResultCompletion)
|
||||
@objc(uploadVideoWithConfiguration:completion:andProgressHandler:) public static func uploadVideo(configuration: FBSDKGamingServicesKit.GamingVideoUploaderConfiguration, completion: @escaping FBSDKGamingServicesKit.GamingServiceResultCompletion, progressHandler: FBSDKGamingServicesKit.GamingServiceProgressHandler?)
|
||||
@objc deinit
|
||||
}
|
||||
@objcMembers @objc(FBSDKGamingVideoUploaderConfiguration) final public class GamingVideoUploaderConfiguration : ObjectiveC.NSObject {
|
||||
@objc final public var videoURL: Foundation.URL {
|
||||
get
|
||||
}
|
||||
@objc final public var caption: Swift.String? {
|
||||
get
|
||||
}
|
||||
@objc public init(videoURL: Foundation.URL, caption: Swift.String?)
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class GamingWebDialog<Success> : FBSDKCoreKit.WebDialogDelegate where Success : FBSDKGamingServicesKit.GamingWebDialogSuccess {
|
||||
public var completion: ((Swift.Result<Success, any Swift.Error>) -> Swift.Void)?
|
||||
@objc public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didCompleteWithResults results: [Swift.String : Any])
|
||||
@objc public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didFailWithError error: any Swift.Error)
|
||||
@objc public func webDialogDidCancel(_ webDialog: FBSDKCoreKit._WebDialog)
|
||||
@objc deinit
|
||||
}
|
||||
public protocol GamingWebDialogSuccess {
|
||||
init(_ dict: [Swift.String : Any]) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class JoinTournamentDialog : FBSDKGamingServicesKit.GamingWebDialog<FBSDKGamingServicesKit.JoinTournamentDialogSuccess> {
|
||||
final public var tournamentID: Swift.String?
|
||||
final public var payload: Swift.String?
|
||||
public init()
|
||||
final public func showSpecific(tournamentID: Swift.String, payload: Swift.String?, completion: @escaping (Swift.Result<FBSDKGamingServicesKit.JoinTournamentDialogSuccess, any Swift.Error>) -> Swift.Void)
|
||||
final public func showSuggested(payload: Swift.String?, completion: @escaping (Swift.Result<FBSDKGamingServicesKit.JoinTournamentDialogSuccess, any Swift.Error>) -> Swift.Void)
|
||||
@objc deinit
|
||||
}
|
||||
public struct JoinTournamentDialogSuccess : FBSDKGamingServicesKit.GamingWebDialogSuccess {
|
||||
public let tournamentID: Swift.String
|
||||
public let payload: Swift.String?
|
||||
public init(_ dict: [Swift.String : Any]) throws
|
||||
}
|
||||
public enum ShareTournamentDialogError : Swift.Error {
|
||||
case invalidAccessToken
|
||||
case invalidAuthToken
|
||||
case invalidTournamentID
|
||||
case unableToCreateDialogUrl
|
||||
case unknownBridgeError
|
||||
case errorMessage(Swift.String)
|
||||
case bridgeError(any Swift.Error)
|
||||
}
|
||||
@objc @_hasMissingDesignatedInitializers final public class ShareTournamentDialog : ObjectiveC.NSObject, FBSDKCoreKit.URLOpening {
|
||||
convenience public init(delegate: any FBSDKGamingServicesKit.ShareTournamentDialogDelegate)
|
||||
final public func show(score: Swift.Int, tournamentID: Swift.String) throws
|
||||
final public func show(score: Swift.Int, tournament: FBSDKGamingServicesKit.Tournament) throws
|
||||
final public func show(initialScore: Swift.Int, config configuration: FBSDKGamingServicesKit.TournamentConfig) throws
|
||||
@objc final public func isAuthenticationURL(_ url: Foundation.URL) -> Swift.Bool
|
||||
@objc final public func application(_ application: UIKit.UIApplication?, open url: Foundation.URL?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func canOpen(_ url: Foundation.URL, for application: UIKit.UIApplication?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func applicationDidBecomeActive(_ application: UIKit.UIApplication)
|
||||
@objc deinit
|
||||
}
|
||||
public protocol ShareTournamentDialogDelegate : AnyObject {
|
||||
func didComplete(dialog: FBSDKGamingServicesKit.ShareTournamentDialog, tournament: FBSDKGamingServicesKit.Tournament)
|
||||
func didFail(withError error: any Swift.Error, dialog: FBSDKGamingServicesKit.ShareTournamentDialog)
|
||||
func didCancel(dialog: FBSDKGamingServicesKit.ShareTournamentDialog)
|
||||
}
|
||||
@objc(FBSDKShowable) public protocol Showable {
|
||||
@objc func show() -> Swift.Bool
|
||||
}
|
||||
extension FBSDKGamingServicesKit.ChooseContextDialog : FBSDKGamingServicesKit.Showable {
|
||||
}
|
||||
extension FBSDKGamingServicesKit.CreateContextDialog : FBSDKGamingServicesKit.Showable {
|
||||
}
|
||||
@objcMembers @objc(FBSDKSwitchContextContent) final public class SwitchContextContent : ObjectiveC.NSObject, FBSDKGamingServicesKit.ValidatableProtocol {
|
||||
@objc(initDialogContentWithContextID:) public init(contextID: Swift.String)
|
||||
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
||||
@objc final public func validate() throws
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKSwitchContextDialog) final public class SwitchContextDialog : FBSDKGamingServicesKit.ContextWebDialog, FBSDKGamingServicesKit.Showable {
|
||||
@objc public init(content: FBSDKGamingServicesKit.SwitchContextContent, windowFinder: any FBSDKCoreKit._WindowFinding, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate)
|
||||
@objc override final public func show() -> Swift.Bool
|
||||
@objc override final public func validate() throws
|
||||
@objc deinit
|
||||
}
|
||||
public enum TournamentDecodingError : Swift.Error {
|
||||
case invalidExpirationDate
|
||||
case invalidScoreType
|
||||
public static func == (a: FBSDKGamingServicesKit.TournamentDecodingError, b: FBSDKGamingServicesKit.TournamentDecodingError) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public struct Tournament : Swift.Codable {
|
||||
public var identifier: Swift.String {
|
||||
get
|
||||
}
|
||||
public var endTime: Foundation.Date? {
|
||||
get
|
||||
}
|
||||
public var title: Swift.String? {
|
||||
get
|
||||
}
|
||||
public var payload: Swift.String?
|
||||
public init(from decoder: any Swift.Decoder) throws
|
||||
public func encode(to encoder: any Swift.Encoder) throws
|
||||
}
|
||||
public struct TournamentConfig {
|
||||
public var title: Swift.String?
|
||||
public var endTime: Foundation.TimeInterval?
|
||||
public var scoreType: FBSDKGamingServicesKit.TournamentScoreType?
|
||||
public var sortOrder: FBSDKGamingServicesKit.TournamentSortOrder?
|
||||
public var payload: Swift.String?
|
||||
public var image: UIKit.UIImage?
|
||||
public init(title: Swift.String? = nil, endTime: Foundation.Date? = nil, scoreType: FBSDKGamingServicesKit.TournamentScoreType? = nil, sortOrder: FBSDKGamingServicesKit.TournamentSortOrder? = nil, image: UIKit.UIImage? = nil, payload: Swift.String? = nil)
|
||||
}
|
||||
public enum TournamentFetchError : Swift.Error {
|
||||
case server(any Swift.Error)
|
||||
case decoding
|
||||
case invalidAuthToken
|
||||
case invalidAccessToken
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class TournamentFetcher {
|
||||
convenience public init()
|
||||
final public func fetchTournaments(completionHandler: @escaping (Swift.Result<[FBSDKGamingServicesKit.Tournament], FBSDKGamingServicesKit.TournamentFetchError>) -> Swift.Void)
|
||||
@objc deinit
|
||||
}
|
||||
public enum TournamentScoreType : Swift.String {
|
||||
case numeric
|
||||
case time
|
||||
public init?(rawValue: Swift.String)
|
||||
public typealias RawValue = Swift.String
|
||||
public var rawValue: Swift.String {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum TournamentSortOrder : Swift.String {
|
||||
case higherIsBetter
|
||||
case lowerIsBetter
|
||||
public init?(rawValue: Swift.String)
|
||||
public typealias RawValue = Swift.String
|
||||
public var rawValue: Swift.String {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum TournamentUpdaterError : Swift.Error {
|
||||
case server(any Swift.Error)
|
||||
case decoding
|
||||
case invalidAuthToken
|
||||
case invalidAccessToken
|
||||
case invalidTournamentID
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class TournamentUpdater {
|
||||
convenience public init()
|
||||
final public func update(tournamentID: Swift.String, score: Swift.Int, completionHandler: @escaping (Swift.Result<Swift.Bool, FBSDKGamingServicesKit.TournamentUpdaterError>) -> Swift.Void)
|
||||
final public func update(tournament: FBSDKGamingServicesKit.Tournament, score: Swift.Int, completionHandler: @escaping (Swift.Result<Swift.Bool, FBSDKGamingServicesKit.TournamentUpdaterError>) -> Swift.Void)
|
||||
@objc deinit
|
||||
}
|
||||
public protocol URLMedia : Swift.Decodable, Swift.Encodable {
|
||||
init(withUrl: Foundation.URL)
|
||||
}
|
||||
extension FBSDKGamingServicesKit.ChooseContextFilter : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.ChooseContextFilter : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.ChooseContextFilter : Swift.RawRepresentable {}
|
||||
extension FBSDKGamingServicesKit.ContextDialogPresenterError : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.ContextDialogPresenterError : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.CustomUpdateContentError : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.CustomUpdateContentError : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestActionType : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestActionType : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestActionType : Swift.RawRepresentable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestFilter : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestFilter : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestFilter : Swift.RawRepresentable {}
|
||||
extension FBSDKGamingServicesKit.GamingServicesDialogError : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.GamingServicesDialogError : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.TournamentDecodingError : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.TournamentDecodingError : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.TournamentScoreType : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.TournamentScoreType : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.TournamentScoreType : Swift.RawRepresentable {}
|
||||
extension FBSDKGamingServicesKit.TournamentSortOrder : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.TournamentSortOrder : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.TournamentSortOrder : Swift.RawRepresentable {}
|
||||
Binary file not shown.
@@ -0,0 +1,494 @@
|
||||
// swift-interface-format-version: 1.0
|
||||
// swift-compiler-version: Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
|
||||
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FBSDKGamingServicesKit
|
||||
import FBSDKCoreKit
|
||||
import FBSDKCoreKit_Basics
|
||||
import FBSDKShareKit
|
||||
import Foundation
|
||||
import Swift
|
||||
import UIKit
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
import _SwiftConcurrencyShims
|
||||
@objc(FBSDKChooseContextFilter) public enum ChooseContextFilter : Swift.Int, Swift.CaseIterable {
|
||||
case none
|
||||
case existingChallenges
|
||||
case newPlayersOnly
|
||||
case newContextOnly
|
||||
public var name: Swift.String {
|
||||
get
|
||||
}
|
||||
public init?(rawValue: Swift.Int)
|
||||
public typealias AllCases = [FBSDKGamingServicesKit.ChooseContextFilter]
|
||||
public typealias RawValue = Swift.Int
|
||||
public static var allCases: [FBSDKGamingServicesKit.ChooseContextFilter] {
|
||||
get
|
||||
}
|
||||
public var rawValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKChooseContextContent) final public class ChooseContextContent : ObjectiveC.NSObject, FBSDKGamingServicesKit.ValidatableProtocol {
|
||||
@objc final public var filter: FBSDKGamingServicesKit.ChooseContextFilter
|
||||
@objc final public var maxParticipants: Swift.Int
|
||||
@objc final public var minParticipants: Swift.Int
|
||||
@objc public static func filtersName(forFilters filter: FBSDKGamingServicesKit.ChooseContextFilter) -> Swift.String
|
||||
@objc final public func validate() throws
|
||||
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
||||
@objc override dynamic public init()
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKChooseContextDialog) final public class ChooseContextDialog : FBSDKGamingServicesKit.ContextWebDialog, FBSDKCoreKit.URLOpening {
|
||||
@objc convenience public init(content: FBSDKGamingServicesKit.ChooseContextContent, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate)
|
||||
@objc override final public func show() -> Swift.Bool
|
||||
@objc override final public func validate() throws
|
||||
@objc final public func application(_ application: UIKit.UIApplication?, open url: Foundation.URL?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func canOpen(_ url: Foundation.URL, for application: UIKit.UIApplication?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func applicationDidBecomeActive(_ application: UIKit.UIApplication)
|
||||
@objc final public func isAuthenticationURL(_ url: Foundation.URL) -> Swift.Bool
|
||||
@objc deinit
|
||||
}
|
||||
@objc(FBSDKContextDialogDelegate) public protocol ContextDialogDelegate {
|
||||
@objc func contextDialogDidComplete(_ contextDialog: FBSDKGamingServicesKit.ContextWebDialog)
|
||||
@objc func contextDialog(_ contextDialog: FBSDKGamingServicesKit.ContextWebDialog, didFailWithError error: any Swift.Error)
|
||||
@objc func contextDialogDidCancel(_ contextDialog: FBSDKGamingServicesKit.ContextWebDialog)
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKContextDialogPresenter) final public class ContextDialogPresenter : ObjectiveC.NSObject {
|
||||
@objc override convenience dynamic public init()
|
||||
@objc final public func makeAndShowCreateContextDialog(content: FBSDKGamingServicesKit.CreateContextContent, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate) throws
|
||||
@objc final public func makeAndShowSwitchContextDialog(content: FBSDKGamingServicesKit.SwitchContextContent, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate) throws
|
||||
@objc final public func makeAndShowChooseContextDialog(content: FBSDKGamingServicesKit.ChooseContextContent, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate)
|
||||
@objc deinit
|
||||
}
|
||||
public enum ContextDialogPresenterError : Swift.Error {
|
||||
case showCreateContext
|
||||
case showSwitchContext
|
||||
case showChooseContext
|
||||
case invalidAccessToken
|
||||
public static func == (a: FBSDKGamingServicesKit.ContextDialogPresenterError, b: FBSDKGamingServicesKit.ContextDialogPresenterError) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKContextWebDialog) public class ContextWebDialog : ObjectiveC.NSObject, FBSDKCoreKit.WebDialogDelegate, FBSDKGamingServicesKit.DialogProtocol {
|
||||
@objc public var delegate: (any FBSDKGamingServicesKit.ContextDialogDelegate)?
|
||||
@objc public var dialogContent: (any FBSDKGamingServicesKit.ValidatableProtocol)?
|
||||
@objc public var currentWebDialog: FBSDKCoreKit._WebDialog?
|
||||
@objc public func show() -> Swift.Bool
|
||||
@objc public func validate() throws
|
||||
@objc public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didCompleteWithResults results: [Swift.String : Any])
|
||||
@objc public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didFailWithError error: any Swift.Error)
|
||||
@objc public func webDialogDidCancel(_ webDialog: FBSDKCoreKit._WebDialog)
|
||||
@objc public func createWebDialogFrame(withWidth width: CoreFoundation.CGFloat, height: CoreFoundation.CGFloat, windowFinder: any FBSDKCoreKit._WindowFinding) -> CoreFoundation.CGRect
|
||||
@objc deinit
|
||||
}
|
||||
@objcMembers @objc(FBSDKCreateContextContent) final public class CreateContextContent : ObjectiveC.NSObject, FBSDKGamingServicesKit.ValidatableProtocol {
|
||||
@objc final public var playerID: Swift.String
|
||||
@objc(initDialogContentWithPlayerID:) public init(playerID: Swift.String)
|
||||
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
||||
@objc final public func validate() throws
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKCreateContextDialog) final public class CreateContextDialog : FBSDKGamingServicesKit.ContextWebDialog {
|
||||
@objc public init(content: FBSDKGamingServicesKit.CreateContextContent, windowFinder: any FBSDKCoreKit._WindowFinding, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate)
|
||||
@discardableResult
|
||||
@objc override final public func show() -> Swift.Bool
|
||||
@objc override final public func validate() throws
|
||||
@objc deinit
|
||||
}
|
||||
public enum CustomUpdateContentError : Swift.Error {
|
||||
case notInGameContext
|
||||
case invalidMessage
|
||||
case invalidMedia
|
||||
case invalidImage
|
||||
public static func == (a: FBSDKGamingServicesKit.CustomUpdateContentError, b: FBSDKGamingServicesKit.CustomUpdateContentError) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
final public class CustomUpdateContentImage {
|
||||
public init(message: Swift.String, image: UIKit.UIImage, cta: Swift.String? = nil, payload: Swift.String? = nil, messageLocalization: [Swift.String : Swift.String] = [:], ctaLocalization: [Swift.String : Swift.String] = [:])
|
||||
@objc deinit
|
||||
}
|
||||
final public class CustomUpdateContentMedia {
|
||||
public init(message: Swift.String, media: any FBSDKGamingServicesKit.URLMedia, cta: Swift.String? = nil, payload: Swift.String? = nil, messageLocalization: [Swift.String : Swift.String] = [:], ctaLocalization: [Swift.String : Swift.String] = [:])
|
||||
@objc deinit
|
||||
}
|
||||
public enum CustomUpdateGraphRequestError : Swift.Error {
|
||||
case server(any Swift.Error)
|
||||
case invalidAccessToken
|
||||
case contentParsing
|
||||
case decoding
|
||||
}
|
||||
final public class CustomUpdateGraphRequest {
|
||||
final public let graphRequestFactory: any FBSDKCoreKit.GraphRequestFactoryProtocol
|
||||
public init()
|
||||
public init(graphRequestFactory: any FBSDKCoreKit.GraphRequestFactoryProtocol = GraphRequestFactory())
|
||||
final public func request(content: FBSDKGamingServicesKit.CustomUpdateContentMedia, completionHandler: @escaping (Swift.Result<Swift.Bool, FBSDKGamingServicesKit.CustomUpdateGraphRequestError>) -> Swift.Void) throws
|
||||
final public func request(content: FBSDKGamingServicesKit.CustomUpdateContentImage, completionHandler: @escaping (Swift.Result<Swift.Bool, FBSDKGamingServicesKit.CustomUpdateGraphRequestError>) -> Swift.Void) throws
|
||||
@objc deinit
|
||||
}
|
||||
@objc(FBSDKDialog) public protocol DialogProtocol {
|
||||
@objc weak var delegate: (any FBSDKGamingServicesKit.ContextDialogDelegate)? { get set }
|
||||
@objc var dialogContent: (any FBSDKGamingServicesKit.ValidatableProtocol)? { get set }
|
||||
@objc func show() -> Swift.Bool
|
||||
@objc func validate() throws
|
||||
}
|
||||
@objc(FBSDKValidatable) public protocol ValidatableProtocol {
|
||||
@objc func validate() throws
|
||||
}
|
||||
public struct FacebookGIF : Swift.Codable, Swift.Equatable, FBSDKGamingServicesKit.URLMedia {
|
||||
public init(withUrl url: Foundation.URL)
|
||||
public static func == (a: FBSDKGamingServicesKit.FacebookGIF, b: FBSDKGamingServicesKit.FacebookGIF) -> Swift.Bool
|
||||
public func encode(to encoder: any Swift.Encoder) throws
|
||||
public init(from decoder: any Swift.Decoder) throws
|
||||
}
|
||||
public struct FacebookVideo : Swift.Codable, Swift.Equatable, FBSDKGamingServicesKit.URLMedia {
|
||||
public init(withUrl url: Foundation.URL)
|
||||
public static func == (a: FBSDKGamingServicesKit.FacebookVideo, b: FBSDKGamingServicesKit.FacebookVideo) -> Swift.Bool
|
||||
public func encode(to encoder: any Swift.Encoder) throws
|
||||
public init(from decoder: any Swift.Decoder) throws
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc(FBSDKFriendFinderDialog) final public class FriendFinderDialog : ObjectiveC.NSObject {
|
||||
@objc override convenience dynamic public init()
|
||||
@objc(launchFriendFinderDialogWithCompletionHandler:) public static func launch(completionHandler: @escaping FBSDKGamingServicesKit.GamingServiceCompletionHandler)
|
||||
@objc deinit
|
||||
}
|
||||
@objc(FBSDKGameRequestActionType) public enum GameRequestActionType : Swift.UInt {
|
||||
case none
|
||||
case send
|
||||
case askFor
|
||||
case turn
|
||||
case invite
|
||||
public init?(rawValue: Swift.UInt)
|
||||
public typealias RawValue = Swift.UInt
|
||||
public var rawValue: Swift.UInt {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKGameRequestContent) final public class GameRequestContent : ObjectiveC.NSObject, FBSDKShareKit.SharingValidatable, Foundation.NSSecureCoding {
|
||||
@objc final public var actionType: FBSDKGamingServicesKit.GameRequestActionType
|
||||
@objc final public var data: Swift.String?
|
||||
@objc final public var filters: FBSDKGamingServicesKit.GameRequestFilter
|
||||
@objc final public var message: Swift.String
|
||||
@objc final public var objectID: Swift.String
|
||||
@objc final public var recipients: [Swift.String]
|
||||
@objc final public var recipientSuggestions: [Swift.String]
|
||||
@objc final public var title: Swift.String
|
||||
@objc final public var cta: Swift.String
|
||||
@objc(validateWithOptions:error:) final public func validate(options: FBSDKShareKit.ShareBridgeOptions = []) throws
|
||||
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
||||
@objc(isEqualToGameRequestContent:) final public func isEqual(to content: FBSDKGamingServicesKit.GameRequestContent) -> Swift.Bool
|
||||
@objc final public class var supportsSecureCoding: Swift.Bool {
|
||||
@objc get
|
||||
}
|
||||
@objc convenience public init(coder decoder: Foundation.NSCoder)
|
||||
@objc final public func encode(with encoder: Foundation.NSCoder)
|
||||
@objc override dynamic public init()
|
||||
@objc deinit
|
||||
}
|
||||
@objcMembers @objc(FBSDKGameRequestDialog) final public class GameRequestDialog : ObjectiveC.NSObject {
|
||||
@objc weak final public var delegate: (any FBSDKGamingServicesKit.GameRequestDialogDelegate)?
|
||||
@objc final public var content: FBSDKGamingServicesKit.GameRequestContent
|
||||
@objc final public var isFrictionlessRequestsEnabled: Swift.Bool
|
||||
@objc final public var canShow: Swift.Bool {
|
||||
@objc get
|
||||
}
|
||||
@objc public init(content: FBSDKGamingServicesKit.GameRequestContent, delegate: (any FBSDKGamingServicesKit.GameRequestDialogDelegate)?)
|
||||
@objc(dialogWithContent:delegate:) public static func dialog(content: FBSDKGamingServicesKit.GameRequestContent, delegate: (any FBSDKGamingServicesKit.GameRequestDialogDelegate)?) -> FBSDKGamingServicesKit.GameRequestDialog
|
||||
@discardableResult
|
||||
@objc(showWithContent:delegate:) public static func show(content: FBSDKGamingServicesKit.GameRequestContent, delegate: (any FBSDKGamingServicesKit.GameRequestDialogDelegate)?) -> FBSDKGamingServicesKit.GameRequestDialog
|
||||
@objc @discardableResult
|
||||
final public func show() -> Swift.Bool
|
||||
@objc(validateWithError:) final public func validate() throws
|
||||
@objc deinit
|
||||
}
|
||||
extension FBSDKGamingServicesKit.GameRequestDialog : FBSDKCoreKit.WebDialogDelegate {
|
||||
@objc final public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didCompleteWithResults results: [Swift.String : Any])
|
||||
@objc final public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didFailWithError error: any Swift.Error)
|
||||
@objc final public func webDialogDidCancel(_ webDialog: FBSDKCoreKit._WebDialog)
|
||||
}
|
||||
extension FBSDKGamingServicesKit.GameRequestDialog : FBSDKCoreKit.URLOpening {
|
||||
@objc final public func application(_ application: UIKit.UIApplication?, open potentialURL: Foundation.URL?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func canOpen(_ url: Foundation.URL, for application: UIKit.UIApplication?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func applicationDidBecomeActive(_ application: UIKit.UIApplication)
|
||||
@objc final public func isAuthenticationURL(_ url: Foundation.URL) -> Swift.Bool
|
||||
}
|
||||
@objc(FBSDKGameRequestDialogDelegate) public protocol GameRequestDialogDelegate {
|
||||
@objc(gameRequestDialog:didCompleteWithResults:) func gameRequestDialog(_ gameRequestDialog: FBSDKGamingServicesKit.GameRequestDialog, didCompleteWithResults results: [Swift.String : Any])
|
||||
@objc(gameRequestDialog:didFailWithError:) func gameRequestDialog(_ gameRequestDialog: FBSDKGamingServicesKit.GameRequestDialog, didFailWithError error: any Swift.Error)
|
||||
@objc func gameRequestDialogDidCancel(_ gameRequestDialog: FBSDKGamingServicesKit.GameRequestDialog)
|
||||
}
|
||||
@objc(FBSDKGameRequestFilter) public enum GameRequestFilter : Swift.UInt {
|
||||
case none
|
||||
case appUsers
|
||||
case appNonUsers
|
||||
case everybody
|
||||
public init?(rawValue: Swift.UInt)
|
||||
public typealias RawValue = Swift.UInt
|
||||
public var rawValue: Swift.UInt {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKGameRequestURLProvider) final public class GameRequestURLProvider : ObjectiveC.NSObject {
|
||||
@objc(createDeepLinkURLWithQueryDictionary:) final public class func createDeepLinkURL(queryDictionary: [Swift.String : Any]) -> Foundation.URL?
|
||||
@objc(filtersNameForFilters:) final public class func filtersName(for filters: FBSDKGamingServicesKit.GameRequestFilter) -> Swift.String?
|
||||
@objc(actionTypeNameForActionType:) final public class func actionTypeName(for actionType: FBSDKGamingServicesKit.GameRequestActionType) -> Swift.String?
|
||||
@objc override dynamic public init()
|
||||
@objc deinit
|
||||
}
|
||||
@objcMembers @objc(FBSDKGamingContext) final public class GamingContext : ObjectiveC.NSObject {
|
||||
@objc(currentContext) public static var current: FBSDKGamingServicesKit.GamingContext?
|
||||
@objc final public let identifier: Swift.String
|
||||
@objc final public let size: Swift.Int
|
||||
@objc public init?(identifier: Swift.String, size: Swift.Int)
|
||||
@objc deinit
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKGamingGroupIntegration) final public class GamingGroupIntegration : ObjectiveC.NSObject {
|
||||
@objc public static func openGroupPage(completionHandler: @escaping FBSDKGamingServicesKit.GamingServiceCompletionHandler)
|
||||
@objc deinit
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKGamingImageUploader) final public class GamingImageUploader : ObjectiveC.NSObject {
|
||||
@objc(uploadImageWithConfiguration:andResultCompletion:) public static func uploadImage(with configuration: FBSDKGamingServicesKit.GamingImageUploaderConfiguration, andResultCompletion completion: @escaping FBSDKGamingServicesKit.GamingServiceResultCompletion)
|
||||
@objc(uploadImageWithConfiguration:completion:andProgressHandler:) public static func uploadImage(with configuration: FBSDKGamingServicesKit.GamingImageUploaderConfiguration, completion: @escaping FBSDKGamingServicesKit.GamingServiceResultCompletion, andProgressHandler progressHandler: FBSDKGamingServicesKit.GamingServiceProgressHandler?)
|
||||
@objc deinit
|
||||
}
|
||||
extension FBSDKGamingServicesKit.GamingImageUploader : FBSDKCoreKit.GraphRequestConnectionDelegate {
|
||||
@objc final public func requestConnection(_ connection: any FBSDKCoreKit.GraphRequestConnecting, didSendBodyData bytesWritten: Swift.Int, totalBytesWritten: Swift.Int, totalBytesExpectedToWrite: Swift.Int)
|
||||
}
|
||||
@objcMembers @objc(FBSDKGamingImageUploaderConfiguration) final public class GamingImageUploaderConfiguration : ObjectiveC.NSObject {
|
||||
@objc final public var image: UIKit.UIImage {
|
||||
get
|
||||
}
|
||||
@objc final public var caption: Swift.String? {
|
||||
get
|
||||
}
|
||||
@objc final public var shouldLaunchMediaDialog: Swift.Bool {
|
||||
get
|
||||
}
|
||||
@objc public init(image: UIKit.UIImage, caption: Swift.String?, shouldLaunchMediaDialog: Swift.Bool)
|
||||
@objc deinit
|
||||
}
|
||||
@objcMembers @objc(FBSDKGamingPayload) final public class GamingPayload : ObjectiveC.NSObject {
|
||||
@objc final public var URL: FBSDKCoreKit.AppLinkURL
|
||||
@objc final public var payload: Swift.String
|
||||
@objc public init(URL: FBSDKCoreKit.AppLinkURL)
|
||||
@objc deinit
|
||||
}
|
||||
@objc(FBSDKGamingPayloadDelegate) public protocol GamingPayloadDelegate : ObjectiveC.NSObjectProtocol {
|
||||
@objc optional func parsedGameRequestURLContaining(_ payload: FBSDKGamingServicesKit.GamingPayload, gameRequestID: Swift.String)
|
||||
@objc optional func parsedGamingContextURLContaining(_ payload: FBSDKGamingServicesKit.GamingPayload)
|
||||
@objc optional func parsedTournamentURLContaining(_ payload: FBSDKGamingServicesKit.GamingPayload, tournamentID: Swift.String)
|
||||
}
|
||||
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKGamingPayloadObserver) final public class GamingPayloadObserver : ObjectiveC.NSObject {
|
||||
@objc weak final public var delegate: (any FBSDKGamingServicesKit.GamingPayloadDelegate)? {
|
||||
@objc get
|
||||
@objc set
|
||||
}
|
||||
@objc convenience public init(delegate: (any FBSDKGamingServicesKit.GamingPayloadDelegate)?)
|
||||
@objc deinit
|
||||
}
|
||||
extension FBSDKGamingServicesKit.GamingPayloadObserver : FBSDKCoreKit.FBSDKApplicationObserving {
|
||||
@objc final public func application(_ application: UIKit.UIApplication, open url: Foundation.URL, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
}
|
||||
public typealias GamingServiceCompletionHandler = (_ success: Swift.Bool, _ error: (any Swift.Error)?) -> Swift.Void
|
||||
public typealias FBSDKGamingServiceCompletionHandler = FBSDKGamingServicesKit.GamingServiceCompletionHandler
|
||||
public typealias GamingServiceResultCompletion = (_ success: Swift.Bool, _ result: [Swift.String : Any]?, _ error: (any Swift.Error)?) -> Swift.Void
|
||||
public typealias FBSDKGamingServiceResultCompletion = FBSDKGamingServicesKit.GamingServiceResultCompletion
|
||||
public typealias GamingServiceProgressHandler = (_ bytesSent: Swift.Int64, _ totalBytesSent: Swift.Int64, _ totalBytesExpectedToSend: Swift.Int64) -> Swift.Void
|
||||
public typealias FBSDKGamingServiceProgressHandler = FBSDKGamingServicesKit.GamingServiceProgressHandler
|
||||
public enum GamingServicesDialogError : Swift.Error {
|
||||
case invalidContentType
|
||||
case missingContent
|
||||
case deeplinkURLCreation
|
||||
case cancelled
|
||||
public static func == (a: FBSDKGamingServicesKit.GamingServicesDialogError, b: FBSDKGamingServicesKit.GamingServicesDialogError) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKGamingVideoUploader) final public class GamingVideoUploader : ObjectiveC.NSObject {
|
||||
@objc(uploadVideoWithConfiguration:andResultCompletion:) public static func uploadVideo(configuration: FBSDKGamingServicesKit.GamingVideoUploaderConfiguration, completion: @escaping FBSDKGamingServicesKit.GamingServiceResultCompletion)
|
||||
@objc(uploadVideoWithConfiguration:completion:andProgressHandler:) public static func uploadVideo(configuration: FBSDKGamingServicesKit.GamingVideoUploaderConfiguration, completion: @escaping FBSDKGamingServicesKit.GamingServiceResultCompletion, progressHandler: FBSDKGamingServicesKit.GamingServiceProgressHandler?)
|
||||
@objc deinit
|
||||
}
|
||||
@objcMembers @objc(FBSDKGamingVideoUploaderConfiguration) final public class GamingVideoUploaderConfiguration : ObjectiveC.NSObject {
|
||||
@objc final public var videoURL: Foundation.URL {
|
||||
get
|
||||
}
|
||||
@objc final public var caption: Swift.String? {
|
||||
get
|
||||
}
|
||||
@objc public init(videoURL: Foundation.URL, caption: Swift.String?)
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class GamingWebDialog<Success> : FBSDKCoreKit.WebDialogDelegate where Success : FBSDKGamingServicesKit.GamingWebDialogSuccess {
|
||||
public var completion: ((Swift.Result<Success, any Swift.Error>) -> Swift.Void)?
|
||||
@objc public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didCompleteWithResults results: [Swift.String : Any])
|
||||
@objc public func webDialog(_ webDialog: FBSDKCoreKit._WebDialog, didFailWithError error: any Swift.Error)
|
||||
@objc public func webDialogDidCancel(_ webDialog: FBSDKCoreKit._WebDialog)
|
||||
@objc deinit
|
||||
}
|
||||
public protocol GamingWebDialogSuccess {
|
||||
init(_ dict: [Swift.String : Any]) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class JoinTournamentDialog : FBSDKGamingServicesKit.GamingWebDialog<FBSDKGamingServicesKit.JoinTournamentDialogSuccess> {
|
||||
final public var tournamentID: Swift.String?
|
||||
final public var payload: Swift.String?
|
||||
public init()
|
||||
final public func showSpecific(tournamentID: Swift.String, payload: Swift.String?, completion: @escaping (Swift.Result<FBSDKGamingServicesKit.JoinTournamentDialogSuccess, any Swift.Error>) -> Swift.Void)
|
||||
final public func showSuggested(payload: Swift.String?, completion: @escaping (Swift.Result<FBSDKGamingServicesKit.JoinTournamentDialogSuccess, any Swift.Error>) -> Swift.Void)
|
||||
@objc deinit
|
||||
}
|
||||
public struct JoinTournamentDialogSuccess : FBSDKGamingServicesKit.GamingWebDialogSuccess {
|
||||
public let tournamentID: Swift.String
|
||||
public let payload: Swift.String?
|
||||
public init(_ dict: [Swift.String : Any]) throws
|
||||
}
|
||||
public enum ShareTournamentDialogError : Swift.Error {
|
||||
case invalidAccessToken
|
||||
case invalidAuthToken
|
||||
case invalidTournamentID
|
||||
case unableToCreateDialogUrl
|
||||
case unknownBridgeError
|
||||
case errorMessage(Swift.String)
|
||||
case bridgeError(any Swift.Error)
|
||||
}
|
||||
@objc @_hasMissingDesignatedInitializers final public class ShareTournamentDialog : ObjectiveC.NSObject, FBSDKCoreKit.URLOpening {
|
||||
convenience public init(delegate: any FBSDKGamingServicesKit.ShareTournamentDialogDelegate)
|
||||
final public func show(score: Swift.Int, tournamentID: Swift.String) throws
|
||||
final public func show(score: Swift.Int, tournament: FBSDKGamingServicesKit.Tournament) throws
|
||||
final public func show(initialScore: Swift.Int, config configuration: FBSDKGamingServicesKit.TournamentConfig) throws
|
||||
@objc final public func isAuthenticationURL(_ url: Foundation.URL) -> Swift.Bool
|
||||
@objc final public func application(_ application: UIKit.UIApplication?, open url: Foundation.URL?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func canOpen(_ url: Foundation.URL, for application: UIKit.UIApplication?, sourceApplication: Swift.String?, annotation: Any?) -> Swift.Bool
|
||||
@objc final public func applicationDidBecomeActive(_ application: UIKit.UIApplication)
|
||||
@objc deinit
|
||||
}
|
||||
public protocol ShareTournamentDialogDelegate : AnyObject {
|
||||
func didComplete(dialog: FBSDKGamingServicesKit.ShareTournamentDialog, tournament: FBSDKGamingServicesKit.Tournament)
|
||||
func didFail(withError error: any Swift.Error, dialog: FBSDKGamingServicesKit.ShareTournamentDialog)
|
||||
func didCancel(dialog: FBSDKGamingServicesKit.ShareTournamentDialog)
|
||||
}
|
||||
@objc(FBSDKShowable) public protocol Showable {
|
||||
@objc func show() -> Swift.Bool
|
||||
}
|
||||
extension FBSDKGamingServicesKit.ChooseContextDialog : FBSDKGamingServicesKit.Showable {
|
||||
}
|
||||
extension FBSDKGamingServicesKit.CreateContextDialog : FBSDKGamingServicesKit.Showable {
|
||||
}
|
||||
@objcMembers @objc(FBSDKSwitchContextContent) final public class SwitchContextContent : ObjectiveC.NSObject, FBSDKGamingServicesKit.ValidatableProtocol {
|
||||
@objc(initDialogContentWithContextID:) public init(contextID: Swift.String)
|
||||
@objc override final public func isEqual(_ object: Any?) -> Swift.Bool
|
||||
@objc final public func validate() throws
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKSwitchContextDialog) final public class SwitchContextDialog : FBSDKGamingServicesKit.ContextWebDialog, FBSDKGamingServicesKit.Showable {
|
||||
@objc public init(content: FBSDKGamingServicesKit.SwitchContextContent, windowFinder: any FBSDKCoreKit._WindowFinding, delegate: any FBSDKGamingServicesKit.ContextDialogDelegate)
|
||||
@objc override final public func show() -> Swift.Bool
|
||||
@objc override final public func validate() throws
|
||||
@objc deinit
|
||||
}
|
||||
public enum TournamentDecodingError : Swift.Error {
|
||||
case invalidExpirationDate
|
||||
case invalidScoreType
|
||||
public static func == (a: FBSDKGamingServicesKit.TournamentDecodingError, b: FBSDKGamingServicesKit.TournamentDecodingError) -> Swift.Bool
|
||||
public func hash(into hasher: inout Swift.Hasher)
|
||||
public var hashValue: Swift.Int {
|
||||
get
|
||||
}
|
||||
}
|
||||
public struct Tournament : Swift.Codable {
|
||||
public var identifier: Swift.String {
|
||||
get
|
||||
}
|
||||
public var endTime: Foundation.Date? {
|
||||
get
|
||||
}
|
||||
public var title: Swift.String? {
|
||||
get
|
||||
}
|
||||
public var payload: Swift.String?
|
||||
public init(from decoder: any Swift.Decoder) throws
|
||||
public func encode(to encoder: any Swift.Encoder) throws
|
||||
}
|
||||
public struct TournamentConfig {
|
||||
public var title: Swift.String?
|
||||
public var endTime: Foundation.TimeInterval?
|
||||
public var scoreType: FBSDKGamingServicesKit.TournamentScoreType?
|
||||
public var sortOrder: FBSDKGamingServicesKit.TournamentSortOrder?
|
||||
public var payload: Swift.String?
|
||||
public var image: UIKit.UIImage?
|
||||
public init(title: Swift.String? = nil, endTime: Foundation.Date? = nil, scoreType: FBSDKGamingServicesKit.TournamentScoreType? = nil, sortOrder: FBSDKGamingServicesKit.TournamentSortOrder? = nil, image: UIKit.UIImage? = nil, payload: Swift.String? = nil)
|
||||
}
|
||||
public enum TournamentFetchError : Swift.Error {
|
||||
case server(any Swift.Error)
|
||||
case decoding
|
||||
case invalidAuthToken
|
||||
case invalidAccessToken
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class TournamentFetcher {
|
||||
convenience public init()
|
||||
final public func fetchTournaments(completionHandler: @escaping (Swift.Result<[FBSDKGamingServicesKit.Tournament], FBSDKGamingServicesKit.TournamentFetchError>) -> Swift.Void)
|
||||
@objc deinit
|
||||
}
|
||||
public enum TournamentScoreType : Swift.String {
|
||||
case numeric
|
||||
case time
|
||||
public init?(rawValue: Swift.String)
|
||||
public typealias RawValue = Swift.String
|
||||
public var rawValue: Swift.String {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum TournamentSortOrder : Swift.String {
|
||||
case higherIsBetter
|
||||
case lowerIsBetter
|
||||
public init?(rawValue: Swift.String)
|
||||
public typealias RawValue = Swift.String
|
||||
public var rawValue: Swift.String {
|
||||
get
|
||||
}
|
||||
}
|
||||
public enum TournamentUpdaterError : Swift.Error {
|
||||
case server(any Swift.Error)
|
||||
case decoding
|
||||
case invalidAuthToken
|
||||
case invalidAccessToken
|
||||
case invalidTournamentID
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class TournamentUpdater {
|
||||
convenience public init()
|
||||
final public func update(tournamentID: Swift.String, score: Swift.Int, completionHandler: @escaping (Swift.Result<Swift.Bool, FBSDKGamingServicesKit.TournamentUpdaterError>) -> Swift.Void)
|
||||
final public func update(tournament: FBSDKGamingServicesKit.Tournament, score: Swift.Int, completionHandler: @escaping (Swift.Result<Swift.Bool, FBSDKGamingServicesKit.TournamentUpdaterError>) -> Swift.Void)
|
||||
@objc deinit
|
||||
}
|
||||
public protocol URLMedia : Swift.Decodable, Swift.Encodable {
|
||||
init(withUrl: Foundation.URL)
|
||||
}
|
||||
extension FBSDKGamingServicesKit.ChooseContextFilter : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.ChooseContextFilter : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.ChooseContextFilter : Swift.RawRepresentable {}
|
||||
extension FBSDKGamingServicesKit.ContextDialogPresenterError : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.ContextDialogPresenterError : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.CustomUpdateContentError : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.CustomUpdateContentError : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestActionType : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestActionType : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestActionType : Swift.RawRepresentable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestFilter : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestFilter : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.GameRequestFilter : Swift.RawRepresentable {}
|
||||
extension FBSDKGamingServicesKit.GamingServicesDialogError : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.GamingServicesDialogError : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.TournamentDecodingError : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.TournamentDecodingError : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.TournamentScoreType : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.TournamentScoreType : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.TournamentScoreType : Swift.RawRepresentable {}
|
||||
extension FBSDKGamingServicesKit.TournamentSortOrder : Swift.Equatable {}
|
||||
extension FBSDKGamingServicesKit.TournamentSortOrder : Swift.Hashable {}
|
||||
extension FBSDKGamingServicesKit.TournamentSortOrder : Swift.RawRepresentable {}
|
||||
@@ -0,0 +1,4 @@
|
||||
framework module FBSDKGamingServicesKit {
|
||||
header "FBSDKGamingServicesKit-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,192 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict>
|
||||
<key>Headers/FBSDKGamingServicesKit-Swift.h</key>
|
||||
<data>
|
||||
x3XfIJsXe7ekiCsHEIVM7YutLWQ=
|
||||
</data>
|
||||
<key>Info.plist</key>
|
||||
<data>
|
||||
iYzRI5Gz8wUm8VneeLZj7P6Jw8M=
|
||||
</data>
|
||||
<key>Modules/FBSDKGamingServicesKit.swiftmodule/arm64-apple-ios.abi.json</key>
|
||||
<data>
|
||||
4HQ1GB5T7U4s3afB3RfGNBNfHro=
|
||||
</data>
|
||||
<key>Modules/FBSDKGamingServicesKit.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
||||
<data>
|
||||
asKXpBwe+6yoAPMv9sGxH2vLKGc=
|
||||
</data>
|
||||
<key>Modules/FBSDKGamingServicesKit.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
||||
<data>
|
||||
Hwx6jPucHp0+njtHR3n66c0TxRk=
|
||||
</data>
|
||||
<key>Modules/FBSDKGamingServicesKit.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
||||
<data>
|
||||
asKXpBwe+6yoAPMv9sGxH2vLKGc=
|
||||
</data>
|
||||
<key>Modules/module.modulemap</key>
|
||||
<data>
|
||||
1INhvxTcxy84KlDnXm5rZBWREYQ=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict>
|
||||
<key>Headers/FBSDKGamingServicesKit-Swift.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
x3XfIJsXe7ekiCsHEIVM7YutLWQ=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
nvPddigqJk57ZQVAHkxojW0NJ2Zuk5Bh+PeOUwLAwCM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/FBSDKGamingServicesKit.swiftmodule/arm64-apple-ios.abi.json</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
4HQ1GB5T7U4s3afB3RfGNBNfHro=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
AcrmE7GDrCtw9pP/CVL7cdbZXsS1NU7x61//LG+4TVw=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/FBSDKGamingServicesKit.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
asKXpBwe+6yoAPMv9sGxH2vLKGc=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
RStKTyBmnZflfqojGrLFYWTFfEw6NihM0AUxtTPKmPs=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/FBSDKGamingServicesKit.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
Hwx6jPucHp0+njtHR3n66c0TxRk=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
13M19rctBS9PtfO903S1LFqTvWIBlRdm6iHmxbo6Gdg=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/FBSDKGamingServicesKit.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
asKXpBwe+6yoAPMv9sGxH2vLKGc=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
RStKTyBmnZflfqojGrLFYWTFfEw6NihM0AUxtTPKmPs=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/module.modulemap</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
1INhvxTcxy84KlDnXm5rZBWREYQ=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
ZLerLpdS0BcLjtlp4pnVg4FZbcgvWbRh82p0T4wiB0E=
|
||||
</data>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
Reference in New Issue
Block a user