public static void ShowAnnouncement(LuaFunction callback = null) { LT_URL_NOTIFICATION_DELEGATE fnUrl = null; if (callback != null) { fnUrl = (url) => { callback.Call(url); callback.Release(); }; } LT_Instance.ShowAnnouncement(fnUrl); }
public static void ShowInAppWeb(string url, LuaFunction callback = null) { LT_URL_NOTIFICATION_DELEGATE fnUrl = null; if (callback != null) { fnUrl = (deepLinkUrl) => { callback.Call(deepLinkUrl); callback.Release(); }; } LT_Instance.ShowInAppWeb(url, fnUrl); }
public static void Unregister(LuaFunction callback = null) { LT_RESULT_NOTIFICATION_DELEGATE fnResult = null; if (callback != null) { fnResult = (isSuccessful) => { callback.Call(isSuccessful); callback.Release(); }; } LT_Instance.Unregister(fnResult); }
public static void EnablePush(bool enable, int type, LuaFunction callback = null) { LT_RESULT_NOTIFICATION_DELEGATE fnResult = null; if (callback != null) { fnResult = (isSuccessful) => { callback.Call(isSuccessful); callback.Release(); }; } LT_Instance.EnablePush(enable, type, fnResult); }
public static void OnApplicationStateChange(bool pauseStatus) { if (!IsUsePlatform) { return; } if (pauseStatus) { LT_Instance.Pause(); } else { LT_Instance.Resume(); } }
public static void UploadRoleInfo(int sendType, int playerId, string roleName, int roleLevel, int vipLevel, int serverId, string serverName, string laborUnion, double roleCreateTime, double roleLevelMTime) { var roleInfo = new ROLE_INFO(sendType, playerId, roleName, roleLevel, vipLevel, serverId, serverName, laborUnion, roleCreateTime, roleLevelMTime); LT_Instance.UploadRoleInfo(roleInfo); }
public static string GetLoginJson() { return(LT_Instance.GetLoginJson()); }
public static void SetGoogleAchievementCompletionLevel(string id, int level) { LT_Instance.SetGoogleAchievementCompletionLevel(id, level); }
public static void CompleteGoogleAchievement(string id) { LT_Instance.CompleteGoogleAchievement(id); }
public static void ShowGoogleAchievementView() { LT_Instance.ShowGoogleAchievementView(); }
public static void CheckLoginStatus() { LT_Instance.CheckLoginStatus(); }
public static bool IsPlatformExitGame() { return(LT_Instance.IsPlatformExitGame()); }
public static bool GetPushStatus(int type) { return(LT_Instance.GetPushStatus(type)); }
public static void LogoutDirectly() { LT_Instance.LogoutDirectly(); }
public static void Logout() { LT_Instance.Logout(); }
public static void CheckAutoLogin() { LT_Instance.CheckAutoLogin(); }
public static void SetBreakPoint(int type) { var state = (POINT_STATE)type; LT_Instance.SetBreakPoint(state); }
public static void Login() { LT_Instance.Login(); }
public static void SetBreakPoint(string strPoint) { LT_Instance.SetBreakPoint(strPoint); }
public static void Login(int type) { LT_Instance.Login(type); }
public static void ExitGame() { LT_Instance.Exit(); }
public static PLATFORM_TYPE GetPlatformType() { return(LT_Instance.GetPlatformType()); }