Class GeolocationManager
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class GeolocationManager : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
GeolocationManager
- Implements
- Inherited Members
Constructors
GeolocationManager(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public GeolocationManager(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
GeolocationManager(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected GeolocationManager(CreationData data)
Parameters
dataCreationData
GeolocationManager(GeolocationManagerHandle)
protected GeolocationManager(GeolocationManagerHandle handle)
Parameters
handleGeolocationManagerHandle
Fields
EnableHighAccuracyPropertyDefinition
public static readonly Property<bool, GeolocationManager> EnableHighAccuracyPropertyDefinition
Field Value
StartSignal
Signal Descriptor for OnStart.
public static readonly ReturningSignal<GeolocationManager, bool> StartSignal
Field Value
StopSignal
Signal Descriptor for OnStop.
public static readonly Signal<GeolocationManager> StopSignal
Field Value
Properties
EnableHighAccuracy
public bool EnableHighAccuracy { get; }
Property Value
Methods
Failed(string)
[Version("2.26")]
public void Failed(string errorMessage)
Parameters
errorMessagestring
GetEnableHighAccuracy()
[Version("2.26")]
public bool GetEnableHighAccuracy()
Returns
GetGType()
public static Type GetGType()
Returns
NewFromPointer(nint, bool)
Creates a new managed GeolocationManager instance for a given pointer.
public static GeolocationManager NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new GeolocationManager and sets the properties specified by the construct arguments.
public static GeolocationManager NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
UpdatePosition(GeolocationPosition)
[Version("2.26")]
public void UpdatePosition(GeolocationPosition position)
Parameters
positionGeolocationPosition
Events
OnStart
public event ReturningSignalHandler<GeolocationManager, bool> OnStart
Event Type
OnStop
public event SignalHandler<GeolocationManager> OnStop