| | |
| | | } |
| | | else |
| | | { |
| | | new Alert("", $"获取Sip账号信息失败.", "确定").Show(); |
| | | //Application.RunOnMainThread(() => |
| | | //{ |
| | | // new Alert("", $"获取Sip账号信息失败.", "确定").Show(); |
| | | //}); |
| | | } |
| | | } |
| | | catch { } |
| | |
| | | /// <summary> |
| | | /// 截图成功 |
| | | /// </summary> |
| | | /// <param name="image"></param> |
| | | //public override void OnScreenshotSuccessfulAction(UIImage image) |
| | | //{ |
| | | ////NSData imageData = UIImagePNGRepresentation(image); UIImage |
| | | //NSData imageData = image.AsPNG(); |
| | | //byte[] dataBytes = new byte[imageData.Length]; |
| | | //System.Runtime.InteropServices.Marshal.Copy(imageData.Bytes, dataBytes, 0, Convert.ToInt32(imageData.Length)); |
| | | ////image.g |
| | | ////hdlLinphone.ScreenshotSuccessfulAction(dataBytes); |
| | | //} |
| | | /// <param name = "image" ></ param > |
| | | public void OnScreenshotSuccessfulAction(UIImage image) |
| | | { |
| | | //NSData imageData = UIImagePNGRepresentation(image); UIImage |
| | | NSData imageData = image.AsPNG(); |
| | | byte[] dataBytes = new byte[imageData.Length]; |
| | | System.Runtime.InteropServices.Marshal.Copy(imageData.Bytes, dataBytes, 0, Convert.ToInt32(imageData.Length)); |
| | | //image.g |
| | | //hdlLinphone.ScreenshotSuccessfulAction(dataBytes); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 开锁成功 |