public abstract class AVSubscriptionCallback extends Object
AVBrowser.subscribeByParentMediaId(java.lang.String, ohos.media.common.sessioncore.AVSubscriptionCallback)SystemCapability.Multimedia#MEDIA| 构造器 | 说明 |
|---|---|
AVSubscriptionCallback() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onAVElementListLoaded(String parentMediaId,
List<AVElement> elements) |
Called when data is loaded for the first time or updated after
AVBrowser.subscribeByParentMediaId(String, AVSubscriptionCallback)
is called to subscribe to media items. |
void |
onAVElementListLoaded(String parentMediaId,
List<AVElement> elements,
PacMap options) |
Called when data is loaded for the first time or updated after
AVBrowser.subscribeByParentMediaId(String, PacMap, AVSubscriptionCallback)
is called to subscribe to media items. |
void |
onError(String parentMediaId) |
Called when an error occurs during obtaining of media item descriptions.
|
void |
onError(String parentMediaId,
PacMap options) |
Called when an error occurs during obtaining of media item descriptions, with an input parameter passed from the
media browser service.
|
public void onAVElementListLoaded(String parentMediaId, List<AVElement> elements)
AVBrowser.subscribeByParentMediaId(String, AVSubscriptionCallback)
is called to subscribe to media items.parentMediaId - Indicates the ID of the parent media item.elements - Indicates a list of AVElement instances storing media time descriptions.public void onAVElementListLoaded(String parentMediaId, List<AVElement> elements, PacMap options)
AVBrowser.subscribeByParentMediaId(String, PacMap, AVSubscriptionCallback)
is called to subscribe to media items.parentMediaId - Indicates the ID of the parent media item.elements - Indicates a list of AVElement instances storing media time descriptions.options - Indicates parameters sent to the media browser service. The values determine the data to be
returned.public void onError(String parentMediaId)
parentMediaId - Indicates the ID of the parent media item.public void onError(String parentMediaId, PacMap options)
parentMediaId - Indicates the ID of the parent media item.options - Indicates parameters sent to the service. The values determine the data to be returned.