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 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
- newtype GeolocationPermissionRequest = GeolocationPermissionRequest (ManagedPtr GeolocationPermissionRequest)
- class (GObject o, IsDescendantOf GeolocationPermissionRequest o) => IsGeolocationPermissionRequest o
- toGeolocationPermissionRequest :: (MonadIO m, IsGeolocationPermissionRequest o) => o -> m GeolocationPermissionRequest
Exported types
newtype GeolocationPermissionRequest Source #
Memory-managed wrapper type.
GeolocationPermissionRequest (ManagedPtr GeolocationPermissionRequest) |
Instances
Eq GeolocationPermissionRequest Source # | |
GObject GeolocationPermissionRequest Source # | |
ManagedPtrNewtype GeolocationPermissionRequest Source # | |
Defined in GI.WebKit.Objects.GeolocationPermissionRequest toManagedPtr :: GeolocationPermissionRequest -> ManagedPtr GeolocationPermissionRequest | |
TypedObject GeolocationPermissionRequest Source # | |
HasParentTypes GeolocationPermissionRequest Source # | |
IsGValue (Maybe GeolocationPermissionRequest) Source # | Convert |
Defined in GI.WebKit.Objects.GeolocationPermissionRequest gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe GeolocationPermissionRequest -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe GeolocationPermissionRequest) | |
type ParentTypes GeolocationPermissionRequest Source # | |
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
(GObject o, IsDescendantOf GeolocationPermissionRequest o) => IsGeolocationPermissionRequest o Source # | |
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
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.