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.Objects.GeolocationPermissionRequest

Description

A permission request for sharing the user's location.

WebKitGeolocationPermissionRequest represents a request for permission to decide whether WebKit should provide the user's location to a website when requested through the Geolocation API.

When a WebKitGeolocationPermissionRequest is not handled by the user, it is denied by default.

When embedding web views in your application, you *must* configure an application identifier to allow web content to use geolocation services. The identifier *must* match the name of the .desktop file which describes the application, sans the suffix.

If your application uses Application (or any subclass like Application), WebKit will automatically use the identifier returned by applicationGetApplicationId. This is the recommended approach for enabling geolocation in applications.

If an identifier cannot be obtained through Application, the value returned by getPrgname will be used instead as a fallback. For programs which cannot use Application, calling setPrgname early during initialization is needed when the name of the executable on disk does not match the name of a valid .desktop file.

Synopsis

Exported types

newtype GeolocationPermissionRequest Source #

Memory-managed wrapper type.

Instances

Instances details
Eq GeolocationPermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationPermissionRequest

GObject GeolocationPermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationPermissionRequest

ManagedPtrNewtype GeolocationPermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationPermissionRequest

TypedObject GeolocationPermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationPermissionRequest

Methods

glibType :: IO GType

HasParentTypes GeolocationPermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationPermissionRequest

IsGValue (Maybe GeolocationPermissionRequest) Source #

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

Instance details

Defined in GI.WebKit2.Objects.GeolocationPermissionRequest

type ParentTypes GeolocationPermissionRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationPermissionRequest

type ParentTypes GeolocationPermissionRequest = '[Object, PermissionRequest]

class (GObject o, IsDescendantOf GeolocationPermissionRequest o) => IsGeolocationPermissionRequest o Source #

Type class for types which can be safely cast to GeolocationPermissionRequest, for instance with toGeolocationPermissionRequest.

Instances

Instances details
(GObject o, IsDescendantOf GeolocationPermissionRequest o) => IsGeolocationPermissionRequest o Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationPermissionRequest

toGeolocationPermissionRequest :: (MonadIO m, IsGeolocationPermissionRequest o) => o -> m GeolocationPermissionRequest Source #

Cast to GeolocationPermissionRequest, for types for which this is known to be safe. For general casts, use castTo.

Methods