Interface ContentDiscovery.Listener
-
- Enclosing class:
- ContentDiscovery
public static interface ContentDiscovery.ListenerInterface is used by client to receive a response from the request. This will return data inonMapDataReceived(List, List, Map, Method, Map)method oronStringDataReceived(List, List, Method, Map)method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonError(ContentDiscovery.Error error, ContentDiscovery.Method method, java.util.Map<java.lang.String,java.lang.String> request)Callback invoked when an error occurs during content discovery.voidonMapDataReceived(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> warning, java.util.Map<java.lang.String,java.lang.Object> resultInfo, ContentDiscovery.Method method, java.util.Map<java.lang.String,java.lang.String> request)Callback invoked when structured metadata of media content is received.voidonStringDataReceived(java.util.List<java.lang.String> data, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> warning, ContentDiscovery.Method method, java.util.Map<java.lang.String,java.lang.String> request)Callback invoked when flat string metadata of media content is received.
-
-
-
Method Detail
-
onMapDataReceived
void onMapDataReceived(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> warning, java.util.Map<java.lang.String,java.lang.Object> resultInfo, ContentDiscovery.Method method, java.util.Map<java.lang.String,java.lang.String> request)Callback invoked when structured metadata of media content is received.- Parameters:
data- A list of maps containing the metadata of the media content retrieved.warning- A list of maps containing warning information related to the retrieved metadata.resultInfo- A map containing additional contextual information or processing details about the result.method- The content discovery method used to retrieve the metadata.request- A map containing the request parameters associated with this callback.
-
onStringDataReceived
void onStringDataReceived(java.util.List<java.lang.String> data, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> warning, ContentDiscovery.Method method, java.util.Map<java.lang.String,java.lang.String> request)Callback invoked when flat string metadata of media content is received.- Parameters:
data- A list of strings containing the metadata of the media contentwarning- A list of maps containing warning information related to the retrieved metadata.method- The content discovery method used to retrieve the metadata.request- A map containing the request parameters associated with this callback.
-
onError
void onError(ContentDiscovery.Error error, ContentDiscovery.Method method, java.util.Map<java.lang.String,java.lang.String> request)
Callback invoked when an error occurs during content discovery.- Parameters:
error- The error object providing details about the issue.method- The content discovery method during which the error occurred.request- A map containing the request parameters that triggered the error.
-
-