Esempio n. 1
0
    public static bool HasCameraPermission()
    {
#if UNITY_IOS
        return(IOSUtil.HasPermission((int)IOSUtil.PermissionType.PermissionCamera));
#elif UNITY_ANDROID
        return(AndroidUtil.HasPermission(AndroidUtil.CODE_CAMERA));
#else
        return(true);
#endif
    }
Esempio n. 2
0
    public static bool HasPhotoPermission()
    {
#if UNITY_IOS
        return(IOSUtil.HasPermission((int)IOSUtil.PermissionType.PermissionPhotoLibrary));
#elif UNITY_ANDROID
        return(AndroidUtil.HasPermission(AndroidUtil.CODE_WRITE_EXTERNAL_STORAGE));
#else
        return(true);
#endif
    }
Esempio n. 3
0
    public static bool HasRecordAudioPermission()
    {
#if UNITY_IOS
        return(IOSUtil.HasPermission((int)IOSUtil.PermissionType.PermissionMicrophone));
#elif UNITY_ANDROID
        return(AndroidUtil.HasPermission(AndroidUtil.CODE_RECORD_AUDIO));
#else
        return(true);
#endif
    }