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
    Constructor
    Description
    PlacePickerViewModel(android.app.Application application)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    androidx.lifecycle.MutableLiveData<com.trimblemaps.api.geocoding.v1.models.TrimbleMapsLocation>
     
    void
    onFailure(retrofit2.Call<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse> call, Throwable throwable)
     
    void
    onResponse(retrofit2.Call<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse> call, retrofit2.Response<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse> response)
     
    void
    reverseGeocode(com.trimblemaps.geojson.Point point, PlacePickerOptions options)
     

    Methods inherited from class androidx.lifecycle.AndroidViewModel

    getApplication

    Methods inherited from class androidx.lifecycle.ViewModel

    addCloseable, onCleared

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlacePickerViewModel

      public PlacePickerViewModel(@NonNull android.app.Application application)
  • Method Details

    • reverseGeocode

      public void reverseGeocode(com.trimblemaps.geojson.Point point, PlacePickerOptions options)
    • 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:
      onResponse in interface retrofit2.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:
      onFailure in interface retrofit2.Callback<com.trimblemaps.api.geocoding.v1.models.GeocodingResponse>
    • getResults

      public androidx.lifecycle.MutableLiveData<com.trimblemaps.api.geocoding.v1.models.TrimbleMapsLocation> getResults()