BGUMengShareManager.h 800 B

123456789101112131415161718192021222324252627
  1. //
  2. // BGUMengShareManager.h
  3. // BuguLive
  4. //
  5. // Created by xfg on 2017/3/13.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UShareUI/UShareUI.h>
  10. #import "ShareModel.h"
  11. #import "BogoSingleton.h"
  12. typedef void (^FWUMengSuccBlock)(UMSocialShareResponse *response);
  13. @interface BGUMengShareManager : BGBaseViewModel
  14. // 单例模式
  15. BogoSingletonH(Instance);
  16. // 弹出分享面板
  17. - (void)showShareViewInControllr:(UIViewController *)vc shareModel:(ShareModel *)shareModel succ:(FWUMengSuccBlock)succ failed:(FWErrorBlock)failed;
  18. // 根据分享类型进行分享
  19. - (void)shareTo:(UIViewController *)vc platformType:(UMSocialPlatformType)platformType shareModel:(ShareModel *)shareModel succ:(FWUMengSuccBlock)succ failed:(FWErrorBlock)failed;
  20. @end