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 SummaryModifier and TypeMethodDescriptionvoidTriggered when the provisioning request failed.voidTriggered when the provisioning request succeeded.
- 
Method Details- 
onErrorTriggered when the provisioning request failed.- Parameters:
- e- The Exception
 
- 
onSuccessTriggered when the provisioning request succeeded. Please note that only the primary callback will receive the actual data. Other, additional callbacks, will receivenull. This is to ensure that only the primary callback can access the provisioning response and complete the request by callingMediaDrm.provideProvisionResponse(byte[])or an equivalent method that applies the resonse data.- Parameters:
- response- The response or null if this is not the primary callback.
 
 
-