HERE Android SDK Developer's Guide

VenueListener

The interface VenueListener is a member of com.here.android.mpa.venues3d.VenueMapFragment.

Interface Summary

public static abstract interface VenueMapFragment.VenueListener

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in VenueListener
Methods

public abstract void onFloorChanged (Venue venue, Level oldLevel, Level newLevel)

This callback method is triggered when a floor is changed.

public abstract void onSpaceDeselected (Venue venue, Space space)

This callback method is triggered when a space is deselected.

public abstract void onSpaceSelected (Venue venue, Space space)

This callback method is triggered when a space is tapped.

public abstract void onVenueDeselected (Venue venue, DeselectionSource source)

This callback method is triggered when a venue is deselected.

public abstract void onVenueSelected (Venue venue)

This callback method is triggered when a venue is selected.

public abstract void onVenueTapped (Venue venue, float x, float y)

This callback method is triggered when a venue is tapped.

public abstract void onVenueVisibleInViewport (Venue venue, boolean visible)

This callback method is triggered when a venue becomes visible to triggering area, or when a venue disappears from the triggering area.

Interface Details

Method Details

public abstract void onFloorChanged (Venue venue, Level oldLevel, Level newLevel)

This callback method is triggered when a floor is changed.

Parameters:

  • venue

    The Venue where the floor is changed.

  • oldLevel

    The previously selected Level.

  • newLevel

    The currently selected Level.

public abstract void onSpaceDeselected (Venue venue, Space space)

This callback method is triggered when a space is deselected.

Parameters:

  • venue

    The Venue with deselected space.

  • space

    The deselected Space.

public abstract void onSpaceSelected (Venue venue, Space space)

This callback method is triggered when a space is tapped.

Parameters:

  • venue

    The Venue with selected space.

  • space

    The selected Space.

public abstract void onVenueDeselected (Venue venue, DeselectionSource source)

This callback method is triggered when a venue is deselected.

Parameters:

  • venue

    The deselected Venue.

  • source

    The source which has called deselection of the venue.

public abstract void onVenueSelected (Venue venue)

This callback method is triggered when a venue is selected.

Parameters:

  • venue

    The selected Venue.

public abstract void onVenueTapped (Venue venue, float x, float y)

This callback method is triggered when a venue is tapped.

Parameters:

  • venue

    The tapped Venue.

  • x

    The x screen position on the tapped point.

  • y

    The y screen position on the tapped point.

public abstract void onVenueVisibleInViewport (Venue venue, boolean visible)

This callback method is triggered when a venue becomes visible to triggering area, or when a venue disappears from the triggering area. The triggering area is centered to the viewport. The width of the triggering area is * 2/3 of the screen width and its height is the same as the width.

Parameters:

  • venue

    The Venue object or null if there are no visible venues nearby.

  • visible

    A flag indicating if the venue is visible or not.