Package com.castlabs.android.drm

# Interface DrmEventListener

All Known Implementing Classes:
  `ExtendedTrackSelector`

public interface DrmEventListener
A listener interface. Implementations can be added to the `PlayerController` to be informed about license deliveries.

Since:
  3.0.2

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onLicenseKeysChanged()`
  Called when keys are changed e.g.
  `void`
  `onLicenseKeysLoaded()`
  Called when a key was loaded successfully
  `void`
  `onLicenseLoadError(int currentAttempt, int maxAttempts, DownloadException downloadException)`
  Called when license load error occurred

- ## Method Details

  - ### onLicenseKeysLoaded

    void onLicenseKeysLoaded()
    Called when a key was loaded successfully

  - ### onLicenseKeysChanged

    void onLicenseKeysChanged()
    Called when keys are changed e.g. when license is renewed or expires

  - ### onLicenseLoadError

    void onLicenseLoadError(int currentAttempt, int maxAttempts, @Nullable DownloadException downloadException)
    Called when license load error occurred
    Parameters:
      `currentAttempt` - The current loading attempt
      `maxAttempts` - The max number of attempts
      `downloadException` - The download exception