Implementing an AppIoTListener

Last modified: Jul 5, 2019 @ 06:40

The init method is called by the SDK when AppIoTGateway.start() method is called by the application.

Extend BaseAppIoTListener to have basic support. Callbacks not overridden will result in an activity log message in DDM stating Not implemented.

public class MyAppIoTListener extends BaseAppIoTListener {
    private AppIoTGateway gateway;

    public MyAppIoTListener() {
    }

    @Override
    public void init(AppIoTGateway gateway) throws InitializationException {
        this.gateway = gateway;
    }
}