Skip to main content

Nuclei Callbacks

Basic Callbacks

The communication between Nuclei SDK and your application will happen through a callback mechanism. The following interfaces have to be implemented in order to aid that mechanism.

  1. NucleiCallback
  2. AuthCallback
  3. NucleiAnalyticsCallback

Please ensure that these callbacks have been implemented in your application class.

The application class should look like this,

class Application extends MultiDexApplication
implements AuthCallback, NucleiCallback, NucleiAnalyticsCallback {

...

private void initNuclei() {

nucleiSDK = NucleiSDK.bind(this)
...
.setAnalyticsCallback(this)
...
.init();

nucleiSDK.setNucleiCallback(this);
nucleiSDK.setAuthCallback(this);
}
...
}