Versione iOS dell'SDK

FBSDKSharingDelegate

@protocolFBSDKSharingDelegate
A delegate for FBSDKSharing.
The delegate is notified with the results of the sharer as long as the application has permissions to receive the information. For example, if the person is not signed into the containing app, the sharer may not be able to distinguish between completion of a share and cancellation.
  • Sent to the delegate when the share completes without error or cancellation.

    Declaration

    Objective-C
    -(void)sharer:(nonnullid<FBSDKSharing>)sharerdidCompleteWithResults:(nonnullNSDictionary<NSString*,id>*)results;
    Swift
    funcsharer(_sharer:Sharing,didCompleteWithResultsresults:[String:Any])

    Parameters

  • Sent to the delegate when the sharer encounters an error.

    Declaration

    Objective-C
    -(void)sharer:(nonnullid<FBSDKSharing>)sharerdidFailWithError:(nonnullNSError*)error;
    Swift
    funcsharer(_sharer:Sharing,didFailWithErrorerror:Error)

    Parameters

  • Sent to the delegate when the sharer is cancelled.

    Declaration

    Objective-C
    -(void)sharerDidCancel:(nonnullid<FBSDKSharing>)sharer;
    Swift
    funcsharerDidCancel(_sharer:Sharing)

    Parameters