com.widevine.drmapi.android
Interface WVEventListener
public interface WVEventListener
Many of the Widevine methods are executed asynchronously. A listener object is used to report the status on an
operation in progress or to report information about an asset. In some cases, the listener may receive additional
information provided in the attributes parameter. This information is coded in a HashMap map.
Refer to the Widevine Android API specification for a description of the attributes defined for each event.
- Since:
- 1.0
Method Summary |
WVStatus |
onEvent(WVEvent eventType,
java.util.HashMap<java.lang.String,java.lang.Object> attributes)
The WVEventListener interface defines the onEvent method that is called for each event type. |
onEvent
WVStatus onEvent(WVEvent eventType,
java.util.HashMap<java.lang.String,java.lang.Object> attributes)
- The WVEventListener interface defines the onEvent method that is called for each event type.
Clients of the Widevine Playback API should provide an object that implements the WVEventListener interface
to the initialize method.
- Parameters:
eventType
- - Type of the eventattributes
- - HashMap of pairs defining the attributes associated with the event
- Returns:
- a WVStatus value indicating the result of the operation