Package com.castlabs.android.adverts

## Interface AdLoader.Listener

- Enclosing interface:
    AdLoader

      public static interface AdLoader.Listener

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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 Detail

    - #### 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