Interface Handler<T>


public interface Handler<T>
Interface to receive result of an async request
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Handler<Object>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Callback that is called in case any error happens
    void
    onSuccess(T obtained)
    Will be invoked if the request finished successfully
  • Field Details

  • Method Details

    • onSuccess

      void onSuccess(T obtained)
      Will be invoked if the request finished successfully
      Parameters:
      obtained - data to return
    • onFailure

      void onFailure(Error error)
      Callback that is called in case any error happens