gi-webkit2-4.0.26: WebKit2 bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Objects.GeolocationManager

Description

No description available in the introspection data.

Synopsis

Exported types

newtype GeolocationManager Source #

Memory-managed wrapper type.

Constructors

GeolocationManager (ManagedPtr GeolocationManager) 

Instances

Instances details
Eq GeolocationManager Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationManager

GObject GeolocationManager Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationManager

ManagedPtrNewtype GeolocationManager Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationManager

TypedObject GeolocationManager Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationManager

Methods

glibType :: IO GType

IsGValue GeolocationManager Source #

Convert GeolocationManager to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.WebKit2.Objects.GeolocationManager

Methods

toGValue :: GeolocationManager -> IO GValue

fromGValue :: GValue -> IO GeolocationManager

HasParentTypes GeolocationManager Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationManager

type ParentTypes GeolocationManager Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationManager

type ParentTypes GeolocationManager = '[Object]

class (GObject o, IsDescendantOf GeolocationManager o) => IsGeolocationManager o Source #

Type class for types which can be safely cast to GeolocationManager, for instance with toGeolocationManager.

Instances

Instances details
(GObject o, IsDescendantOf GeolocationManager o) => IsGeolocationManager o Source # 
Instance details

Defined in GI.WebKit2.Objects.GeolocationManager

toGeolocationManager :: (MonadIO m, IsGeolocationManager o) => o -> m GeolocationManager Source #

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

Methods

Overloaded methods

failed

geolocationManagerFailed Source #

Arguments

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

manager: a GeolocationManager

-> Text

errorMessage: the error message

-> m () 

Notify manager that determining the position failed.

Since: 2.26

getEnableHighAccuracy

geolocationManagerGetEnableHighAccuracy Source #

Arguments

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

manager: a GeolocationManager

-> m Bool 

Get whether high accuracy is enabled.

Since: 2.26

updatePosition

geolocationManagerUpdatePosition Source #

Arguments

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

manager: a GeolocationManager

-> GeolocationPosition

position: a GeolocationPosition

-> m () 

Notify manager that position has been updated to position.

Since: 2.26

Properties

enableHighAccuracy

Whether high accuracy is enabled. This is a read-only property that will be set to True when a GeolocationManager needs to get accurate position updates. You can connect to notify[enableHighAccuracy](#g:signal:enableHighAccuracy) signal to monitor it.

Since: 2.26

getGeolocationManagerEnableHighAccuracy :: (MonadIO m, IsGeolocationManager o) => o -> m Bool Source #

Get the value of the “enable-high-accuracy” property. When overloading is enabled, this is equivalent to

get geolocationManager #enableHighAccuracy

Signals

start

type C_GeolocationManagerStartCallback = Ptr () -> Ptr () -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type GeolocationManagerStartCallback Source #

Arguments

 = IO Bool

Returns: True to stop other handlers from being invoked for the event. False to propagate the event further.

The signal is emitted to notify that manager needs to start receiving position updates. After this signal is emitted the user should provide the updates using geolocationManagerUpdatePosition every time the position changes, or use geolocationManagerFailed in case it isn't possible to determine the current position.

If the signal is not handled, WebKit will try to determine the position using GeoClue if available.

Since: 2.26

afterGeolocationManagerStart :: (IsGeolocationManager a, MonadIO m) => a -> GeolocationManagerStartCallback -> m SignalHandlerId Source #

Connect a signal handler for the start signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after geolocationManager #start callback

onGeolocationManagerStart :: (IsGeolocationManager a, MonadIO m) => a -> GeolocationManagerStartCallback -> m SignalHandlerId Source #

Connect a signal handler for the start signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on geolocationManager #start callback

stop

type C_GeolocationManagerStopCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type GeolocationManagerStopCallback = IO () Source #

The signal is emitted to notify that manager doesn't need to receive position updates anymore.

Since: 2.26

afterGeolocationManagerStop :: (IsGeolocationManager a, MonadIO m) => a -> GeolocationManagerStopCallback -> m SignalHandlerId Source #

Connect a signal handler for the stop signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after geolocationManager #stop callback

onGeolocationManagerStop :: (IsGeolocationManager a, MonadIO m) => a -> GeolocationManagerStopCallback -> m SignalHandlerId Source #

Connect a signal handler for the stop signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on geolocationManager #stop callback