public override void OpenWebView(string url, Rect viewRect, Action <bool> completeCallback) { this.openWebViewCallback = completeCallback; string url2 = Util.AppendTimestampForUri(url); PlatformUtilIOS.openWebView(url2, (int)viewRect.xMin, (int)viewRect.yMin, (int)viewRect.width, (int)viewRect.height); }
public override void Pay(string jsonPayData) { if (base.NeedCallSDK()) { PlatformUtilIOS.pay(jsonPayData); } }
public override void SubmitRoleData(string jsonRoleData) { if (base.NeedCallSDK()) { PlatformUtilIOS.submitRoleData(jsonRoleData); } }
public override string GetChannelId() { if (string.IsNullOrEmpty(this.channelCode)) { this.channelCode = PlatformUtilIOS.getChannelId(); } return(this.channelCode); }
public override string GetUUID() { if (string.IsNullOrEmpty(this.deviceUUID)) { return(PlatformUtilIOS.getUUID()); } return(this.deviceUUID); }
public override void RegisterBatteryReceiver(LuaFunction luaFunc) { if (this.batteryLuaFunction != null) { this.batteryLuaFunction.Dispose(); this.batteryLuaFunction = null; } this.batteryLuaFunction = luaFunc; PlatformUtilIOS.registerBatteryReceiver(); }
public override void SwitchAccount(LuaFunction luaFunc) { this.switchAccountLuaFunction = luaFunc; if (base.NeedCallSDK()) { PlatformUtilIOS.switchAccount(); } else { base.SendSwitchAccountResult(); } }
public override void Login(string customParam, LuaFunction luaFunc) { this.loginLuaFunction = luaFunc; if (base.NeedCallSDK()) { LuaHelper.GetDeviceDrainModel().RecordCallSDKLogin(); PlatformUtilIOS.login(); } else { base.SendLoginResult(null); } }
public override string GetAvailableInternalBlockSize() { return(PlatformUtilIOS.getAvailableInternalBlockSize()); }
public override void CloseWebView() { PlatformUtilIOS.closeWebView(); }
public override bool IsNetworkConnected(bool isShowTips) { return(PlatformUtilIOS.isNetworkConnected(isShowTips)); }
public override void ShowDeviceTips(string title, string content, Action <bool> completeCallback) { this.clickDeviceTipsCallback = completeCallback; PlatformUtilIOS.showIOSTips(content); }
public override void CallSdkEvent(string jsonData) { PlatformUtilIOS.callSdkEvent(jsonData); }
public override bool HasChannelCenter() { return(PlatformUtilIOS.hasChannelCenter()); }
public override string GetTotalInternalBlockSize() { return(PlatformUtilIOS.getTotalInternalBlockSize()); }
public override void StopAudio() { PlatformUtilIOS.stopAudio(); }
public override void PlayAudio(string audioFile) { PlatformUtilIOS.playAudio(audioFile); }
public override void FinishRecording() { PlatformUtilIOS.finishRecording(); }
public override void StartRecording(Action <string> completeCallback) { this.pickAudioCallback = completeCallback; PlatformUtilIOS.startRecording(); }
public override void OpenCamera(Action <string> completeCallback) { this.pickPhotoCallback = completeCallback; PlatformUtilIOS.openCamera(); }
public override void ExtractFile(string zipFilePath, string location, Action <string> completeCallback) { this.unzipFileCallback = completeCallback; PlatformUtilIOS.extractFile(zipFilePath, location); }
public override string GetSessionId(bool reGenerate) { return(PlatformUtilIOS.getSessionId(reGenerate)); }
public override string GetDeviceTotalMemorySize() { return(PlatformUtilIOS.getDeviceTotalMemorySize()); }
public override void GetAudioDuration(string audioFile, Action <int> completeCallback) { this.getAudioDurationCallback = completeCallback; PlatformUtilIOS.getAudioDuration(audioFile); }
public override string GetDeviceAvailableMemorySize() { return(PlatformUtilIOS.getDeviceAvailableMemorySize()); }
public override void InitXGPush() { PlatformUtilIOS.initXGPush(); }
public override void OpenChannelCenter() { PlatformUtilIOS.openChannelCenter(); }
public override string GetXGPushToken() { return(PlatformUtilIOS.getPushToken()); }
public override void TranslateAudio(string audioFile, Action <string> completeCallback) { this.translateAudioCallback = completeCallback; PlatformUtilIOS.translateAudio(audioFile); }
public override void UpdateFullPackage(string pkgUrl) { PlatformUtilIOS.updateFullPackage(pkgUrl); }