Conforms to NSObject
Declared in FBSDKConstants.h

Overview

a formal protocol very similar to the informal protocol NSErrorRecoveryAttempting

Instance Methods

attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:

attempt the recovery - Parameter error: the error - Parameter recoveryOptionIndex: the selected option index - Parameter delegate: the delegate - Parameter didRecoverSelector: the callback selector, see discussion. - Parameter contextInfo: context info to pass back to callback selector, see discussion.

- (void)attemptRecoveryFromError:(NSError *)error optionIndex:(NSUInteger)recoveryOptionIndex delegate:(id)delegate didRecoverSelector:(SEL)didRecoverSelector contextInfo:(void *)contextInfo

Discussion

Given that an error alert has been presented document-modally to the user, and the user has chosen one of the error’s recovery options, attempt recovery from the error, and send the selected message to the specified delegate. The option index is an index into the error’s array of localized recovery options. The method selected by didRecoverSelector must have the same signature as:

  • (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(void *)contextInfo;

The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise.

Declared In

FBSDKConstants.h