PlaceSearchFragmentListener

public interface PlaceSearchFragmentListener


A listener with callbacks that are invoked when places are loaded or fail to load, or a place in the list is selected in the PlaceSearchFragment.

Summary

Public methods

abstract void

Invoked when the places was successfully loaded.

default void

Invoked when a place is selected.

abstract void

Invoked when the places failed to load due to an exception.

Public methods

onLoad

abstract void onLoad(@NonNull List<@NonNull Place> places)

Invoked when the places was successfully loaded.

onPlaceSelected

default void onPlaceSelected(@NonNull Place place)

Invoked when a place is selected. If the PlaceSearchFragment is configured to unselectable, this method will never be invoked.

onRequestError

abstract void onRequestError(@NonNull Exception e)

Invoked when the places failed to load due to an exception.