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