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 |
No description available in the introspection data.
Synopsis
- newtype GeolocationManager = GeolocationManager (ManagedPtr GeolocationManager)
- class (GObject o, IsDescendantOf GeolocationManager o) => IsGeolocationManager o
- toGeolocationManager :: (MonadIO m, IsGeolocationManager o) => o -> m GeolocationManager
- geolocationManagerFailed :: (HasCallStack, MonadIO m, IsGeolocationManager a) => a -> Text -> m ()
- geolocationManagerGetEnableHighAccuracy :: (HasCallStack, MonadIO m, IsGeolocationManager a) => a -> m Bool
- geolocationManagerUpdatePosition :: (HasCallStack, MonadIO m, IsGeolocationManager a) => a -> GeolocationPosition -> m ()
- getGeolocationManagerEnableHighAccuracy :: (MonadIO m, IsGeolocationManager o) => o -> m Bool
- type GeolocationManagerStartCallback = IO Bool
- afterGeolocationManagerStart :: (IsGeolocationManager a, MonadIO m) => a -> ((?self :: a) => GeolocationManagerStartCallback) -> m SignalHandlerId
- onGeolocationManagerStart :: (IsGeolocationManager a, MonadIO m) => a -> ((?self :: a) => GeolocationManagerStartCallback) -> m SignalHandlerId
- type GeolocationManagerStopCallback = IO ()
- afterGeolocationManagerStop :: (IsGeolocationManager a, MonadIO m) => a -> ((?self :: a) => GeolocationManagerStopCallback) -> m SignalHandlerId
- onGeolocationManagerStop :: (IsGeolocationManager a, MonadIO m) => a -> ((?self :: a) => GeolocationManagerStopCallback) -> m SignalHandlerId
Exported types
newtype GeolocationManager Source #
Memory-managed wrapper type.
Instances
Eq GeolocationManager Source # | |
Defined in GI.WebKit2.Objects.GeolocationManager (==) :: GeolocationManager -> GeolocationManager -> Bool # (/=) :: GeolocationManager -> GeolocationManager -> Bool # | |
GObject GeolocationManager Source # | |
Defined in GI.WebKit2.Objects.GeolocationManager | |
ManagedPtrNewtype GeolocationManager Source # | |
TypedObject GeolocationManager Source # | |
Defined in GI.WebKit2.Objects.GeolocationManager | |
HasParentTypes GeolocationManager Source # | |
Defined in GI.WebKit2.Objects.GeolocationManager | |
IsGValue (Maybe GeolocationManager) Source # | Convert |
Defined in GI.WebKit2.Objects.GeolocationManager gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe GeolocationManager -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe GeolocationManager) # | |
type ParentTypes GeolocationManager Source # | |
Defined in GI.WebKit2.Objects.GeolocationManager |
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
(GObject o, IsDescendantOf GeolocationManager o) => IsGeolocationManager o Source # | |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, failed, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, updatePosition, watchClosure.
Getters
getData, getEnableHighAccuracy, getProperty, getQdata.
Setters
failed
geolocationManagerFailed Source #
:: (HasCallStack, MonadIO m, IsGeolocationManager a) | |
=> a |
|
-> Text |
|
-> m () |
Notify manager
that determining the position failed.
Since: 2.26
getEnableHighAccuracy
geolocationManagerGetEnableHighAccuracy Source #
:: (HasCallStack, MonadIO m, IsGeolocationManager a) | |
=> a |
|
-> m Bool |
Get whether high accuracy is enabled.
Since: 2.26
updatePosition
geolocationManagerUpdatePosition Source #
:: (HasCallStack, MonadIO m, IsGeolocationManager a) | |
=> 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 GeolocationManagerStartCallback Source #
= IO Bool | Returns: |
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 -> ((?self :: 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
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onGeolocationManagerStart :: (IsGeolocationManager a, MonadIO m) => a -> ((?self :: 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 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 -> ((?self :: 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
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onGeolocationManagerStop :: (IsGeolocationManager a, MonadIO m) => a -> ((?self :: 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