Package com.castlabs.android.drm

## Interface ProvisioningManager.ProvisionedCallback

- Enclosing class:
    ProvisioningManager

      public static interface ProvisioningManager.ProvisionedCallback

  You need to provide an implementation of this interface when you are triggering provisioning. The callback will be resolved once the provisioning request succeeded or failed. Please note that the methods will be called on all registered callbacks, but only the primary (first) request will receive the actual response data. Other callbacks will be triggered but will receive `null`.

  Call callbacks are triggered from a background thread.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `onError​(ProvisioningManager.ProvisionException e)` | Triggered when the provisioning request failed.
    `void` | `onSuccess​(Object response)` | Triggered when the provisioning request succeeded.

- - ### Method Detail

    - #### onError

          void onError​(ProvisioningManager.ProvisionException e)

      Triggered when the provisioning request failed.
      Parameters:
        `e` - The Exception

    - #### onSuccess

          void onSuccess​(Object response)

      Triggered when the provisioning request succeeded. Please note that only the primary callback will receive the actual data. Other, additional callbacks, will receive `null`. This is to ensure that only the primary callback can access the provisioning response and complete the request by calling `MediaDrm.provideProvisionResponse(byte[])` or an equivalent method that applies the resonse data.
      Parameters:
        `response` - The response or null if this is not the primary callback.