To run the example project, clone the repo, and run pod install
from the Example directory first.
FlutterGamesKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'FlutterGamesKit'
罗小黑不吹, dosear@qq.com, http://www.dosear.cn
Flutter插件编写,支持iOS 和 Android,该工程是iOS参考demo
主要功能:
// 头文件导入
#import <FlutterGamesKit/FlutterGamesKit-umbrella.h>
/// AppDelegate方法
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[FKSDK sdkApplication:application didFinishLaunchingWithOptions:launchOptions];
return YES;
}
/// 初始化
+ (void)sdkInitWithParams:(NSDictionary *)params result:(Result)result;
/// 登录
+ (void)sdkLoginWithAuto:(BOOL)flag result:(Result)result;
/// 上传角色
+ (void)sdkSubmitRoleWithParams:(NSDictionary *)params result:(Result)result;
/// 支付
+ (void)sdkPsyWithParams:(NSDictionary *)params result:(Result)result;
/// 登出
+ (void)sdkLogoutWithResult:(Result)result;
/// 分享
+ (void)sdkShareWithTitle:(NSString *)title image:(NSString *)image url:(NSString *)url result:(Result)result;
/// 打开链接
+ (void)sdkOpenUrlWithUrl:(NSString *)url;
/// 绑定手机号
+ (void)sdkBindPhone;
/// 检查网络
+ (void)sdkCheckNetBlock:(AFNetBlock)block;
FlutterGamesKit is available under the MIT license. See the LICENSE file for more info.