Exemple #1
0
        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);
        }
Exemple #2
0
 public override void Pay(string jsonPayData)
 {
     if (base.NeedCallSDK())
     {
         PlatformUtilIOS.pay(jsonPayData);
     }
 }
Exemple #3
0
 public override void SubmitRoleData(string jsonRoleData)
 {
     if (base.NeedCallSDK())
     {
         PlatformUtilIOS.submitRoleData(jsonRoleData);
     }
 }
Exemple #4
0
 public override string GetChannelId()
 {
     if (string.IsNullOrEmpty(this.channelCode))
     {
         this.channelCode = PlatformUtilIOS.getChannelId();
     }
     return(this.channelCode);
 }
Exemple #5
0
 public override string GetUUID()
 {
     if (string.IsNullOrEmpty(this.deviceUUID))
     {
         return(PlatformUtilIOS.getUUID());
     }
     return(this.deviceUUID);
 }
Exemple #6
0
 public override void RegisterBatteryReceiver(LuaFunction luaFunc)
 {
     if (this.batteryLuaFunction != null)
     {
         this.batteryLuaFunction.Dispose();
         this.batteryLuaFunction = null;
     }
     this.batteryLuaFunction = luaFunc;
     PlatformUtilIOS.registerBatteryReceiver();
 }
Exemple #7
0
 public override void SwitchAccount(LuaFunction luaFunc)
 {
     this.switchAccountLuaFunction = luaFunc;
     if (base.NeedCallSDK())
     {
         PlatformUtilIOS.switchAccount();
     }
     else
     {
         base.SendSwitchAccountResult();
     }
 }
Exemple #8
0
 public override void Login(string customParam, LuaFunction luaFunc)
 {
     this.loginLuaFunction = luaFunc;
     if (base.NeedCallSDK())
     {
         LuaHelper.GetDeviceDrainModel().RecordCallSDKLogin();
         PlatformUtilIOS.login();
     }
     else
     {
         base.SendLoginResult(null);
     }
 }
Exemple #9
0
 public override string GetAvailableInternalBlockSize()
 {
     return(PlatformUtilIOS.getAvailableInternalBlockSize());
 }
Exemple #10
0
 public override void CloseWebView()
 {
     PlatformUtilIOS.closeWebView();
 }
Exemple #11
0
 public override bool IsNetworkConnected(bool isShowTips)
 {
     return(PlatformUtilIOS.isNetworkConnected(isShowTips));
 }
Exemple #12
0
 public override void ShowDeviceTips(string title, string content, Action <bool> completeCallback)
 {
     this.clickDeviceTipsCallback = completeCallback;
     PlatformUtilIOS.showIOSTips(content);
 }
Exemple #13
0
 public override void CallSdkEvent(string jsonData)
 {
     PlatformUtilIOS.callSdkEvent(jsonData);
 }
Exemple #14
0
 public override bool HasChannelCenter()
 {
     return(PlatformUtilIOS.hasChannelCenter());
 }
Exemple #15
0
 public override string GetTotalInternalBlockSize()
 {
     return(PlatformUtilIOS.getTotalInternalBlockSize());
 }
Exemple #16
0
 public override void StopAudio()
 {
     PlatformUtilIOS.stopAudio();
 }
Exemple #17
0
 public override void PlayAudio(string audioFile)
 {
     PlatformUtilIOS.playAudio(audioFile);
 }
Exemple #18
0
 public override void FinishRecording()
 {
     PlatformUtilIOS.finishRecording();
 }
Exemple #19
0
 public override void StartRecording(Action <string> completeCallback)
 {
     this.pickAudioCallback = completeCallback;
     PlatformUtilIOS.startRecording();
 }
Exemple #20
0
 public override void OpenCamera(Action <string> completeCallback)
 {
     this.pickPhotoCallback = completeCallback;
     PlatformUtilIOS.openCamera();
 }
Exemple #21
0
 public override void ExtractFile(string zipFilePath, string location, Action <string> completeCallback)
 {
     this.unzipFileCallback = completeCallback;
     PlatformUtilIOS.extractFile(zipFilePath, location);
 }
Exemple #22
0
 public override string GetSessionId(bool reGenerate)
 {
     return(PlatformUtilIOS.getSessionId(reGenerate));
 }
Exemple #23
0
 public override string GetDeviceTotalMemorySize()
 {
     return(PlatformUtilIOS.getDeviceTotalMemorySize());
 }
Exemple #24
0
 public override void GetAudioDuration(string audioFile, Action <int> completeCallback)
 {
     this.getAudioDurationCallback = completeCallback;
     PlatformUtilIOS.getAudioDuration(audioFile);
 }
Exemple #25
0
 public override string GetDeviceAvailableMemorySize()
 {
     return(PlatformUtilIOS.getDeviceAvailableMemorySize());
 }
Exemple #26
0
 public override void InitXGPush()
 {
     PlatformUtilIOS.initXGPush();
 }
Exemple #27
0
 public override void OpenChannelCenter()
 {
     PlatformUtilIOS.openChannelCenter();
 }
Exemple #28
0
 public override string GetXGPushToken()
 {
     return(PlatformUtilIOS.getPushToken());
 }
Exemple #29
0
 public override void TranslateAudio(string audioFile, Action <string> completeCallback)
 {
     this.translateAudioCallback = completeCallback;
     PlatformUtilIOS.translateAudio(audioFile);
 }
Exemple #30
0
 public override void UpdateFullPackage(string pkgUrl)
 {
     PlatformUtilIOS.updateFullPackage(pkgUrl);
 }