packages feed

jsaddle-dom-0.10.0.0: src/JSDOM/Generated/MediaTrackSupportedConstraints.hs

{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from mediacapture-streams (webref). Do not edit.
module JSDOM.Generated.MediaTrackSupportedConstraints
       (newMediaTrackSupportedConstraints, setWidth, getWidth, getWidthUnsafe, getWidthUnchecked, setHeight, getHeight, getHeightUnsafe, getHeightUnchecked, setAspectRatio, getAspectRatio, getAspectRatioUnsafe, getAspectRatioUnchecked, setFrameRate, getFrameRate, getFrameRateUnsafe, getFrameRateUnchecked, setFacingMode, getFacingMode, getFacingModeUnsafe, getFacingModeUnchecked, setResizeMode, getResizeMode, getResizeModeUnsafe, getResizeModeUnchecked, setSampleRate, getSampleRate, getSampleRateUnsafe, getSampleRateUnchecked, setSampleSize, getSampleSize, getSampleSizeUnsafe, getSampleSizeUnchecked, setEchoCancellation, getEchoCancellation, getEchoCancellationUnsafe, getEchoCancellationUnchecked, setAutoGainControl, getAutoGainControl, getAutoGainControlUnsafe, getAutoGainControlUnchecked, setNoiseSuppression, getNoiseSuppression, getNoiseSuppressionUnsafe, getNoiseSuppressionUnchecked, setLatency, getLatency, getLatencyUnsafe, getLatencyUnchecked, setChannelCount, getChannelCount, getChannelCountUnsafe, getChannelCountUnchecked, setDeviceId, getDeviceId, getDeviceIdUnsafe, getDeviceIdUnchecked, setGroupId, getGroupId, getGroupIdUnsafe, getGroupIdUnchecked, setBackgroundBlur, getBackgroundBlur, getBackgroundBlurUnsafe, getBackgroundBlurUnchecked, setWhiteBalanceMode, getWhiteBalanceMode, getWhiteBalanceModeUnsafe, getWhiteBalanceModeUnchecked, setExposureMode, getExposureMode, getExposureModeUnsafe, getExposureModeUnchecked, setFocusMode, getFocusMode, getFocusModeUnsafe, getFocusModeUnchecked, setPointsOfInterest, getPointsOfInterest, getPointsOfInterestUnsafe, getPointsOfInterestUnchecked, setExposureCompensation, getExposureCompensation, getExposureCompensationUnsafe, getExposureCompensationUnchecked, setExposureTime, getExposureTime, getExposureTimeUnsafe, getExposureTimeUnchecked, setColorTemperature, getColorTemperature, getColorTemperatureUnsafe, getColorTemperatureUnchecked, setIso, getIso, getIsoUnsafe, getIsoUnchecked, setBrightness, getBrightness, getBrightnessUnsafe, getBrightnessUnchecked, setContrast, getContrast, getContrastUnsafe, getContrastUnchecked, setPan, getPan, getPanUnsafe, getPanUnchecked, setSaturation, getSaturation, getSaturationUnsafe, getSaturationUnchecked, setSharpness, getSharpness, getSharpnessUnsafe, getSharpnessUnchecked, setFocusDistance, getFocusDistance, getFocusDistanceUnsafe, getFocusDistanceUnchecked, setTilt, getTilt, getTiltUnsafe, getTiltUnchecked, setZoom, getZoom, getZoomUnsafe, getZoomUnchecked, setTorch, getTorch, getTorchUnsafe, getTorchUnchecked, setPowerEfficient, getPowerEfficient, getPowerEfficientUnsafe, getPowerEfficientUnchecked, setPowerEfficientPixelFormat, getPowerEfficientPixelFormat, getPowerEfficientPixelFormatUnsafe, getPowerEfficientPixelFormatUnchecked, setGestureReactions, getGestureReactions, getGestureReactionsUnsafe, getGestureReactionsUnchecked, setFaceFraming, getFaceFraming, getFaceFramingUnsafe, getFaceFramingUnchecked, setEyeGazeCorrection, getEyeGazeCorrection, getEyeGazeCorrectionUnsafe, getEyeGazeCorrectionUnchecked, setVoiceIsolation, getVoiceIsolation, getVoiceIsolationUnsafe, getVoiceIsolationUnchecked, setHumanFaceDetectionMode, getHumanFaceDetectionMode, getHumanFaceDetectionModeUnsafe, getHumanFaceDetectionModeUnchecked, setBackgroundSegmentationMask, getBackgroundSegmentationMask, getBackgroundSegmentationMaskUnsafe, getBackgroundSegmentationMaskUnchecked, setDisplaySurface, getDisplaySurface, getDisplaySurfaceUnsafe, getDisplaySurfaceUnchecked, setLogicalSurface, getLogicalSurface, getLogicalSurfaceUnsafe, getLogicalSurfaceUnchecked, setCursor, getCursor, getCursorUnsafe, getCursorUnchecked, setRestrictOwnAudio, getRestrictOwnAudio, getRestrictOwnAudioUnsafe, getRestrictOwnAudioUnchecked, setSuppressLocalAudioPlayback, getSuppressLocalAudioPlayback, getSuppressLocalAudioPlaybackUnsafe, getSuppressLocalAudioPlaybackUnchecked, MediaTrackSupportedConstraints(..), gTypeMediaTrackSupportedConstraints)
       where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import Language.Javascript.JSaddle (JSM, JSVal, JSString, toJSVal, valToBool, valToNumber, js, jss, jsf, jsg, new, function, asyncFunction, jsUndefined, jsNull)
import JSDOM.Types
import qualified JSDOM.Types as Types
import JSDOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import JSDOM.Generated.Enums

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints MediaTrackSupportedConstraints specification>
newMediaTrackSupportedConstraints :: (MonadDOM m) => m MediaTrackSupportedConstraints
newMediaTrackSupportedConstraints = liftDOM ((((new (jsg "Object") () >>= \o -> P.return o)) >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-width MediaTrackSupportedConstraints.width specification>
setWidth :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setWidth self val = liftDOM (void (self ^. jss "width" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-width MediaTrackSupportedConstraints.width specification>
getWidth :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getWidth self = liftDOM (((self ^. js "width") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-width MediaTrackSupportedConstraints.width specification>
getWidthUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getWidthUnsafe self = liftDOM ((((self ^. js "width") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-width MediaTrackSupportedConstraints.width specification>
getWidthUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getWidthUnchecked self = liftDOM (((self ^. js "width") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-height MediaTrackSupportedConstraints.height specification>
setHeight :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setHeight self val = liftDOM (void (self ^. jss "height" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-height MediaTrackSupportedConstraints.height specification>
getHeight :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getHeight self = liftDOM (((self ^. js "height") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-height MediaTrackSupportedConstraints.height specification>
getHeightUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getHeightUnsafe self = liftDOM ((((self ^. js "height") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-height MediaTrackSupportedConstraints.height specification>
getHeightUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getHeightUnchecked self = liftDOM (((self ^. js "height") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-aspectratio MediaTrackSupportedConstraints.aspectRatio specification>
setAspectRatio :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setAspectRatio self val = liftDOM (void (self ^. jss "aspectRatio" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-aspectratio MediaTrackSupportedConstraints.aspectRatio specification>
getAspectRatio :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getAspectRatio self = liftDOM (((self ^. js "aspectRatio") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-aspectratio MediaTrackSupportedConstraints.aspectRatio specification>
getAspectRatioUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getAspectRatioUnsafe self = liftDOM ((((self ^. js "aspectRatio") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-aspectratio MediaTrackSupportedConstraints.aspectRatio specification>
getAspectRatioUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getAspectRatioUnchecked self = liftDOM (((self ^. js "aspectRatio") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-framerate MediaTrackSupportedConstraints.frameRate specification>
setFrameRate :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setFrameRate self val = liftDOM (void (self ^. jss "frameRate" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-framerate MediaTrackSupportedConstraints.frameRate specification>
getFrameRate :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getFrameRate self = liftDOM (((self ^. js "frameRate") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-framerate MediaTrackSupportedConstraints.frameRate specification>
getFrameRateUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getFrameRateUnsafe self = liftDOM ((((self ^. js "frameRate") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-framerate MediaTrackSupportedConstraints.frameRate specification>
getFrameRateUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getFrameRateUnchecked self = liftDOM (((self ^. js "frameRate") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-facingmode MediaTrackSupportedConstraints.facingMode specification>
setFacingMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setFacingMode self val = liftDOM (void (self ^. jss "facingMode" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-facingmode MediaTrackSupportedConstraints.facingMode specification>
getFacingMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getFacingMode self = liftDOM (((self ^. js "facingMode") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-facingmode MediaTrackSupportedConstraints.facingMode specification>
getFacingModeUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getFacingModeUnsafe self = liftDOM ((((self ^. js "facingMode") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-facingmode MediaTrackSupportedConstraints.facingMode specification>
getFacingModeUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getFacingModeUnchecked self = liftDOM (((self ^. js "facingMode") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-resizemode MediaTrackSupportedConstraints.resizeMode specification>
setResizeMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setResizeMode self val = liftDOM (void (self ^. jss "resizeMode" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-resizemode MediaTrackSupportedConstraints.resizeMode specification>
getResizeMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getResizeMode self = liftDOM (((self ^. js "resizeMode") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-resizemode MediaTrackSupportedConstraints.resizeMode specification>
getResizeModeUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getResizeModeUnsafe self = liftDOM ((((self ^. js "resizeMode") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-resizemode MediaTrackSupportedConstraints.resizeMode specification>
getResizeModeUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getResizeModeUnchecked self = liftDOM (((self ^. js "resizeMode") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-samplerate MediaTrackSupportedConstraints.sampleRate specification>
setSampleRate :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setSampleRate self val = liftDOM (void (self ^. jss "sampleRate" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-samplerate MediaTrackSupportedConstraints.sampleRate specification>
getSampleRate :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getSampleRate self = liftDOM (((self ^. js "sampleRate") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-samplerate MediaTrackSupportedConstraints.sampleRate specification>
getSampleRateUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getSampleRateUnsafe self = liftDOM ((((self ^. js "sampleRate") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-samplerate MediaTrackSupportedConstraints.sampleRate specification>
getSampleRateUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getSampleRateUnchecked self = liftDOM (((self ^. js "sampleRate") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-samplesize MediaTrackSupportedConstraints.sampleSize specification>
setSampleSize :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setSampleSize self val = liftDOM (void (self ^. jss "sampleSize" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-samplesize MediaTrackSupportedConstraints.sampleSize specification>
getSampleSize :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getSampleSize self = liftDOM (((self ^. js "sampleSize") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-samplesize MediaTrackSupportedConstraints.sampleSize specification>
getSampleSizeUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getSampleSizeUnsafe self = liftDOM ((((self ^. js "sampleSize") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-samplesize MediaTrackSupportedConstraints.sampleSize specification>
getSampleSizeUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getSampleSizeUnchecked self = liftDOM (((self ^. js "sampleSize") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-echocancellation MediaTrackSupportedConstraints.echoCancellation specification>
setEchoCancellation :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setEchoCancellation self val = liftDOM (void (self ^. jss "echoCancellation" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-echocancellation MediaTrackSupportedConstraints.echoCancellation specification>
getEchoCancellation :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getEchoCancellation self = liftDOM (((self ^. js "echoCancellation") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-echocancellation MediaTrackSupportedConstraints.echoCancellation specification>
getEchoCancellationUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getEchoCancellationUnsafe self = liftDOM ((((self ^. js "echoCancellation") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-echocancellation MediaTrackSupportedConstraints.echoCancellation specification>
getEchoCancellationUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getEchoCancellationUnchecked self = liftDOM (((self ^. js "echoCancellation") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-autogaincontrol MediaTrackSupportedConstraints.autoGainControl specification>
setAutoGainControl :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setAutoGainControl self val = liftDOM (void (self ^. jss "autoGainControl" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-autogaincontrol MediaTrackSupportedConstraints.autoGainControl specification>
getAutoGainControl :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getAutoGainControl self = liftDOM (((self ^. js "autoGainControl") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-autogaincontrol MediaTrackSupportedConstraints.autoGainControl specification>
getAutoGainControlUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getAutoGainControlUnsafe self = liftDOM ((((self ^. js "autoGainControl") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-autogaincontrol MediaTrackSupportedConstraints.autoGainControl specification>
getAutoGainControlUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getAutoGainControlUnchecked self = liftDOM (((self ^. js "autoGainControl") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-noisesuppression MediaTrackSupportedConstraints.noiseSuppression specification>
setNoiseSuppression :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setNoiseSuppression self val = liftDOM (void (self ^. jss "noiseSuppression" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-noisesuppression MediaTrackSupportedConstraints.noiseSuppression specification>
getNoiseSuppression :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getNoiseSuppression self = liftDOM (((self ^. js "noiseSuppression") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-noisesuppression MediaTrackSupportedConstraints.noiseSuppression specification>
getNoiseSuppressionUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getNoiseSuppressionUnsafe self = liftDOM ((((self ^. js "noiseSuppression") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-noisesuppression MediaTrackSupportedConstraints.noiseSuppression specification>
getNoiseSuppressionUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getNoiseSuppressionUnchecked self = liftDOM (((self ^. js "noiseSuppression") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-latency MediaTrackSupportedConstraints.latency specification>
setLatency :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setLatency self val = liftDOM (void (self ^. jss "latency" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-latency MediaTrackSupportedConstraints.latency specification>
getLatency :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getLatency self = liftDOM (((self ^. js "latency") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-latency MediaTrackSupportedConstraints.latency specification>
getLatencyUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getLatencyUnsafe self = liftDOM ((((self ^. js "latency") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-latency MediaTrackSupportedConstraints.latency specification>
getLatencyUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getLatencyUnchecked self = liftDOM (((self ^. js "latency") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-channelcount MediaTrackSupportedConstraints.channelCount specification>
setChannelCount :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setChannelCount self val = liftDOM (void (self ^. jss "channelCount" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-channelcount MediaTrackSupportedConstraints.channelCount specification>
getChannelCount :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getChannelCount self = liftDOM (((self ^. js "channelCount") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-channelcount MediaTrackSupportedConstraints.channelCount specification>
getChannelCountUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getChannelCountUnsafe self = liftDOM ((((self ^. js "channelCount") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-channelcount MediaTrackSupportedConstraints.channelCount specification>
getChannelCountUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getChannelCountUnchecked self = liftDOM (((self ^. js "channelCount") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-deviceid MediaTrackSupportedConstraints.deviceId specification>
setDeviceId :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setDeviceId self val = liftDOM (void (self ^. jss "deviceId" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-deviceid MediaTrackSupportedConstraints.deviceId specification>
getDeviceId :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getDeviceId self = liftDOM (((self ^. js "deviceId") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-deviceid MediaTrackSupportedConstraints.deviceId specification>
getDeviceIdUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getDeviceIdUnsafe self = liftDOM ((((self ^. js "deviceId") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-deviceid MediaTrackSupportedConstraints.deviceId specification>
getDeviceIdUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getDeviceIdUnchecked self = liftDOM (((self ^. js "deviceId") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-groupid MediaTrackSupportedConstraints.groupId specification>
setGroupId :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setGroupId self val = liftDOM (void (self ^. jss "groupId" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-groupid MediaTrackSupportedConstraints.groupId specification>
getGroupId :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getGroupId self = liftDOM (((self ^. js "groupId") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-groupid MediaTrackSupportedConstraints.groupId specification>
getGroupIdUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getGroupIdUnsafe self = liftDOM ((((self ^. js "groupId") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-groupid MediaTrackSupportedConstraints.groupId specification>
getGroupIdUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getGroupIdUnchecked self = liftDOM (((self ^. js "groupId") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-backgroundblur MediaTrackSupportedConstraints.backgroundBlur specification>
setBackgroundBlur :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setBackgroundBlur self val = liftDOM (void (self ^. jss "backgroundBlur" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-backgroundblur MediaTrackSupportedConstraints.backgroundBlur specification>
getBackgroundBlur :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getBackgroundBlur self = liftDOM (((self ^. js "backgroundBlur") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-backgroundblur MediaTrackSupportedConstraints.backgroundBlur specification>
getBackgroundBlurUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getBackgroundBlurUnsafe self = liftDOM ((((self ^. js "backgroundBlur") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-main/#dom-mediatracksupportedconstraints-backgroundblur MediaTrackSupportedConstraints.backgroundBlur specification>
getBackgroundBlurUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getBackgroundBlurUnchecked self = liftDOM (((self ^. js "backgroundBlur") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-whitebalancemode MediaTrackSupportedConstraints.whiteBalanceMode specification>
setWhiteBalanceMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setWhiteBalanceMode self val = liftDOM (void (self ^. jss "whiteBalanceMode" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-whitebalancemode MediaTrackSupportedConstraints.whiteBalanceMode specification>
getWhiteBalanceMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getWhiteBalanceMode self = liftDOM (((self ^. js "whiteBalanceMode") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-whitebalancemode MediaTrackSupportedConstraints.whiteBalanceMode specification>
getWhiteBalanceModeUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getWhiteBalanceModeUnsafe self = liftDOM ((((self ^. js "whiteBalanceMode") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-whitebalancemode MediaTrackSupportedConstraints.whiteBalanceMode specification>
getWhiteBalanceModeUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getWhiteBalanceModeUnchecked self = liftDOM (((self ^. js "whiteBalanceMode") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposuremode MediaTrackSupportedConstraints.exposureMode specification>
setExposureMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setExposureMode self val = liftDOM (void (self ^. jss "exposureMode" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposuremode MediaTrackSupportedConstraints.exposureMode specification>
getExposureMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getExposureMode self = liftDOM (((self ^. js "exposureMode") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposuremode MediaTrackSupportedConstraints.exposureMode specification>
getExposureModeUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getExposureModeUnsafe self = liftDOM ((((self ^. js "exposureMode") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposuremode MediaTrackSupportedConstraints.exposureMode specification>
getExposureModeUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getExposureModeUnchecked self = liftDOM (((self ^. js "exposureMode") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-focusmode MediaTrackSupportedConstraints.focusMode specification>
setFocusMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setFocusMode self val = liftDOM (void (self ^. jss "focusMode" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-focusmode MediaTrackSupportedConstraints.focusMode specification>
getFocusMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getFocusMode self = liftDOM (((self ^. js "focusMode") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-focusmode MediaTrackSupportedConstraints.focusMode specification>
getFocusModeUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getFocusModeUnsafe self = liftDOM ((((self ^. js "focusMode") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-focusmode MediaTrackSupportedConstraints.focusMode specification>
getFocusModeUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getFocusModeUnchecked self = liftDOM (((self ^. js "focusMode") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-pointsofinterest MediaTrackSupportedConstraints.pointsOfInterest specification>
setPointsOfInterest :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setPointsOfInterest self val = liftDOM (void (self ^. jss "pointsOfInterest" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-pointsofinterest MediaTrackSupportedConstraints.pointsOfInterest specification>
getPointsOfInterest :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getPointsOfInterest self = liftDOM (((self ^. js "pointsOfInterest") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-pointsofinterest MediaTrackSupportedConstraints.pointsOfInterest specification>
getPointsOfInterestUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getPointsOfInterestUnsafe self = liftDOM ((((self ^. js "pointsOfInterest") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-pointsofinterest MediaTrackSupportedConstraints.pointsOfInterest specification>
getPointsOfInterestUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getPointsOfInterestUnchecked self = liftDOM (((self ^. js "pointsOfInterest") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposurecompensation MediaTrackSupportedConstraints.exposureCompensation specification>
setExposureCompensation :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setExposureCompensation self val = liftDOM (void (self ^. jss "exposureCompensation" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposurecompensation MediaTrackSupportedConstraints.exposureCompensation specification>
getExposureCompensation :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getExposureCompensation self = liftDOM (((self ^. js "exposureCompensation") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposurecompensation MediaTrackSupportedConstraints.exposureCompensation specification>
getExposureCompensationUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getExposureCompensationUnsafe self = liftDOM ((((self ^. js "exposureCompensation") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposurecompensation MediaTrackSupportedConstraints.exposureCompensation specification>
getExposureCompensationUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getExposureCompensationUnchecked self = liftDOM (((self ^. js "exposureCompensation") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposuretime MediaTrackSupportedConstraints.exposureTime specification>
setExposureTime :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setExposureTime self val = liftDOM (void (self ^. jss "exposureTime" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposuretime MediaTrackSupportedConstraints.exposureTime specification>
getExposureTime :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getExposureTime self = liftDOM (((self ^. js "exposureTime") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposuretime MediaTrackSupportedConstraints.exposureTime specification>
getExposureTimeUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getExposureTimeUnsafe self = liftDOM ((((self ^. js "exposureTime") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-exposuretime MediaTrackSupportedConstraints.exposureTime specification>
getExposureTimeUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getExposureTimeUnchecked self = liftDOM (((self ^. js "exposureTime") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-colortemperature MediaTrackSupportedConstraints.colorTemperature specification>
setColorTemperature :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setColorTemperature self val = liftDOM (void (self ^. jss "colorTemperature" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-colortemperature MediaTrackSupportedConstraints.colorTemperature specification>
getColorTemperature :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getColorTemperature self = liftDOM (((self ^. js "colorTemperature") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-colortemperature MediaTrackSupportedConstraints.colorTemperature specification>
getColorTemperatureUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getColorTemperatureUnsafe self = liftDOM ((((self ^. js "colorTemperature") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-colortemperature MediaTrackSupportedConstraints.colorTemperature specification>
getColorTemperatureUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getColorTemperatureUnchecked self = liftDOM (((self ^. js "colorTemperature") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-iso MediaTrackSupportedConstraints.iso specification>
setIso :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setIso self val = liftDOM (void (self ^. jss "iso" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-iso MediaTrackSupportedConstraints.iso specification>
getIso :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getIso self = liftDOM (((self ^. js "iso") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-iso MediaTrackSupportedConstraints.iso specification>
getIsoUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getIsoUnsafe self = liftDOM ((((self ^. js "iso") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-iso MediaTrackSupportedConstraints.iso specification>
getIsoUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getIsoUnchecked self = liftDOM (((self ^. js "iso") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-brightness MediaTrackSupportedConstraints.brightness specification>
setBrightness :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setBrightness self val = liftDOM (void (self ^. jss "brightness" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-brightness MediaTrackSupportedConstraints.brightness specification>
getBrightness :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getBrightness self = liftDOM (((self ^. js "brightness") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-brightness MediaTrackSupportedConstraints.brightness specification>
getBrightnessUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getBrightnessUnsafe self = liftDOM ((((self ^. js "brightness") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-brightness MediaTrackSupportedConstraints.brightness specification>
getBrightnessUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getBrightnessUnchecked self = liftDOM (((self ^. js "brightness") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-contrast MediaTrackSupportedConstraints.contrast specification>
setContrast :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setContrast self val = liftDOM (void (self ^. jss "contrast" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-contrast MediaTrackSupportedConstraints.contrast specification>
getContrast :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getContrast self = liftDOM (((self ^. js "contrast") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-contrast MediaTrackSupportedConstraints.contrast specification>
getContrastUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getContrastUnsafe self = liftDOM ((((self ^. js "contrast") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-contrast MediaTrackSupportedConstraints.contrast specification>
getContrastUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getContrastUnchecked self = liftDOM (((self ^. js "contrast") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-pan MediaTrackSupportedConstraints.pan specification>
setPan :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setPan self val = liftDOM (void (self ^. jss "pan" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-pan MediaTrackSupportedConstraints.pan specification>
getPan :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getPan self = liftDOM (((self ^. js "pan") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-pan MediaTrackSupportedConstraints.pan specification>
getPanUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getPanUnsafe self = liftDOM ((((self ^. js "pan") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-pan MediaTrackSupportedConstraints.pan specification>
getPanUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getPanUnchecked self = liftDOM (((self ^. js "pan") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-saturation MediaTrackSupportedConstraints.saturation specification>
setSaturation :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setSaturation self val = liftDOM (void (self ^. jss "saturation" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-saturation MediaTrackSupportedConstraints.saturation specification>
getSaturation :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getSaturation self = liftDOM (((self ^. js "saturation") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-saturation MediaTrackSupportedConstraints.saturation specification>
getSaturationUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getSaturationUnsafe self = liftDOM ((((self ^. js "saturation") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-saturation MediaTrackSupportedConstraints.saturation specification>
getSaturationUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getSaturationUnchecked self = liftDOM (((self ^. js "saturation") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-sharpness MediaTrackSupportedConstraints.sharpness specification>
setSharpness :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setSharpness self val = liftDOM (void (self ^. jss "sharpness" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-sharpness MediaTrackSupportedConstraints.sharpness specification>
getSharpness :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getSharpness self = liftDOM (((self ^. js "sharpness") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-sharpness MediaTrackSupportedConstraints.sharpness specification>
getSharpnessUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getSharpnessUnsafe self = liftDOM ((((self ^. js "sharpness") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-sharpness MediaTrackSupportedConstraints.sharpness specification>
getSharpnessUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getSharpnessUnchecked self = liftDOM (((self ^. js "sharpness") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-focusdistance MediaTrackSupportedConstraints.focusDistance specification>
setFocusDistance :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setFocusDistance self val = liftDOM (void (self ^. jss "focusDistance" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-focusdistance MediaTrackSupportedConstraints.focusDistance specification>
getFocusDistance :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getFocusDistance self = liftDOM (((self ^. js "focusDistance") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-focusdistance MediaTrackSupportedConstraints.focusDistance specification>
getFocusDistanceUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getFocusDistanceUnsafe self = liftDOM ((((self ^. js "focusDistance") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-focusdistance MediaTrackSupportedConstraints.focusDistance specification>
getFocusDistanceUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getFocusDistanceUnchecked self = liftDOM (((self ^. js "focusDistance") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-tilt MediaTrackSupportedConstraints.tilt specification>
setTilt :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setTilt self val = liftDOM (void (self ^. jss "tilt" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-tilt MediaTrackSupportedConstraints.tilt specification>
getTilt :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getTilt self = liftDOM (((self ^. js "tilt") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-tilt MediaTrackSupportedConstraints.tilt specification>
getTiltUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getTiltUnsafe self = liftDOM ((((self ^. js "tilt") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-tilt MediaTrackSupportedConstraints.tilt specification>
getTiltUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getTiltUnchecked self = liftDOM (((self ^. js "tilt") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-zoom MediaTrackSupportedConstraints.zoom specification>
setZoom :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setZoom self val = liftDOM (void (self ^. jss "zoom" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-zoom MediaTrackSupportedConstraints.zoom specification>
getZoom :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getZoom self = liftDOM (((self ^. js "zoom") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-zoom MediaTrackSupportedConstraints.zoom specification>
getZoomUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getZoomUnsafe self = liftDOM ((((self ^. js "zoom") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-zoom MediaTrackSupportedConstraints.zoom specification>
getZoomUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getZoomUnchecked self = liftDOM (((self ^. js "zoom") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-torch MediaTrackSupportedConstraints.torch specification>
setTorch :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setTorch self val = liftDOM (void (self ^. jss "torch" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-torch MediaTrackSupportedConstraints.torch specification>
getTorch :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getTorch self = liftDOM (((self ^. js "torch") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-torch MediaTrackSupportedConstraints.torch specification>
getTorchUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getTorchUnsafe self = liftDOM ((((self ^. js "torch") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-torch MediaTrackSupportedConstraints.torch specification>
getTorchUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getTorchUnchecked self = liftDOM (((self ^. js "torch") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-powerefficient MediaTrackSupportedConstraints.powerEfficient specification>
setPowerEfficient :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setPowerEfficient self val = liftDOM (void (self ^. jss "powerEfficient" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-powerefficient MediaTrackSupportedConstraints.powerEfficient specification>
getPowerEfficient :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getPowerEfficient self = liftDOM (((self ^. js "powerEfficient") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-powerefficient MediaTrackSupportedConstraints.powerEfficient specification>
getPowerEfficientUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getPowerEfficientUnsafe self = liftDOM ((((self ^. js "powerEfficient") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-powerefficient MediaTrackSupportedConstraints.powerEfficient specification>
getPowerEfficientUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getPowerEfficientUnchecked self = liftDOM (((self ^. js "powerEfficient") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-powerefficientpixelformat MediaTrackSupportedConstraints.powerEfficientPixelFormat specification>
setPowerEfficientPixelFormat :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setPowerEfficientPixelFormat self val = liftDOM (void (self ^. jss "powerEfficientPixelFormat" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-powerefficientpixelformat MediaTrackSupportedConstraints.powerEfficientPixelFormat specification>
getPowerEfficientPixelFormat :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getPowerEfficientPixelFormat self = liftDOM (((self ^. js "powerEfficientPixelFormat") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-powerefficientpixelformat MediaTrackSupportedConstraints.powerEfficientPixelFormat specification>
getPowerEfficientPixelFormatUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getPowerEfficientPixelFormatUnsafe self = liftDOM ((((self ^. js "powerEfficientPixelFormat") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-powerefficientpixelformat MediaTrackSupportedConstraints.powerEfficientPixelFormat specification>
getPowerEfficientPixelFormatUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getPowerEfficientPixelFormatUnchecked self = liftDOM (((self ^. js "powerEfficientPixelFormat") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-gesturereactions MediaTrackSupportedConstraints.gestureReactions specification>
setGestureReactions :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setGestureReactions self val = liftDOM (void (self ^. jss "gestureReactions" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-gesturereactions MediaTrackSupportedConstraints.gestureReactions specification>
getGestureReactions :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getGestureReactions self = liftDOM (((self ^. js "gestureReactions") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-gesturereactions MediaTrackSupportedConstraints.gestureReactions specification>
getGestureReactionsUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getGestureReactionsUnsafe self = liftDOM ((((self ^. js "gestureReactions") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-gesturereactions MediaTrackSupportedConstraints.gestureReactions specification>
getGestureReactionsUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getGestureReactionsUnchecked self = liftDOM (((self ^. js "gestureReactions") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-faceframing MediaTrackSupportedConstraints.faceFraming specification>
setFaceFraming :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setFaceFraming self val = liftDOM (void (self ^. jss "faceFraming" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-faceframing MediaTrackSupportedConstraints.faceFraming specification>
getFaceFraming :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getFaceFraming self = liftDOM (((self ^. js "faceFraming") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-faceframing MediaTrackSupportedConstraints.faceFraming specification>
getFaceFramingUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getFaceFramingUnsafe self = liftDOM ((((self ^. js "faceFraming") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-faceframing MediaTrackSupportedConstraints.faceFraming specification>
getFaceFramingUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getFaceFramingUnchecked self = liftDOM (((self ^. js "faceFraming") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-eyegazecorrection MediaTrackSupportedConstraints.eyeGazeCorrection specification>
setEyeGazeCorrection :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setEyeGazeCorrection self val = liftDOM (void (self ^. jss "eyeGazeCorrection" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-eyegazecorrection MediaTrackSupportedConstraints.eyeGazeCorrection specification>
getEyeGazeCorrection :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getEyeGazeCorrection self = liftDOM (((self ^. js "eyeGazeCorrection") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-eyegazecorrection MediaTrackSupportedConstraints.eyeGazeCorrection specification>
getEyeGazeCorrectionUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getEyeGazeCorrectionUnsafe self = liftDOM ((((self ^. js "eyeGazeCorrection") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-eyegazecorrection MediaTrackSupportedConstraints.eyeGazeCorrection specification>
getEyeGazeCorrectionUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getEyeGazeCorrectionUnchecked self = liftDOM (((self ^. js "eyeGazeCorrection") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-voiceisolation MediaTrackSupportedConstraints.voiceIsolation specification>
setVoiceIsolation :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setVoiceIsolation self val = liftDOM (void (self ^. jss "voiceIsolation" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-voiceisolation MediaTrackSupportedConstraints.voiceIsolation specification>
getVoiceIsolation :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getVoiceIsolation self = liftDOM (((self ^. js "voiceIsolation") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-voiceisolation MediaTrackSupportedConstraints.voiceIsolation specification>
getVoiceIsolationUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getVoiceIsolationUnsafe self = liftDOM ((((self ^. js "voiceIsolation") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-voiceisolation MediaTrackSupportedConstraints.voiceIsolation specification>
getVoiceIsolationUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getVoiceIsolationUnchecked self = liftDOM (((self ^. js "voiceIsolation") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-humanfacedetectionmode MediaTrackSupportedConstraints.humanFaceDetectionMode specification>
setHumanFaceDetectionMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setHumanFaceDetectionMode self val = liftDOM (void (self ^. jss "humanFaceDetectionMode" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-humanfacedetectionmode MediaTrackSupportedConstraints.humanFaceDetectionMode specification>
getHumanFaceDetectionMode :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getHumanFaceDetectionMode self = liftDOM (((self ^. js "humanFaceDetectionMode") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-humanfacedetectionmode MediaTrackSupportedConstraints.humanFaceDetectionMode specification>
getHumanFaceDetectionModeUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getHumanFaceDetectionModeUnsafe self = liftDOM ((((self ^. js "humanFaceDetectionMode") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-humanfacedetectionmode MediaTrackSupportedConstraints.humanFaceDetectionMode specification>
getHumanFaceDetectionModeUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getHumanFaceDetectionModeUnchecked self = liftDOM (((self ^. js "humanFaceDetectionMode") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-backgroundsegmentationmask MediaTrackSupportedConstraints.backgroundSegmentationMask specification>
setBackgroundSegmentationMask :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setBackgroundSegmentationMask self val = liftDOM (void (self ^. jss "backgroundSegmentationMask" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-backgroundsegmentationmask MediaTrackSupportedConstraints.backgroundSegmentationMask specification>
getBackgroundSegmentationMask :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getBackgroundSegmentationMask self = liftDOM (((self ^. js "backgroundSegmentationMask") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-backgroundsegmentationmask MediaTrackSupportedConstraints.backgroundSegmentationMask specification>
getBackgroundSegmentationMaskUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getBackgroundSegmentationMaskUnsafe self = liftDOM ((((self ^. js "backgroundSegmentationMask") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-extensions/#dom-mediatracksupportedconstraints-backgroundsegmentationmask MediaTrackSupportedConstraints.backgroundSegmentationMask specification>
getBackgroundSegmentationMaskUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getBackgroundSegmentationMaskUnchecked self = liftDOM (((self ^. js "backgroundSegmentationMask") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-displaysurface MediaTrackSupportedConstraints.displaySurface specification>
setDisplaySurface :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setDisplaySurface self val = liftDOM (void (self ^. jss "displaySurface" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-displaysurface MediaTrackSupportedConstraints.displaySurface specification>
getDisplaySurface :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getDisplaySurface self = liftDOM (((self ^. js "displaySurface") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-displaysurface MediaTrackSupportedConstraints.displaySurface specification>
getDisplaySurfaceUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getDisplaySurfaceUnsafe self = liftDOM ((((self ^. js "displaySurface") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-displaysurface MediaTrackSupportedConstraints.displaySurface specification>
getDisplaySurfaceUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getDisplaySurfaceUnchecked self = liftDOM (((self ^. js "displaySurface") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-logicalsurface MediaTrackSupportedConstraints.logicalSurface specification>
setLogicalSurface :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setLogicalSurface self val = liftDOM (void (self ^. jss "logicalSurface" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-logicalsurface MediaTrackSupportedConstraints.logicalSurface specification>
getLogicalSurface :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getLogicalSurface self = liftDOM (((self ^. js "logicalSurface") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-logicalsurface MediaTrackSupportedConstraints.logicalSurface specification>
getLogicalSurfaceUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getLogicalSurfaceUnsafe self = liftDOM ((((self ^. js "logicalSurface") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-logicalsurface MediaTrackSupportedConstraints.logicalSurface specification>
getLogicalSurfaceUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getLogicalSurfaceUnchecked self = liftDOM (((self ^. js "logicalSurface") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-cursor MediaTrackSupportedConstraints.cursor specification>
setCursor :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setCursor self val = liftDOM (void (self ^. jss "cursor" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-cursor MediaTrackSupportedConstraints.cursor specification>
getCursor :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getCursor self = liftDOM (((self ^. js "cursor") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-cursor MediaTrackSupportedConstraints.cursor specification>
getCursorUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getCursorUnsafe self = liftDOM ((((self ^. js "cursor") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-cursor MediaTrackSupportedConstraints.cursor specification>
getCursorUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getCursorUnchecked self = liftDOM (((self ^. js "cursor") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-restrictownaudio MediaTrackSupportedConstraints.restrictOwnAudio specification>
setRestrictOwnAudio :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setRestrictOwnAudio self val = liftDOM (void (self ^. jss "restrictOwnAudio" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-restrictownaudio MediaTrackSupportedConstraints.restrictOwnAudio specification>
getRestrictOwnAudio :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getRestrictOwnAudio self = liftDOM (((self ^. js "restrictOwnAudio") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-restrictownaudio MediaTrackSupportedConstraints.restrictOwnAudio specification>
getRestrictOwnAudioUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getRestrictOwnAudioUnsafe self = liftDOM ((((self ^. js "restrictOwnAudio") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-restrictownaudio MediaTrackSupportedConstraints.restrictOwnAudio specification>
getRestrictOwnAudioUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getRestrictOwnAudioUnchecked self = liftDOM (((self ^. js "restrictOwnAudio") >>= valToBool))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-suppresslocalaudioplayback MediaTrackSupportedConstraints.suppressLocalAudioPlayback specification>
setSuppressLocalAudioPlayback :: (MonadDOM m) => MediaTrackSupportedConstraints -> Bool -> m ()
setSuppressLocalAudioPlayback self val = liftDOM (void (self ^. jss "suppressLocalAudioPlayback" (toJSVal val)))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-suppresslocalaudioplayback MediaTrackSupportedConstraints.suppressLocalAudioPlayback specification>
getSuppressLocalAudioPlayback :: (MonadDOM m) => MediaTrackSupportedConstraints -> m (Maybe Bool)
getSuppressLocalAudioPlayback self = liftDOM (((self ^. js "suppressLocalAudioPlayback") >>= fromJSValUnchecked))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-suppresslocalaudioplayback MediaTrackSupportedConstraints.suppressLocalAudioPlayback specification>
getSuppressLocalAudioPlaybackUnsafe :: (MonadDOM m, HasCallStack) => MediaTrackSupportedConstraints -> m Bool
getSuppressLocalAudioPlaybackUnsafe self = liftDOM ((((self ^. js "suppressLocalAudioPlayback") >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/mediacapture-screen-share/#dom-mediatracksupportedconstraints-suppresslocalaudioplayback MediaTrackSupportedConstraints.suppressLocalAudioPlayback specification>
getSuppressLocalAudioPlaybackUnchecked :: (MonadDOM m) => MediaTrackSupportedConstraints -> m Bool
getSuppressLocalAudioPlaybackUnchecked self = liftDOM (((self ^. js "suppressLocalAudioPlayback") >>= valToBool))