Package 

Interface IConditionService

    • Method Summary

      Modifier and Type Method Description
      abstract Unit getLocalByCoordinate(String lon, String lat, IResultCallback<<ERROR CLASS>> callback) Get location information by latitude and longitude
      abstract Unit getLocalCityAll(String countryCode, IResultCallback<List<<ERROR CLASS>>> callback) Get the city list of current country
      abstract Unit getLocalByCityId(Long cityId, IResultCallback<<ERROR CLASS>> callback) Get location information by city id
      abstract Unit reportPermissionAndLatlon(Boolean hasPositionPermission, String lon, String lat) Reporting location and location permissions
      abstract Unit getConditionAll(Long relationId, Boolean showFahrenheit, String windSpeedUnit, IResultCallback<<ERROR CLASS>> callback) Get a list of conditions
      abstract Unit onDestroy() when destroy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLocalByCoordinate

         abstract Unit getLocalByCoordinate(String lon, String lat, IResultCallback<<ERROR CLASS>> callback)

        Get location information by latitude and longitude

        Parameters:
        lon - longitude
        lat - latitude
        callback - callback IResultCallback, LocationCity
      • getLocalCityAll

         abstract Unit getLocalCityAll(String countryCode, IResultCallback<List<<ERROR CLASS>>> callback)

        Get the city list of current country

        Parameters:
        countryCode - country code, reference ISO 3166-1
        callback - callback IResultCallback, LocationCity
      • reportPermissionAndLatlon

         abstract Unit reportPermissionAndLatlon(Boolean hasPositionPermission, String lon, String lat)

        Reporting location and location permissions

        Parameters:
        hasPositionPermission - Whether to grant location permissions
        lon - longitude
        lat - latitude
      • getConditionAll

         abstract Unit getConditionAll(Long relationId, Boolean showFahrenheit, String windSpeedUnit, IResultCallback<<ERROR CLASS>> callback)

        Get a list of conditions

        Parameters:
        relationId - the relation id of current space node
        showFahrenheit - Whether to show Fahrenheit
        windSpeedUnit - wind speed unit
        callback - callback IResultCallback, ConditionItemList
      • onDestroy

         abstract Unit onDestroy()

        when destroy