-
public interface IConditionServiceScenario condition capability
-
-
Method Summary
Modifier and Type Method Description abstract UnitgetLocalByCoordinate(String lon, String lat, IResultCallback<<ERROR CLASS>> callback)Get location information by latitude and longitude abstract UnitgetLocalCityAll(String countryCode, IResultCallback<List<<ERROR CLASS>>> callback)Get the city list of current country abstract UnitgetLocalByCityId(Long cityId, IResultCallback<<ERROR CLASS>> callback)Get location information by city id abstract UnitreportPermissionAndLatlon(Boolean hasPositionPermission, String lon, String lat)Reporting location and location permissions abstract UnitgetConditionAll(Long relationId, Boolean showFahrenheit, String windSpeedUnit, IResultCallback<<ERROR CLASS>> callback)Get a list of conditions abstract UnitgetExtendConditions(Long relationId, IResultCallback<<ERROR CLASS><<ERROR CLASS>>> callback)Get the extended condition list abstract UnitgetExtendConditionsV2(Long relationId, String appVersion, IResultCallback<<ERROR CLASS><<ERROR CLASS>>> callback)Get the extended condition list abstract UnitonDestroy()when destroy -
-
Method Detail
-
getLocalByCoordinate
abstract Unit getLocalByCoordinate(String lon, String lat, IResultCallback<<ERROR CLASS>> callback)
Get location information by latitude and longitude
- Parameters:
lon- longitudelat- latitudecallback- 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-1callback- callback IResultCallback, LocationCity
-
getLocalByCityId
abstract Unit getLocalByCityId(Long cityId, IResultCallback<<ERROR CLASS>> callback)
Get location information by city id
- Parameters:
cityId- the id of citycallback- callback IResultCallback, LocationCity
-
reportPermissionAndLatlon
abstract Unit reportPermissionAndLatlon(Boolean hasPositionPermission, String lon, String lat)
Reporting location and location permissions
- Parameters:
hasPositionPermission- Whether to grant location permissionslon- longitudelat- 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 nodeshowFahrenheit- Whether to show FahrenheitwindSpeedUnit- wind speed unitcallback- callback IResultCallback, ConditionItemList
-
getExtendConditions
abstract Unit getExtendConditions(Long relationId, IResultCallback<<ERROR CLASS><<ERROR CLASS>>> callback)
Get the extended condition list
- Parameters:
relationId- the relation id of current space nodecallback- callback IResultCallback, ConditionItemList
-
getExtendConditionsV2
abstract Unit getExtendConditionsV2(Long relationId, String appVersion, IResultCallback<<ERROR CLASS><<ERROR CLASS>>> callback)
Get the extended condition list
- Parameters:
relationId- the relation id of current space nodeappVersion- app versioncallback- callback IResultCallback, ConditionItemList
-
onDestroy
abstract Unit onDestroy()
when destroy
-
-
-
-