public static void GotoSettingGPS(string r_str) { if (IsAndroid) { if (IsAndroid) { Android.ToDevelopUtils(new AlertDialogJson() { type = (int)AlertDialogType.GPS, message = r_str, }); } } }
/// <summary> /// 提示打开摄像头拍照并返回图片路径 /// </summary> /// <param name="r_Message"> 开启摄像头提示框的文字 </param> public static void GetTakePhotos(Action <Texture> action, string r_title = null, string r_Message = null) { if (IsAndroid) { ToImage = action; Android.ToDevelopUtils(new AlertDialogJson() { type = (int)AlertDialogType.CAMERA, gameName = nameof(MobilePlatform), funcName = nameof(SelectImage), message = r_Message, }); } }
public static void OpenHttpUri(string r_Uri) { if (string.IsNullOrEmpty(r_Uri)) { DeBug.LogRed("注意:输入网址为空"); } else { if (IsAndroid) { Android.ToDevelopUtils(new AlertDialogJson() { type = (int)AlertDialogType.GPS, message = r_Uri, extend = r_Uri, }); } else { } } }