ghcjs-dom-javascript-0.10.0.0: src/GHCJS/DOM/JSFFI/Generated/RTCRtpScriptTransform.hs
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from webrtc-encoded-transform (webref). Do not edit.
module GHCJS.DOM.JSFFI.Generated.RTCRtpScriptTransform
(js_newRTCRtpScriptTransform, newRTCRtpScriptTransform, RTCRtpScriptTransform(..), gTypeRTCRtpScriptTransform)
where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import GHCJS.Types (JSVal, JSString)
import GHCJS.Foreign (jsUndefined, jsNull)
import GHCJS.DOM.Types
import qualified GHCJS.DOM.Types as Types
import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import GHCJS.DOM.JSFFI.Generated.Enums
foreign import javascript safe "(($1, $2, $3) => { return new globalThis[\"RTCRtpScriptTransform\"]($1, $2, $3); })"
js_newRTCRtpScriptTransform :: WorkerOrWorkerAndParameters -> JSVal -> JSVal -> IO RTCRtpScriptTransform
-- | <https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransform/RTCRtpScriptTransform MDN RTCRtpScriptTransform. documentation>
newRTCRtpScriptTransform :: (MonadDOM m, IsWorkerOrWorkerAndParameters workerOrWorkerAndParameters) => workerOrWorkerAndParameters -> JSVal -> Maybe [GObject] -> m RTCRtpScriptTransform
newRTCRtpScriptTransform workerOrWorkerAndParameters options transfer = liftDOM (((P.maybe (P.return jsUndefined) toJSVal transfer) >>= \a3' -> js_newRTCRtpScriptTransform (Types.toWorkerOrWorkerAndParameters workerOrWorkerAndParameters) (options) a3'))