You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
2.3 KiB

//
// MobSDK.h
// MOBFoundation
//
// Created by liyc on 17/2/23.
// Copyright © 2017年 MOB. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MOBSDKDef.h"
/**
MobSDK
*/
@interface MobSDK : NSObject
/**
@return
*/
+ (NSString * _Nonnull)version;
/**
@return
*/
+ (NSString * _Nullable)appKey;
/**
@return
*/
+ (NSString * _Nullable)appSecret;
/**
@return
*/
+ (NSString *_Nullable)getInternationalDomain;
/**
@param domainType
*/
+ (void)setInternationalDomain:(MOBFSDKDomainType)domainType;
/**
@param appSecret
*/
+ (void)changeAppSecret:(NSString * _Nonnull)appSecret;
/**
appKeyappSecret
@param appKey appKey
@param appSecret appSecret
*/
+ (void)registerAppKey:(NSString * _Nonnull)appKey
appSecret:(NSString * _Nonnull)appSecret;
#pragma mark - User
/**
@param uid IDMD5userIDIDnil表示注销用户
@param nickname
@param avatar
@param userData
*/
+ (void)setUserWithUid:(NSString * _Nullable)uid
nickName:(NSString * _Nullable)nickname
avatar:(NSString * _Nullable)avatar
userData:(NSDictionary * _Nullable)userData;
/**
@param uid IDMD5userIDIDnil表示注销用户
@param nickname
@param avatar
@param userData
*/
+ (void)setUserWithUid:(NSString * _Nullable)uid
nickName:(NSString * _Nullable)nickname
avatar:(NSString * _Nullable)avatar
sign:(NSString * _Nullable)sign
userData:(NSDictionary * _Nullable)userData;
/**
*/
+ (void)clearUser;
@end