gi-webkit2-4.0.29: WebKit2 bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.WebKit2.Interfaces.PermissionRequest

Description

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

Exported types

newtype PermissionRequest Source #

Memory-managed wrapper type.

Constructors

PermissionRequest (ManagedPtr PermissionRequest) 

Instances

Instances details
Eq PermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Interfaces.PermissionRequest

GObject PermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Interfaces.PermissionRequest

ManagedPtrNewtype PermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Interfaces.PermissionRequest

TypedObject PermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Interfaces.PermissionRequest

Methods

glibType :: IO GType

HasParentTypes PermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Interfaces.PermissionRequest

IsGValue (Maybe PermissionRequest) Source #

Convert PermissionRequest to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.WebKit2.Interfaces.PermissionRequest

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe PermissionRequest -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe PermissionRequest)

type ParentTypes PermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Interfaces.PermissionRequest

type ParentTypes PermissionRequest = '[Object]

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

Instances details
(GObject o, IsDescendantOf PermissionRequest o) => IsPermissionRequest o Source # 
Instance details

Defined in GI.WebKit2.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

allow

permissionRequestAllow Source #

Arguments

:: (HasCallStack, MonadIO m, IsPermissionRequest a) 
=> a

request: a PermissionRequest

-> m () 

Allow the action which triggered this request.

deny

permissionRequestDeny Source #

Arguments

:: (HasCallStack, MonadIO m, IsPermissionRequest a) 
=> a

request: a PermissionRequest

-> m () 

Deny the action which triggered this request.