WebKit2.GeolocationPosition¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class WebKit2.GeolocationPosition¶
An opaque struct to provide position updates to a
WebKit2.GeolocationManager
.WebKit2.GeolocationPosition
is an opaque struct used to provide position updates to aWebKit2.GeolocationManager
usingWebKit2.GeolocationManager.update_position
().New in version 2.26.
- classmethod new(latitude, longitude, accuracy)¶
- Parameters:
- Returns:
a newly created
WebKit2.GeolocationPosition
- Return type:
Create a new
WebKit2.GeolocationPosition
.New in version 2.26.
- copy()¶
- Returns:
a copy of self
- Return type:
Make a copy of the
WebKit2.GeolocationPosition
.New in version 2.26.
- free()¶
Free the
WebKit2.GeolocationPosition
New in version 2.26.
- set_altitude(altitude)¶
- Parameters:
altitude (
float
) – altitude in meters
Set the self altitude.
New in version 2.26.
- set_altitude_accuracy(altitude_accuracy)¶
- Parameters:
altitude_accuracy (
float
) – accuracy of position altitude in meters
Set the accuracy of self altitude.
New in version 2.26.
- set_heading(heading)¶
- Parameters:
heading (
float
) – heading in degrees
Set the self heading.
Set the self heading, as a positive angle between the direction of movement and the North direction, in clockwise direction.
New in version 2.26.