Interface Request.CompletionListener

  • Enclosing class:
    Request

    public static interface Request.CompletionListener
    • Method Detail

      • onRequestCompleted

        void onRequestCompleted​(Request request,
                                java.util.List<Place> results)
        Notifies the listener that the request has been completed.
        Parameters:
        request - Request used to get this search response.
        results - The results parameter contains the search results.
      • onRequestFailed

        void onRequestFailed​(Request request,
                             RequestError error)
        Notifies the listener that the request has failed.
        Parameters:
        request - The request used to get this search response.
        error - The error.