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.
- NucleiCallback
- AuthCallback
- 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);
}
...
}