PlaceListFragmentListener

public interface PlaceListFragmentListener


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 AdvancedPlaceListFragment.

Summary

Public methods

abstract void

Invoked when the places are 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 are successfully loaded.

onPlaceSelected

default void onPlaceSelected(@NonNull Place place)

Invoked when a place is selected. If the AdvancedPlaceListFragment is configured to be 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.