hank
2019-01-22 bf63695cd124ba0c3127f4cc8aa99c737729dd1d
frameworks/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h
@@ -23,13 +23,13 @@
@class FBSDKGraphErrorRecoveryProcessor;
@class FBSDKGraphRequest;
/*!
 @abstract Defines a delegate for `FBSDKGraphErrorRecoveryProcessor`.
/**
  Defines a delegate for `FBSDKGraphErrorRecoveryProcessor`.
 */
@protocol FBSDKGraphErrorRecoveryProcessorDelegate<NSObject>
/*!
 @abstract Indicates the error recovery has been attempted.
/**
  Indicates the error recovery has been attempted.
 @param processor the processor instance.
 @param didRecover YES if the recovery was successful.
 @param error the error that that was attempted to be recovered from.
@@ -37,24 +37,26 @@
- (void)processorDidAttemptRecovery:(FBSDKGraphErrorRecoveryProcessor *)processor didRecover:(BOOL)didRecover error:(NSError *)error;
@optional
/*!
 @abstract Indicates the processor is about to process the error.
/**
  Indicates the processor is about to process the error.
 @param processor the processor instance.
 @param error the error is about to be processed.
 @discussion return NO if the processor should not process the error. For example,
 return NO if the processor should not process the error. For example,
 if you want to prevent alerts of localized messages but otherwise perform retries and recoveries,
 you could return NO for errors where userInfo[FBSDKGraphRequestErrorCategoryKey] equal to FBSDKGraphRequestErrorCategoryOther
 you could return NO for errors where userInfo[FBSDKGraphRequestErrorKey] equal to FBSDKGraphRequestErrorOther
 */
- (BOOL)processorWillProcessError:(FBSDKGraphErrorRecoveryProcessor *)processor error:(NSError *)error;
@end
/*!
 @abstract Defines a type that can process Facebook NSErrors with best practices.
 @discussion Facebook NSErrors can contain FBSDKErrorRecoveryAttempting instances to recover from errors, or
/**
  Defines a type that can process Facebook NSErrors with best practices.
 Facebook NSErrors can contain FBSDKErrorRecoveryAttempting instances to recover from errors, or
 localized messages to present to the user. This class will process the instances as follows:
 1. If the error is temporary as indicated by FBSDKGraphRequestErrorCategoryKey, assume the recovery succeeded and
 1. If the error is temporary as indicated by FBSDKGraphRequestErrorKey, assume the recovery succeeded and
 notify the delegate.
 2. If a FBSDKErrorRecoveryAttempting instance is available, display an alert (dispatched to main thread)
 with the recovery options and call the instance's [ attemptRecoveryFromError:optionIndex:...].
@@ -74,21 +76,21 @@
 */
@interface FBSDKGraphErrorRecoveryProcessor : NSObject
/*!
 @abstract Gets the delegate. Note this is a strong reference, and is nil'ed out after recovery is complete.
/**
  Gets the delegate. Note this is a strong reference, and is nil'ed out after recovery is complete.
 */
@property (nonatomic, strong, readonly) id<FBSDKGraphErrorRecoveryProcessorDelegate>delegate;
/*!
 @abstract Attempts to process the error, return YES if the error can be processed.
/**
  Attempts to process the error, return YES if the error can be processed.
 @param error the error to process.
 @param request the relateed request that may be reissued.
 @param request the related request that may be reissued.
 @param delegate the delegate that will be retained until recovery is complete.
 */
- (BOOL)processError:(NSError *)error request:(FBSDKGraphRequest *)request delegate:(id<FBSDKGraphErrorRecoveryProcessorDelegate>) delegate;
/*!
 @abstract The callback for FBSDKErrorRecoveryAttempting
/**
  The callback for FBSDKErrorRecoveryAttempting
 @param didRecover if the recovery succeeded
 @param contextInfo unused
 */