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 }
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 }
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 }