Package com.castlabs.android.adverts

# Interface AdLoader.Listener

Enclosing interface:
  `AdLoader`

public static interface AdLoader.Listener
Listener for `AdLoader` events.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onError(Exception error)`
  Called when an error occurs e.g.
  `void`
  `onMediaSource(com.google.android.exoplayer2.source.MediaSource mediaSource)`
  Called when media source is successfully created

- ## Method Details

  - ### onMediaSource

    void onMediaSource(@NonNull com.google.android.exoplayer2.source.MediaSource mediaSource)
    Called when media source is successfully created
    Parameters:
      `mediaSource` - The media source

  - ### onError

    void onError(@NonNull Exception error)
    Called when an error occurs e.g. when creating media source
    Parameters:
      `error` - The error