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 |
A permission request.
There are situations where an embedder would need to ask the user
for permission to do certain types of operations, such as switching
to fullscreen mode or reporting the user's location through the
standard Geolocation API. In those cases, WebKit will emit a
WebView::permissionRequest signal with a
PermissionRequest
object attached to it.
Synopsis
- newtype PermissionRequest = PermissionRequest (ManagedPtr PermissionRequest)
- class (GObject o, IsDescendantOf PermissionRequest o) => IsPermissionRequest o
- toPermissionRequest :: (MonadIO m, IsPermissionRequest o) => o -> m PermissionRequest
- permissionRequestAllow :: (HasCallStack, MonadIO m, IsPermissionRequest a) => a -> m ()
- permissionRequestDeny :: (HasCallStack, MonadIO m, IsPermissionRequest a) => a -> m ()
Exported types
newtype PermissionRequest Source #
Memory-managed wrapper type.
PermissionRequest (ManagedPtr PermissionRequest) |
Instances
class (GObject o, IsDescendantOf PermissionRequest o) => IsPermissionRequest o Source #
Type class for types which can be safely cast to PermissionRequest
, for instance with toPermissionRequest
.
Instances
(GObject o, IsDescendantOf PermissionRequest o) => IsPermissionRequest o Source # | |
Defined in GI.WebKit.Interfaces.PermissionRequest |
toPermissionRequest :: (MonadIO m, IsPermissionRequest o) => o -> m PermissionRequest Source #
Cast to PermissionRequest
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
allow, bindProperty, bindPropertyFull, deny, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
allow
permissionRequestAllow Source #
:: (HasCallStack, MonadIO m, IsPermissionRequest a) | |
=> a |
|
-> m () |
Allow the action which triggered this request.
deny
permissionRequestDeny Source #
:: (HasCallStack, MonadIO m, IsPermissionRequest a) | |
=> a |
|
-> m () |
Deny the action which triggered this request.