12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- //
- // GMSDK.h
- // TestFramework
- //
- // Created by Mgs on 2020/11/11.
- //
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- #import "GMAdManager.h"
- #import "GMBannerManager.h"
- #import "GMIntersManager.h"
- #import "GMNativeManager.h"
- #import "GMSplashManager.h"
- #import "GMRewardVideoManager.h"
- NS_ASSUME_NONNULL_BEGIN
- static UIApplication * mApplication;
- @interface GMSDK : NSObject
- /// 生命周期启动入口
- /// @param application application对象
- +(void)applicationDidFinishLaunching:(UIApplication *)application;
- /// 游戏进入后台
- +(void)applicationDidEnterBackground;
- /// 游戏进入到前台
- +(void)applicationWillEnterForeground;
- /// 游戏开始活跃运行
- +(void)applicationDidBecomeActive;
- /// 获取某一个广告位广告是否可用
- /// @param adName 广告位名称
- +(BOOL)isAdReady:(NSString *)adName;
- /// 打开一个广告
- /// @param adName 广告位名称
- +(void)openAd:(NSString *)adName;
- /// 打开一个广告 带着播放结果回调
- +(void)openAd:(NSString *)adName callback:(void(^)(BOOL))callback;
- /// 打开一个原生广告
- /// @param adName 打开广告名称
- /// @param top 离屏幕上边的距离
- /// @param left 离屏幕左边的距离
- /// @param bottom 离屏幕下边的距离
- /// @param right 离屏幕右边的距离
- +(void)openNativeAd:(NSString *)adName Top:(NSString *)top left:(NSString *)left bottom:(NSString *)bottom right:(NSString *)right;
- /// 关闭广告
- /// @param adName 广告位名称
- +(void)closeAd:(NSString *)adName;
- /// 统计事件1
- /// @param eventName 事件名称
- +(void)tjEvent:(NSString *)eventName;
- /// 统计事件2
- /// @param eventName 事件名称
- /// @param value 事件对应值
- +(void)tjEvent:(NSString *)eventName value:(NSString *)value;
- /// 打开更多游戏
- +(void)openMoreGame;
- /// 打开用户评价
- +(void)openAppraise;
- /// 打开分享
- +(void)shareApp;
- /// 获取苹果ID
- +(NSString *)getAppleId;
- /// 获取项目ID
- +(NSString *)getProjectId;
- /// 获取Application
- +(UIApplication *)getApplication;
- @end
- NS_ASSUME_NONNULL_END
|