getMediaAccessStatus
abstract fun getMediaAccessStatus(mediaType: SystemPreferencesGetMediaAccessStatusMediaType): SystemPreferencesGetMediaAccessStatusResult(source)
Can be not-determined
, granted
, denied
, restricted
or unknown
.
This user consent was not required on macOS 10.13 High Sierra so this method will always return granted
. macOS 10.14 Mojave or higher requires consent for microphone
and camera
access. macOS 10.15 Catalina or higher requires consent for screen
access.
Windows 10 has a global setting controlling microphone
and camera
access for all win32 applications. It will always return granted
for screen
and for all media types on older versions of Windows.