miso
Copyright(C) 2016-2025 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Navigator

Description

 
Synopsis

User media

getUserMedia Source #

Arguments

:: UserMedia

Options

-> (Stream -> action)

Successful callback

-> (JSVal -> action)

Errorful callback

-> Effect parent model action 

data UserMedia Source #

Type for dealing with 'navigator.mediaDevices.getUserMedia'

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices

Constructors

UserMedia 

Fields

Instances

Instances details
Show UserMedia Source # 
Instance details

Defined in Miso.Navigator

Eq UserMedia Source # 
Instance details

Defined in Miso.Navigator

Clipboard

copyClipboard Source #

Arguments

:: MisoString

Options

-> action

Successful callback

-> (JSVal -> action)

Errorful callback

-> Effect parent model action 

OnLine

isOnLine Source #

Arguments

:: (Bool -> action)

Successful callback

-> Effect parent model action 

Geolocation

data GeolocationErrorCode Source #