Functions

file_cache_error_quark() int
get_user_agent() str

Gets the user agent libshumate will use for all requests.

This API is not thread-safe and should only be called from the main thread.

Returns:

the user agent

set_user_agent(new_user_agent: str | None = None) None

Sets the user agent that libshumate uses for all requests.

This API is not thread-safe and should only be called from the main thread.

Parameters:

new_user_agent – the new user agent, or None to reset to the default

style_error_quark() int
tile_downloader_error_quark() int