From f082c62bb40cad3ee93abd5432777ac0905eb374 Mon Sep 17 00:00:00 2001 From: lipengwei <lipengwei@nianben.com> Date: Fri, 27 Sep 2019 11:16:00 +0800 Subject: [PATCH] 3.8.3 --- frameworks/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h | 27 ++++++++++++++++++++++----- 1 files changed, 22 insertions(+), 5 deletions(-) diff --git a/frameworks/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h b/frameworks/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h index 8498590..c801344 100644 --- a/frameworks/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h +++ b/frameworks/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h @@ -22,20 +22,35 @@ #import <FBSDKShareKit/FBSDKSharing.h> #import <FBSDKShareKit/FBSDKSharingContent.h> +NS_ASSUME_NONNULL_BEGIN + /** A dialog for sharing content on Facebook. */ +NS_SWIFT_NAME(ShareDialog) @interface FBSDKShareDialog : NSObject <FBSDKSharingDialog> /** - Convenience method to show an FBSDKShareDialog with a fromViewController, content and a delegate. - - Parameter viewController: A UIViewController to present the dialog from, if appropriate. - - Parameter content: The content to be shared. - - Parameter delegate: The receiver's delegate. + Convenience method to create a FBSDKShareDialog with a fromViewController, content and a delegate. + @param viewController A UIViewController to present the dialog from, if appropriate. + @param content The content to be shared. + @param delegate The receiver's delegate. + */ ++ (instancetype)dialogWithViewController:(nullable UIViewController *)viewController + withContent:(id<FBSDKSharingContent>)content + delegate:(nullable id<FBSDKSharingDelegate>)delegate +NS_SWIFT_NAME(init(fromViewController:content:delegate:)); + +/** + Convenience method to show an FBSDKShareDialog with a fromViewController, content and a delegate. + @param viewController A UIViewController to present the dialog from, if appropriate. + @param content The content to be shared. + @param delegate The receiver's delegate. */ + (instancetype)showFromViewController:(UIViewController *)viewController withContent:(id<FBSDKSharingContent>)content - delegate:(id<FBSDKSharingDelegate>)delegate; + delegate:(nullable id<FBSDKSharingDelegate>)delegate +NS_SWIFT_UNAVAILABLE("Use init(fromViewController:content:delegate:).show() instead"); /** A UIViewController to present the dialog from. @@ -52,3 +67,5 @@ @property (nonatomic, assign) FBSDKShareDialogMode mode; @end + +NS_ASSUME_NONNULL_END -- Gitblit v1.8.0