1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- //
- // UnitlsManager.h
- // AdMopubSDK
- //
- // Created by 蒋龙 on 2020/5/28.
- // Copyright © 2020 com.YouLoft.CQ. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- static NSString *key_states = @"state";
- static NSString *key_msg = @"msg";
- @protocol UnitlsManagerDelegate <NSObject>
- @optional
- -(void)webviewDidOpen;
- -(void)webviewDidClose;
- -(void)facebookShareComplete:(NSDictionary *)dic;
- -(void)facebookShareUploadComplete:(NSDictionary *)dic;
- -(void)facebookPlayerFinderComplete:(NSDictionary *)dic;
- -(void)showViewComplete:(NSDictionary *)dic;
- @end
- @interface UnitlsManager : NSObject
- /// 回调协议
- @property (nonatomic, weak) id<UnitlsManagerDelegate> delegate;
- + (instancetype)shareM;
- /// 加载推荐游戏列表网页
- -(void)loadShareWebViewVC;
- /// 加载论坛展示方法
- -(void)loadForumWebViewVCWithGameId:(NSString *)gameId userId:(NSString *)userId email:(nullable NSString*)email;
- /// 弹出反馈页面-非实时,需要刷新才能看见回复
- -(void)loadFeedbackViewControllerWithData:(NSString *)dataStr;
- /// 加载一个网页页面
- /// @param urlStr 网页链接
- -(void)showOneWebViewWithUrlStr:(NSString *)urlStr;
- /// 跳转到App Store中撰写评论和评分
- /// @param appID 苹果应用ID
- -(void)gotoAppStoreWriteReviewWithAppId:(NSString *)appID;
- /// 显示系统自带的应用内评分视图
- -(void)showSysReview;
- /// 跳转到FB中关注的组
- -(void)gotoFacebookFollowGroup;
- /// 分享链接到Facebook
- /// @param url 链接地址
- -(void)shareToFacebookWithUrl:(NSString *)url;
- /// 分享到Facebook
- /// @param url 链接地址
- /// @param imgPath 图片地址
- -(void)shareToFacebookWithUrl:(NSString *)url imagePath:(NSString *)imgPath;
- /// 分享图片到Facebook
- /// @param url 链接地址
- /// @param img 图片
- -(void)shareToFacebookWithUrl:(NSString *)url image:(UIImage *)img;
- /// 分享相册中的图片至FacebookGaming中
- /// @param imgPath 图片地址
- /// @param caption 标题
- -(void)shareImageToFacebookGamingWithImagePath:(NSString *)imgPath caption:(NSString *)caption;
- /// 分享相册中的视频至FacebookGaming中
- /// @param videoPath 视频地址
- /// @param caption 标题-会展示在旁边
- -(void)shareVideoToFacebookGamingWithVideoPath:(NSString *)videoPath caption:(NSString *)caption;
- /// 加载Facebook Player Finder提示框
- -(void)launchFacebookPlayerFinderDialog;
- @end
- NS_ASSUME_NONNULL_END
|