| | |
| | | #if 0 |
| | | #elif defined(__arm64__) && __arm64__ |
| | | // Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1) |
| | | // Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5) |
| | | #ifndef FBSDKLOGINKIT_SWIFT_H |
| | | #define FBSDKLOGINKIT_SWIFT_H |
| | | #pragma clang diagnostic push |
| | |
| | | # if __has_include(<uchar.h>) |
| | | # include <uchar.h> |
| | | # elif !defined(__cplusplus) |
| | | typedef unsigned char char8_t; |
| | | typedef uint_least16_t char16_t; |
| | | typedef uint_least32_t char32_t; |
| | | # endif |
| | |
| | | #if defined(__OBJC__) |
| | | |
| | | @class NSString; |
| | | |
| | | /// Represents a code verifier used in the PKCE (Proof Key for Code Exchange) |
| | | /// process. This is a cryptographically random string using the characters |
| | | /// A-Z, a-z, 0-9, and the punctuation characters -._~ (hyphen, period, |
| | |
| | | |
| | | @class NSURL; |
| | | @class NSDate; |
| | | |
| | | /// Describes the initial response when starting the device login flow. |
| | | /// This is used by <code>DeviceLoginManager</code>. |
| | | SWIFT_CLASS_NAMED("DeviceLoginCodeInfo") |
| | |
| | | }; |
| | | |
| | | @protocol FBSDKDeviceLoginManagerDelegate; |
| | | |
| | | /// Use this class to perform a device login flow. |
| | | /// The device login flow starts by requesting a code from the device login API. |
| | | /// This class informs the delegate when this code is received. You should then present the |
| | |
| | | |
| | | @class NSNetService; |
| | | @class NSNumber; |
| | | |
| | | @interface FBSDKDeviceLoginManager (SWIFT_EXTENSION(FBSDKLoginKit)) <NSNetServiceDelegate> |
| | | - (void)netService:(NSNetService * _Nonnull)service didNotPublish:(NSDictionary<NSString *, NSNumber *> * _Nonnull)errorValues; |
| | | @end |
| | | |
| | | |
| | | @class FBSDKDeviceLoginManagerResult; |
| | | |
| | | /// A delegate for <code>DeviceLoginManager</code>. |
| | | SWIFT_PROTOCOL_NAMED("DeviceLoginManagerDelegate") |
| | | @protocol FBSDKDeviceLoginManagerDelegate |
| | |
| | | @end |
| | | |
| | | @class FBSDKAccessToken; |
| | | |
| | | /// Represents the results of the a device login flow. This is used by <code>DeviceLoginManager</code> |
| | | SWIFT_CLASS_NAMED("DeviceLoginManagerResult") |
| | | @interface FBSDKDeviceLoginManagerResult : NSObject |
| | |
| | | enum FBSDKTooltipColorStyle : NSUInteger; |
| | | enum FBSDKLoginTracking : NSUInteger; |
| | | @class NSCoder; |
| | | |
| | | /// A button that initiates a log in or log out flow upon tapping. |
| | | /// <code>LoginButton</code> works with <code>AccessToken.current</code> to determine what to display, |
| | | /// and automatically starts authentication when tapped (i.e., you do not need to manually subscribe action targets). |
| | |
| | | }; |
| | | |
| | | enum FBSDKTooltipViewArrowDirection : NSUInteger; |
| | | |
| | | /// Tooltip bubble with text in it used to display tips for UI elements, |
| | | /// with a pointed arrow (to refer to the UI element). |
| | | /// The tooltip fades in and will automatically fade out. See <code>displayDuration</code>. |
| | |
| | | }; |
| | | |
| | | @protocol FBSDKLoginTooltipViewDelegate; |
| | | |
| | | /// Represents a tooltip to be displayed next to a Facebook login button |
| | | /// to highlight features for new users. |
| | | /// The <code>FBSDKLoginButton</code> may display this view automatically. If you do |
| | |
| | | - (nonnull instancetype)initWithTagline:(NSString * _Nullable)tagline message:(NSString * _Nullable)message colorStyle:(enum FBSDKTooltipColorStyle)colorStyle OBJC_DESIGNATED_INITIALIZER; |
| | | - (void)presentInView:(UIView * _Nonnull)view withArrowPosition:(CGPoint)arrowPosition direction:(enum FBSDKTooltipViewArrowDirection)direction; |
| | | @end |
| | | |
| | | |
| | | /// Internal Type exposed to facilitate transition to Swift. |
| | | /// API Subject to change or removal without warning. Do not use. |
| | |
| | | + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
| | | @end |
| | | |
| | | |
| | | |
| | | |
| | | @class FBSDKLoginManagerLoginResult; |
| | | |
| | | /// A delegate for <code>FBSDKLoginButton</code> |
| | | SWIFT_PROTOCOL_NAMED("LoginButtonDelegate") |
| | | @protocol FBSDKLoginButtonDelegate <NSObject> |
| | |
| | | /// @return <code>true</code> if the login should be allowed to proceed, <code>false</code> otherwise |
| | | - (BOOL)loginButtonWillLogin:(FBSDKLoginButton * _Nonnull)loginButton SWIFT_WARN_UNUSED_RESULT; |
| | | @end |
| | | |
| | | |
| | | /// A configuration to use for modifying the behavior of a login attempt. |
| | | SWIFT_CLASS_NAMED("LoginConfiguration") |
| | |
| | | }; |
| | | |
| | | @class UIViewController; |
| | | |
| | | /// Provides methods for logging the user in and out. |
| | | /// It works directly with <code>AccessToken</code> (for data access) and <code>AuthenticationToken</code> (for authentication); |
| | | /// it sets the “current” tokens upon successful authorizations (or sets to <code>nil</code> in case of <code>logOut</code>). |
| | |
| | | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
| | | @end |
| | | |
| | | |
| | | |
| | | @class UIApplication; |
| | | |
| | | @interface FBSDKLoginManager (SWIFT_EXTENSION(FBSDKLoginKit)) <FBSDKURLOpening> |
| | | + (FBSDKLoginManager * _Nonnull)makeOpener 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; |
| | |
| | | @end |
| | | |
| | | @class FBSDKAuthenticationToken; |
| | | |
| | | /// Describes the result of a login attempt. |
| | | SWIFT_CLASS_NAMED("LoginManagerLoginResult") |
| | | @interface FBSDKLoginManagerLoginResult : NSObject |
| | |
| | | - (nonnull instancetype)init SWIFT_UNAVAILABLE; |
| | | + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
| | | @end |
| | | |
| | | |
| | | /// The <code>LoginTooltipViewDelegate</code> protocol defines the methods used to receive event |
| | | /// notifications from <code>FBLoginTooltipView</code> objects. |
| | |
| | | FBSDKLoginTrackingLimited = 1, |
| | | }; |
| | | |
| | | |
| | | @class FBSDKProfile; |
| | | |
| | | /// Internal Type exposed to facilitate transition to Swift. |
| | | /// API Subject to change or removal without warning. Do not use. |
| | | /// <ul> |