Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface AdCallback<T>

Single-method callback used throughout the advertising API for asynchronous results (initialization, consent, native ad loading). It is a functional interface, so it can be supplied as a lambda:

AdManager.initialize(config, ready -> {
    if (ready) {
        interstitial.load();
    }
});

The value is always delivered on the Codename One EDT.

Methods

public abstract void onResult(T value)Invoked once with the asynchronous result.

Method details

onResult

public abstract void onResult(T value)
Invoked once with the asynchronous result.

Parameters

value T
the result value