| | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | @class FBSDKGraphErrorRecoveryProcessor; |
| | | @class FBSDKGraphRequest; |
| | | @protocol FBSDKGraphRequest; |
| | | |
| | | /** |
| | | Defines a delegate for `FBSDKGraphErrorRecoveryProcessor`. |
| | |
| | | @interface FBSDKGraphErrorRecoveryProcessor : NSObject |
| | | |
| | | /** |
| | | Gets the delegate. Note this is a strong reference, and is nil'ed out after recovery is complete. |
| | | Gets the delegate for the current error being processed. |
| | | */ |
| | | @property (nonatomic, strong, readonly, nullable) id<FBSDKGraphErrorRecoveryProcessorDelegate>delegate; |
| | | @property (nonatomic, weak, readonly, nullable) id<FBSDKGraphErrorRecoveryProcessorDelegate>delegate |
| | | DEPRECATED_MSG_ATTRIBUTE("FBSDKGraphErrorRecoveryProcessor's delegate will be removed in the next major version release."); |
| | | |
| | | /** |
| | | Attempts to process the error, return YES if the error can be processed. |
| | |
| | | @param delegate the delegate that will be retained until recovery is complete. |
| | | */ |
| | | - (BOOL)processError:(NSError *)error |
| | | request:(FBSDKGraphRequest *)request |
| | | request:(id<FBSDKGraphRequest>)request |
| | | delegate:(nullable id<FBSDKGraphErrorRecoveryProcessorDelegate>)delegate; |
| | | |
| | | /** |
| | |
| | | @param didRecover if the recovery succeeded |
| | | @param contextInfo unused |
| | | */ |
| | | - (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(nullable void *)contextInfo; |
| | | - (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(nullable void *)contextInfo |
| | | DEPRECATED_MSG_ATTRIBUTE("didPresentErrorWithRecovery:contextInfo: will be removed in the next major version release."); |
| | | |
| | | @end |
| | | |