Class SearchAddressFragment

java.lang.Object
SdkFragment
com.mapfactor.sdk.search.SearchAddressFragment

public class SearchAddressFragment extends SdkFragment
Search address fragment. Use directly or via SearchAddressView.
Since:
2.4
  • Constructor Details

    • SearchAddressFragment

      public SearchAddressFragment()
  • Method Details

    • addSearchResultClickListener

      public void addSearchResultClickListener(@NonNull SearchAddressFragment.SearchResultClickListener listener)
      Add fragment search result item clicked listener. Expected action is to show a popup menu with actions what to do with the search result (e.g. show on map).
      Parameters:
      listener - listener called when a search result item was clicked
      Since:
      2.4
    • removeSearchResultClickListener

      public void removeSearchResultClickListener(@NonNull SearchAddressFragment.SearchResultClickListener listener)
      Remove fragment search result item clicked listener.
      Parameters:
      listener - listener to remove
      Since:
      2.4
    • setSpeechRecognitionButtonVisibility

      public void setSpeechRecognitionButtonVisibility(boolean visible)
      Change speech button visibility
      Parameters:
      visible - true/false to make the speech recognition button visible/hidden
      Since:
      4.6
    • isSpeechRecognitionButtonVisible

      public boolean isSpeechRecognitionButtonVisible()
      Test whether the speech recognition button is visible
      Returns:
      true/false when the speech recognition button is/is not visible
      Since:
      4.6