Beispiel #1
0
    public static void RequestCameraPermission()
    {
#if UNITY_IOS
        IOSUtil.RequestPermission((int)IOSUtil.PermissionType.PermissionCamera);
#elif UNITY_ANDROID
        AndroidUtil.RequestPermission(AndroidUtil.CODE_CAMERA);
#else
#endif
    }
Beispiel #2
0
    public static void RequestPhotoPermission()
    {
#if UNITY_IOS
        IOSUtil.RequestPermission((int)IOSUtil.PermissionType.PermissionPhotoLibrary);
#elif UNITY_ANDROID
        AndroidUtil.RequestPermission(AndroidUtil.CODE_WRITE_EXTERNAL_STORAGE);
#else
#endif
    }
Beispiel #3
0
    public static void RequestRecordAudioPermission()
    {
#if UNITY_IOS
        IOSUtil.RequestPermission((int)IOSUtil.PermissionType.PermissionMicrophone);
#elif UNITY_ANDROID
        AndroidUtil.RequestPermission(AndroidUtil.CODE_RECORD_AUDIO);
#else
#endif
    }