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