Interface GLSearchRequest.ResultsCallback

Enclosing class:
GLSearchRequest

public static interface GLSearchRequest.ResultsCallback
Callback invoked when an online or offline request finishes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the request or response parsing fails.
    void
    Called when parsed vector objects are ready.
  • Method Details

    • onResult

      void onResult(@NonNull GLMapVectorObjectList objects)
      Called when parsed vector objects are ready. Close the list when it is no longer needed. If you call GLMapVectorObjectList.toArray(), also close every returned object.
      Parameters:
      objects - search results
    • onError

      void onError(@NonNull GLMapError error)
      Called when the request or response parsing fails.
      Parameters:
      error - request, cancellation, or parsing error