PlaceActionProvider

public interface PlaceActionProvider


Provides actions to be displayed in the place details widget.

Summary

Nested types

Listener for place action changes.

Public methods

abstract void

Registers the listener to be notified when actions change.

default @NonNull List<@NonNull CornerPlaceAction>

Returns the list of place actions to be displayed in the corner of the widget.

default @NonNull List<@NonNull PlaceAction>

Returns the list of place actions to be displayed inline with the widget.

abstract void

Unregisters the given listener.

Public methods

addPlaceActionsChangedListener

abstract void addPlaceActionsChangedListener(
    @NonNull PlaceActionProvider.OnChangedListener listener
)

Registers the listener to be notified when actions change.

getCornerPlaceActions

default @NonNull List<@NonNull CornerPlaceActiongetCornerPlaceActions(@NonNull Place place)

Returns the list of place actions to be displayed in the corner of the widget. By default, returns an empty list.

getMainPlaceActions

default @NonNull List<@NonNull PlaceActiongetMainPlaceActions(@NonNull Place place)

Returns the list of place actions to be displayed inline with the widget. By default, returns an empty list.

removePlaceActionsChangedListener

abstract void removePlaceActionsChangedListener(
    @NonNull PlaceActionProvider.OnChangedListener listener
)

Unregisters the given listener.