Class PlacePickerViewModel
java.lang.Object
androidx.lifecycle.ViewModel
androidx.lifecycle.AndroidViewModel
com.trimblemaps.mapsdk.plugins.places.picker.viewmodel.PlacePickerViewModel
- All Implemented Interfaces:
retrofit2.Callback<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse>
public class PlacePickerViewModel extends androidx.lifecycle.AndroidViewModel implements retrofit2.Callback<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandroidx.lifecycle.MutableLiveData<com.trimblemaps.api.geocoding.v1.models.TrimbleMapsLocation> voidonFailure(retrofit2.Call<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse> call, Throwable throwable) voidonResponse(retrofit2.Call<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse> call, retrofit2.Response<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse> response) voidreverseGeocode(com.trimblemaps.geojson.Point point, PlacePickerOptions options) Methods inherited from class androidx.lifecycle.AndroidViewModel
getApplicationMethods inherited from class androidx.lifecycle.ViewModel
addCloseable, onCleared
-
Constructor Details
-
PlacePickerViewModel
public PlacePickerViewModel(@NonNull android.app.Application application)
-
-
Method Details
-
reverseGeocode
-
onResponse
public void onResponse(@NonNull retrofit2.Call<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse> call, @NonNull retrofit2.Response<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse> response) - Specified by:
onResponsein interfaceretrofit2.Callback<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse>
-
onFailure
public void onFailure(@NonNull retrofit2.Call<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse> call, Throwable throwable) - Specified by:
onFailurein interfaceretrofit2.Callback<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse>
-
getResults
public androidx.lifecycle.MutableLiveData<com.trimblemaps.api.geocoding.v1.models.TrimbleMapsLocation> getResults()
-