using System; using System.Collections; namespace cn.sharesdk.unity3d { public abstract class ShareSDKRestoreSceneImpl { public virtual void setRestoreSceneListener() {} } public abstract class ShareSDKImpl { /// /// Init the ShareSDK. /// public abstract void InitSDK(string appKey); public abstract void InitSDK(string appKey, string secret); /// /// add listener for loopshare /// public abstract void PrepareLoopShare(); /// /// set channel Id /// public abstract void setChannelId(); /// /// Sets the platform config. /// public abstract void SetPlatformConfig(Hashtable configs); /// /// Authorize the specified platform. /// public abstract void Authorize(int reqId, PlatformType platform); /// /// Removes the account of the specified platform. /// public abstract void CancelAuthorize(PlatformType platform); /// /// Determine weather the account of the specified platform is valid. /// public abstract bool IsAuthorized(PlatformType platform); /// /// Determine weather the APP-Client of platform is valid. /// public abstract bool IsClientValid(PlatformType platform); /// /// Request the user info of the specified platform. /// public abstract void GetUserInfo(int reqId, PlatformType platform); /// /// Share the content to the specified platform with api. /// public abstract void ShareContent(int reqId, PlatformType platform, ShareContent content); /// /// Share the content to the specified platform with api. /// public abstract void ShareContent(int reqId, PlatformType[] platforms, ShareContent content); /// /// Show the platform list to share. /// public abstract void ShowPlatformList(int reqId, PlatformType[] platforms, ShareContent content, int x, int y); /// /// OGUI share to the specified platform. /// public abstract void ShowShareContentEditor(int reqId, PlatformType platform, ShareContent content); /// /// share according to the name of node in ShareContent.xml(in ShareSDKConfigFile.bunle,you can find it in xcode - ShareSDK folider) [only valid in iOS temporarily)] /// public abstract void ShareWithContentName(int reqId, PlatformType platform, string contentName, Hashtable customFields); /// /// show share platform list according to the name of node in ShareContent.xml file(in ShareSDKConfigFile.bunle,you can find it in xcode - ShareSDK folider) [only valid in iOS temporarily)] /// public abstract void ShowPlatformListWithContentName(int reqId, string contentName, Hashtable customFields, PlatformType[] platforms, int x, int y); /// /// show share content editor according to the name of node in ShareContent.xml file(in ShareSDKConfigFile.bunle,you can find it in xcode - ShareSDK folider) [only valid in iOS temporarily)] /// public abstract void ShowShareContentEditorWithContentName(int reqId, PlatformType platform, string contentName, Hashtable customFields); /// /// Gets the friend list. /// public abstract void GetFriendList(int reqID, PlatformType platform, int count, int page); /// /// Follows the friend. /// public abstract void AddFriend(int reqID, PlatformType platform, string account); /// /// Gets the auth info. /// public abstract Hashtable GetAuthInfo(PlatformType platform); /// /// the setting of SSO /// public abstract void DisableSSO(bool disable); /// /// Open Wechat miniProgram /// public abstract bool openMiniProgram(string userName, string path, int miniProgramType); public abstract void getWXRequestToken(); public abstract void getWXRefreshToken(); public abstract void sendWXRefreshToken(string token); public abstract void sendWXRequestToken(string uid, string token); #if UNITY_ANDROID public abstract void isClientValidForAndroid(int reqID,PlatformType platform); #endif #if UNITY_IPHONE || UNITY_IOS /// /// 获取MobSDK隐私协议内容, url为true时返回MobTech隐私协议链接,false返回协议的内容 /// public abstract void shareSDKWithCommand(Hashtable content); /// /// Share the content to the specified platform with api. /// public abstract void ShareContentWithActivity(int reqID, PlatformType platform, ShareContent content); #endif #if UNITY_ANDROID /// /// 获取MobSDK隐私协议内容, url为true时返回MobTech隐私协议链接,false返回协议的内容 /// public abstract void setDisappearShareToast(bool url); #endif } }