# Interface SuccessCallback<T>

All Known Subinterfaces:
  `Callback<T>`

All Known Implementing Classes:
  `CallbackAdapter`

public interface SuccessCallback<T>
Simple interface that allows asynchronous code to perform a parameterized callback in a similar way to GWT's callback interface. This is the base interface for `com.codename1.util.Callback` where the logic is broken down to single method interfaces so Java 8 lambdas can be used.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onSucess(T value)`
  Invoked when the async method returns with a successful value

- ## Method Details

  - ### onSucess

    void onSucess(T value)

    Invoked when the async method returns with a successful value

    ###### Parameters

    - `value`: the value