Esempio n. 1
0
 public static void GotoSettingGPS(string r_str)
 {
     if (IsAndroid)
     {
         if (IsAndroid)
         {
             Android.ToDevelopUtils(new AlertDialogJson()
             {
                 type    = (int)AlertDialogType.GPS,
                 message = r_str,
             });
         }
     }
 }
Esempio n. 2
0
 /// <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,
         });
     }
 }
Esempio n. 3
0
 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
         {
         }
     }
 }