Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
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 C_GeolocationManagerStartCallback = Ptr () -> Ptr () -> IO CInt
- type GeolocationManagerStartCallback = IO Bool
- afterGeolocationManagerStart :: (IsGeolocationManager a, MonadIO m) => a -> GeolocationManagerStartCallback -> m SignalHandlerId
- genClosure_GeolocationManagerStart :: MonadIO m => GeolocationManagerStartCallback -> m (GClosure C_GeolocationManagerStartCallback)
- mk_GeolocationManagerStartCallback :: C_GeolocationManagerStartCallback -> IO (FunPtr C_GeolocationManagerStartCallback)
- noGeolocationManagerStartCallback :: Maybe GeolocationManagerStartCallback
- onGeolocationManagerStart :: (IsGeolocationManager a, MonadIO m) => a -> GeolocationManagerStartCallback -> m SignalHandlerId
- wrap_GeolocationManagerStartCallback :: GeolocationManagerStartCallback -> C_GeolocationManagerStartCallback
- type C_GeolocationManagerStopCallback = Ptr () -> Ptr () -> IO ()
- type GeolocationManagerStopCallback = IO ()
- afterGeolocationManagerStop :: (IsGeolocationManager a, MonadIO m) => a -> GeolocationManagerStopCallback -> m SignalHandlerId
- genClosure_GeolocationManagerStop :: MonadIO m => GeolocationManagerStopCallback -> m (GClosure C_GeolocationManagerStopCallback)
- mk_GeolocationManagerStopCallback :: C_GeolocationManagerStopCallback -> IO (FunPtr C_GeolocationManagerStopCallback)
- noGeolocationManagerStopCallback :: Maybe GeolocationManagerStopCallback
- onGeolocationManagerStop :: (IsGeolocationManager a, MonadIO m) => a -> GeolocationManagerStopCallback -> m SignalHandlerId
- wrap_GeolocationManagerStopCallback :: GeolocationManagerStopCallback -> C_GeolocationManagerStopCallback
Exported types
newtype GeolocationManager Source #
Memory-managed wrapper type.
GeolocationManager (ManagedPtr GeolocationManager) |
Instances
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
Overloaded methods
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 C_GeolocationManagerStartCallback = Ptr () -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
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 -> 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
genClosure_GeolocationManagerStart :: MonadIO m => GeolocationManagerStartCallback -> m (GClosure C_GeolocationManagerStartCallback) Source #
Wrap the callback into a GClosure
.
mk_GeolocationManagerStartCallback :: C_GeolocationManagerStartCallback -> IO (FunPtr C_GeolocationManagerStartCallback) Source #
Generate a function pointer callable from C code, from a C_GeolocationManagerStartCallback
.
noGeolocationManagerStartCallback :: Maybe GeolocationManagerStartCallback Source #
A convenience synonym for
.Nothing
:: Maybe
GeolocationManagerStartCallback
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
wrap_GeolocationManagerStartCallback :: GeolocationManagerStartCallback -> C_GeolocationManagerStartCallback Source #
Wrap a GeolocationManagerStartCallback
into a C_GeolocationManagerStartCallback
.
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
genClosure_GeolocationManagerStop :: MonadIO m => GeolocationManagerStopCallback -> m (GClosure C_GeolocationManagerStopCallback) Source #
Wrap the callback into a GClosure
.
mk_GeolocationManagerStopCallback :: C_GeolocationManagerStopCallback -> IO (FunPtr C_GeolocationManagerStopCallback) Source #
Generate a function pointer callable from C code, from a C_GeolocationManagerStopCallback
.
noGeolocationManagerStopCallback :: Maybe GeolocationManagerStopCallback Source #
A convenience synonym for
.Nothing
:: Maybe
GeolocationManagerStopCallback
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