libretro.drivers.location.driver¶
Protocol definition for geolocation drivers.
See also
libretro.api.locationThe matching
ctypestypes and callback definitions.
Classes
Protocol for drivers that supply geographic position updates to a core. |
|
A geographic position reported by a |
- class LocationDriver[source]¶
Bases:
ProtocolProtocol for drivers that supply geographic position updates to a core.
See also
libretro.api.locationThe matching
ctypestypes and callback definitions.
- abstractmethod start()[source]¶
Begin reporting geographic position updates to the core.
Called by the core through
retro_location_callback.start.See also
retro_location_start_tThe C function pointer type whose signature this method implements.
- abstractmethod stop()[source]¶
Stop reporting geographic position updates to the core.
Called by the core through
retro_location_callback.stop.See also
retro_location_stop_tThe C function pointer type whose signature this method implements.
- Return type:
- abstractmethod get_position()[source]¶
Return the most recently observed geographic position.
See also
retro_location_get_position_tThe C function pointer type whose signature this method implements.
- abstractmethod set_interval(interval, distance)[source]¶
Configure how frequently the driver should produce position updates.
- Parameters:
See also
retro_location_set_interval_tThe C function pointer type whose signature this method implements.
- Return type:
- abstract property initialized¶
Callback the driver invokes after it finishes initializing.
Registered by the core through
retro_location_callback.initialized;Noneif the core has not registered one.- Parameters:
value – The callback to invoke after initialization, or
Noneto clear it.
See also
retro_location_lifetime_status_tThe C function pointer type that this attribute holds.
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- abstract property deinitialized¶
Callback the driver invokes immediately before it deinitializes.
Registered by the core through
retro_location_callback.deinitialized;Noneif the core has not registered one.- Parameters:
value – The callback to invoke before deinitialization, or
Noneto clear it.
See also
retro_location_lifetime_status_tThe C function pointer type that this attribute holds.