prepareForReload

open suspend fun prepareForReload(): AdResult<Unit>

Method for cleaning the renderer data and states before reloading.

This method is called every time the application calls the Advertisement.reload method. It can be useful for clearing some data or changing the state of your renderer to the initial state.

After completing this method, your renderer can call:

  • configure – if the same renderer can be updated with new data.

  • dispose – if the renderer is no longer needed.

This method is optional, so you can ignore it.