WeatherService

Weather Service. Provides information about current and forecast weather conditions based on geographical coordinate

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Service limits

Link copied to clipboard

Max day for daily forecast limit

Link copied to clipboard

Max hours for hourly forecast limit

Link copied to clipboard

HTTP data transfer statistics

Functions

Link copied to clipboard
fun cancel()

Cancel the ongoing weather forecast requests

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
fun getCurrent(coords: CoordinatesList, onCompleted: OnWeatherForecastCompleted, onStarted: OnStarted? = null): Int

Async gets current weather for a list of coordinates

Link copied to clipboard
fun getDailyForecast(days: Int, coords: CoordinatesList, onCompleted: OnWeatherForecastCompleted, onStarted: OnStarted? = null): Int

Async gets daily forecast weather for a list of coordinates

Link copied to clipboard
fun getForecast(coords: TimeDistanceCoordinateList, onCompleted: OnWeatherForecastCompleted, onStarted: OnStarted? = null): Int

Async gets forecast weather for a list of coordinates and timestamps

Link copied to clipboard
fun getHourlyForecast(hours: Int, coords: CoordinatesList, onCompleted: OnWeatherForecastCompleted, onStarted: OnStarted? = null): Int

Async gets hourly forecast weather for a list of coordinates

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if: