WeatherProvider

Constructors

Link copied to clipboard
constructor(config: WeatherPluginConfig)

Functions

Link copied to clipboard
open fun attachInfo(p0: Context, p1: ProviderInfo)
Link copied to clipboard
open fun bulkInsert(p0: Uri, p1: Array<ContentValues>): Int
Link copied to clipboard
open fun call(p0: String, p1: String, p2: String?, p3: Bundle?): Bundle?
open override fun call(method: String, arg: String?, extras: Bundle?): Bundle?
Link copied to clipboard
open fun canonicalize(p0: Uri): Uri?
Link copied to clipboard
Link copied to clipboard
open fun delete(p0: Uri, p1: Bundle?): Int
open override fun delete(uri: Uri, selection: String?, selectionArgs: Array<out String>?): Int
Link copied to clipboard
open fun dump(p0: FileDescriptor, p1: PrintWriter, p2: Array<String>)
Link copied to clipboard
open suspend fun findLocations(query: String, lang: String): List<WeatherLocation>

Find locations based on a query string. The default implementation uses the Android Geocoder and returns a list of lat lon locations. It also supports lat/lon coordinates in the format "lon name" or "lon".

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend fun getLocationName(lat: Double, lon: Double): String

Get the name of a location based on lat/lon coordinates. The default implementation uses the Android Geocoder. If the Geocoder is not available, the lat/lon coordinates are formatted as a string.

Link copied to clipboard
Link copied to clipboard
open suspend fun getPluginState(): PluginState
Link copied to clipboard
Link copied to clipboard
open fun getStreamTypes(p0: Uri, p1: String): Array<String>?
Link copied to clipboard
open override fun getType(uri: Uri): String?
Link copied to clipboard
open fun getTypeAnonymous(p0: Uri): String?
Link copied to clipboard
abstract suspend fun getWeatherData(location: WeatherLocation, lang: String?): List<Forecast>?

Get weather data for a set location. This is called when the user has set the location to a custom location.

abstract suspend fun getWeatherData(lat: Double, lon: Double, lang: String?): List<Forecast>?

Get weather data for the current location. This is called when the user has set the location to "Current location".

Link copied to clipboard
Link copied to clipboard
open fun insert(p0: Uri, p1: ContentValues?, p2: Bundle?): Uri?
open override fun insert(uri: Uri, values: ContentValues?): Uri?
Link copied to clipboard
Link copied to clipboard
open override fun onConfigurationChanged(p0: Configuration)
Link copied to clipboard
open override fun onCreate(): Boolean
Link copied to clipboard
open override fun onLowMemory()
Link copied to clipboard
open override fun onTrimMemory(p0: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun query(p0: Uri, p1: Array<String>?, p2: String?, p3: Array<String>?, p4: String?, p5: CancellationSignal?): Cursor?
open override fun query(uri: Uri, projection: Array<out String>?, queryArgs: Bundle?, cancellationSignal: CancellationSignal?): Cursor?
open override fun query(uri: Uri, projection: Array<out String>?, selection: String?, selectionArgs: Array<out String>?, sortOrder: String?): Cursor?
Link copied to clipboard
open fun refresh(p0: Uri, p1: Bundle?, p2: CancellationSignal?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun shutdown()
Link copied to clipboard
open fun uncanonicalize(p0: Uri): Uri?
Link copied to clipboard
open fun update(p0: Uri, p1: ContentValues?, p2: Bundle?): Int
open override fun update(uri: Uri, values: ContentValues?, selection: String?, selectionArgs: Array<out String>?): Int