iOS SDK Version

FBSDKErrorRecoveryAttempting

@protocolFBSDKErrorRecoveryAttempting<NSObject>
a formal protocol very similar to the informal protocol NSErrorRecoveryAttempting
  • attempt the recovery
    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.

    Declaration

    Objective-C
    -(void)attemptRecoveryFromError:(nonnullNSError*)erroroptionIndex:(NSUInteger)recoveryOptionIndexdelegate:(nullableid)delegatedidRecoverSelector:(nonnullSEL)didRecoverSelectorcontextInfo:(nullablevoid*)contextInfo;

    Parameters

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