UnitlsManager.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. //
  2. // UnitlsManager.h
  3. // AdMopubSDK
  4. //
  5. // Created by 蒋龙 on 2020/5/28.
  6. // Copyright © 2020 com.YouLoft.CQ. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. static NSString *key_states = @"state";
  11. static NSString *key_msg = @"msg";
  12. @protocol UnitlsManagerDelegate <NSObject>
  13. @optional
  14. -(void)webviewDidOpen;
  15. -(void)webviewDidClose;
  16. -(void)facebookShareComplete:(NSDictionary *)dic;
  17. -(void)facebookShareUploadComplete:(NSDictionary *)dic;
  18. -(void)facebookPlayerFinderComplete:(NSDictionary *)dic;
  19. -(void)showViewComplete:(NSDictionary *)dic;
  20. @end
  21. @interface UnitlsManager : NSObject
  22. /// 回调协议
  23. @property (nonatomic, weak) id<UnitlsManagerDelegate> delegate;
  24. + (instancetype)shareM;
  25. /// 加载推荐游戏列表网页
  26. -(void)loadShareWebViewVC;
  27. /// 加载论坛展示方法
  28. -(void)loadForumWebViewVCWithGameId:(NSString *)gameId userId:(NSString *)userId email:(nullable NSString*)email;
  29. /// 弹出反馈页面-非实时,需要刷新才能看见回复
  30. -(void)loadFeedbackViewControllerWithData:(NSString *)dataStr;
  31. /// 加载一个网页页面
  32. /// @param urlStr 网页链接
  33. -(void)showOneWebViewWithUrlStr:(NSString *)urlStr;
  34. /// 跳转到App Store中撰写评论和评分
  35. /// @param appID 苹果应用ID
  36. -(void)gotoAppStoreWriteReviewWithAppId:(NSString *)appID;
  37. /// 显示系统自带的应用内评分视图
  38. -(void)showSysReview;
  39. /// 跳转到FB中关注的组
  40. -(void)gotoFacebookFollowGroup;
  41. /// 分享链接到Facebook
  42. /// @param url 链接地址
  43. -(void)shareToFacebookWithUrl:(NSString *)url;
  44. /// 分享到Facebook
  45. /// @param url 链接地址
  46. /// @param imgPath 图片地址
  47. -(void)shareToFacebookWithUrl:(NSString *)url imagePath:(NSString *)imgPath;
  48. /// 分享图片到Facebook
  49. /// @param url 链接地址
  50. /// @param img 图片
  51. -(void)shareToFacebookWithUrl:(NSString *)url image:(UIImage *)img;
  52. /// 分享相册中的图片至FacebookGaming中
  53. /// @param imgPath 图片地址
  54. /// @param caption 标题
  55. -(void)shareImageToFacebookGamingWithImagePath:(NSString *)imgPath caption:(NSString *)caption;
  56. /// 分享相册中的视频至FacebookGaming中
  57. /// @param videoPath 视频地址
  58. /// @param caption 标题-会展示在旁边
  59. -(void)shareVideoToFacebookGamingWithVideoPath:(NSString *)videoPath caption:(NSString *)caption;
  60. /// 加载Facebook Player Finder提示框
  61. -(void)launchFacebookPlayerFinderDialog;
  62. @end
  63. NS_ASSUME_NONNULL_END