Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- getMajorVersion :: (HasCallStack, MonadIO m) => m Word32
- getMicroVersion :: (HasCallStack, MonadIO m) => m Word32
- getMinorVersion :: (HasCallStack, MonadIO m) => m Word32
- mediaKeySystemPermissionGetName :: (HasCallStack, MonadIO m, IsMediaKeySystemPermissionRequest a) => a -> m Text
- uriForDisplay :: (HasCallStack, MonadIO m) => Text -> m (Maybe Text)
- userMediaPermissionIsForAudioDevice :: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) => a -> m Bool
- userMediaPermissionIsForDisplayDevice :: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) => a -> m Bool
- userMediaPermissionIsForVideoDevice :: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) => a -> m Bool
Methods
getMajorVersion
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: the major version number of the WebKit library |
Returns the major version number of the WebKit library.
(e.g. in WebKit version 1.8.3 this is 1.)
This function is in the library, so it represents the WebKit library
your code is running against. Contrast with the MAJOR_VERSION
macro, which represents the major version of the WebKit headers you
have included when compiling your code.
getMicroVersion
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: the micro version number of the WebKit library |
Returns the micro version number of the WebKit library.
(e.g. in WebKit version 1.8.3 this is 3.)
This function is in the library, so it represents the WebKit library
your code is running against. Contrast with the MICRO_VERSION
macro, which represents the micro version of the WebKit headers you
have included when compiling your code.
getMinorVersion
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: the minor version number of the WebKit library |
Returns the minor version number of the WebKit library.
(e.g. in WebKit version 1.8.3 this is 8.)
This function is in the library, so it represents the WebKit library
your code is running against. Contrast with the MINOR_VERSION
macro, which represents the minor version of the WebKit headers you
have included when compiling your code.
mediaKeySystemPermissionGetName
mediaKeySystemPermissionGetName Source #
:: (HasCallStack, MonadIO m, IsMediaKeySystemPermissionRequest a) | |
=> a |
|
-> m Text | Returns: the key system name for |
Get the key system for which access permission is being requested.
Since: 2.32
uriForDisplay
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m (Maybe Text) | Returns: |
Use this function to format a URI for display.
The URIs used internally by WebKit may contain percent-encoded characters or Punycode, which are not generally suitable to display to users. This function provides protection against IDN homograph attacks, so in some cases the host part of the returned URI may be in Punycode if the safety check fails.
Since: 2.24
userMediaPermissionIsForAudioDevice
userMediaPermissionIsForAudioDevice Source #
:: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) | |
=> a |
|
-> m Bool | Returns: |
Check whether the permission request is for an audio device.
Since: 2.8
userMediaPermissionIsForDisplayDevice
userMediaPermissionIsForDisplayDevice Source #
:: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) | |
=> a |
|
-> m Bool | Returns: |
Check whether the permission request is for a display device.
Since: 2.34
userMediaPermissionIsForVideoDevice
userMediaPermissionIsForVideoDevice Source #
:: (HasCallStack, MonadIO m, IsUserMediaPermissionRequest a) | |
=> a |
|
-> m Bool | Returns: |
Check whether the permission request is for a video device.
Since: 2.8