| | |
| | | FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentCollectionKey |
| | | NS_SWIFT_NAME(ErrorArgumentCollectionKey); |
| | | |
| | | /** |
| | | The userInfo key for the invalid argument name for errors with FBSDKErrorInvalidArgument. |
| | | */ |
| | | /// The userInfo key for the invalid argument name for errors with FBSDKErrorInvalidArgument. |
| | | FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentNameKey |
| | | NS_SWIFT_NAME(ErrorArgumentNameKey); |
| | | |
| | | /** |
| | | The userInfo key for the invalid argument value for errors with FBSDKErrorInvalidArgument. |
| | | */ |
| | | /// The userInfo key for the invalid argument value for errors with FBSDKErrorInvalidArgument. |
| | | FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentValueKey |
| | | NS_SWIFT_NAME(ErrorArgumentValueKey); |
| | | |
| | |
| | | FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorDeveloperMessageKey |
| | | NS_SWIFT_NAME(ErrorDeveloperMessageKey); |
| | | |
| | | /** |
| | | The userInfo key describing a localized description that can be presented to the user. |
| | | */ |
| | | /// The userInfo key describing a localized description that can be presented to the user. |
| | | FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedDescriptionKey |
| | | NS_SWIFT_NAME(ErrorLocalizedDescriptionKey); |
| | | |
| | | /** |
| | | The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. |
| | | */ |
| | | /// The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. |
| | | FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedTitleKey |
| | | NS_SWIFT_NAME(ErrorLocalizedTitleKey); |
| | | |
| | |
| | | @methodgroup Common Code Block typedefs |
| | | */ |
| | | |
| | | /** |
| | | Success Block |
| | | */ |
| | | /// Success Block |
| | | typedef void (^ FBSDKCodeBlock)(void) |
| | | NS_SWIFT_NAME(CodeBlock); |
| | | |
| | | /** |
| | | Error Block |
| | | */ |
| | | /// Error Block |
| | | typedef void (^ FBSDKErrorBlock)(NSError *_Nullable error) |
| | | NS_SWIFT_NAME(ErrorBlock); |
| | | |
| | | /** |
| | | Success Block |
| | | */ |
| | | /// Success Block |
| | | typedef void (^ FBSDKSuccessBlock)(BOOL success, NSError *_Nullable error) |
| | | NS_SWIFT_NAME(SuccessBlock); |
| | | |
| | |
| | | */ |
| | | typedef NS_ERROR_ENUM (FBSDKErrorDomain, FBSDKCoreError) |
| | | { |
| | | /** |
| | | Reserved. |
| | | */ |
| | | /// Reserved. |
| | | FBSDKErrorReserved = 0, |
| | | |
| | | /** |
| | | The error code for errors from invalid encryption on incoming encryption URLs. |
| | | */ |
| | | /// The error code for errors from invalid encryption on incoming encryption URLs. |
| | | FBSDKErrorEncryption, |
| | | |
| | | /** |
| | | The error code for errors from invalid arguments to SDK methods. |
| | | */ |
| | | /// The error code for errors from invalid arguments to SDK methods. |
| | | FBSDKErrorInvalidArgument, |
| | | |
| | | /** |
| | | The error code for unknown errors. |
| | | */ |
| | | /// The error code for unknown errors. |
| | | FBSDKErrorUnknown, |
| | | |
| | | /** |
| | |
| | | */ |
| | | FBSDKErrorNetwork, |
| | | |
| | | /** |
| | | The error code for errors encountered during an App Events flush. |
| | | */ |
| | | /// The error code for errors encountered during an App Events flush. |
| | | FBSDKErrorAppEventsFlush, |
| | | |
| | | /** |
| | |
| | | */ |
| | | FBSDKErrorDialogUnavailable, |
| | | |
| | | /** |
| | | Indicates an operation failed because a required access token was not found. |
| | | */ |
| | | /// Indicates an operation failed because a required access token was not found. |
| | | FBSDKErrorAccessTokenRequired, |
| | | |
| | | /** |
| | | Indicates an app switch (typically for a dialog) failed because the destination app is out of date. |
| | | */ |
| | | /// Indicates an app switch (typically for a dialog) failed because the destination app is out of date. |
| | | FBSDKErrorAppVersionUnsupported, |
| | | |
| | | /** |
| | | Indicates an app switch to the browser (typically for a dialog) failed. |
| | | */ |
| | | /// Indicates an app switch to the browser (typically for a dialog) failed. |
| | | FBSDKErrorBrowserUnavailable, |
| | | |
| | | /** |
| | | Indicates that a bridge api interaction was interrupted. |
| | | */ |
| | | /// Indicates that a bridge api interaction was interrupted. |
| | | FBSDKErrorBridgeAPIInterruption, |
| | | |
| | | /** |
| | | Indicates that a bridge api response creation failed. |
| | | */ |
| | | /// Indicates that a bridge api response creation failed. |
| | | FBSDKErrorBridgeAPIResponse, |
| | | } NS_SWIFT_NAME(CoreError); |
| | | |
| | |
| | | Describes the category of Facebook error. See `FBSDKGraphRequestErrorKey`. |
| | | */ |
| | | typedef NS_ENUM(NSUInteger, FBSDKGraphRequestError) { |
| | | /** The default error category that is not known to be recoverable. Check `FBSDKLocalizedErrorDescriptionKey` for a user facing message. */ |
| | | /// The default error category that is not known to be recoverable. Check `FBSDKLocalizedErrorDescriptionKey` for a user facing message. |
| | | FBSDKGraphRequestErrorOther = 0, |
| | | /** Indicates the error is temporary (such as server throttling). While a recoveryAttempter will be provided with the error instance, the attempt is guaranteed to succeed so you can simply retry the operation if you do not want to present an alert. */ |
| | | /// Indicates the error is temporary (such as server throttling). While a recoveryAttempter will be provided with the error instance, the attempt is guaranteed to succeed so you can simply retry the operation if you do not want to present an alert. |
| | | FBSDKGraphRequestErrorTransient = 1, |
| | | /** Indicates the error can be recovered (such as requiring a login). A recoveryAttempter will be provided with the error instance that can take UI action. */ |
| | | /// Indicates the error can be recovered (such as requiring a login). A recoveryAttempter will be provided with the error instance that can take UI action. |
| | | FBSDKGraphRequestErrorRecoverable = 2, |
| | | } NS_SWIFT_NAME(GraphRequestError); |
| | | |
| | | /** |
| | | Internal value exposed to facilitate transition to Swift. |
| | | API Subject to change or removal without warning. Do not use. |
| | | |
| | | @warning INTERNAL - DO NOT USE |
| | | */ |
| | | FOUNDATION_EXPORT NSString *const DefaultKeychainServicePrefix; |
| | | |
| | | NS_ASSUME_NONNULL_END |