Class GLSearchDisplayInfo

java.lang.Object
globus.glsearch.GLSearchDisplayInfo
All Implemented Interfaces:
AutoCloseable

public final class GLSearchDisplayInfo extends Object implements AutoCloseable
Display data for a search result row.

Returned by GLSearch.GetDisplayInfo(globus.glmap.GLMapVectorObject, globus.glmap.GLMapLocaleSettings). Online and offline search results are normalized to the same fields: online results expose the data prepared by the search server, offline results are built locally with the same rules. Close this object after copying the values needed by the UI.

  • Field Details

    • title

      @Nullable public final GLMapValue title
      Primary row text.
    • secondaryText

      @Nullable public final GLMapValue secondaryText
      Short address context displayed below the title.
    • types

      @NonNull public final String[] types
      Result types, for example ["poi", "cafe"].
    • category

      @Nullable public final GLSearchCategory category
      Category of the object. Provides the icon name via GLSearchCategory.getIconName().
  • Method Details

    • close

      public void close()
      Closes the native title, secondary text, and category values owned by this display info.
      Specified by:
      close in interface AutoCloseable