public static interface ImageSource.DecodeEventListener
To listen for the events, you should implement the onDecodeEvent(ohos.media.image.ImageSource, ohos.media.image.common.DecodeEvent) method, which
obtains the ImageSource and DecodeEvent.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onDecodeEvent(ImageSource source,
DecodeEvent event) |
Called when a decoding event occurs.
|
void onDecodeEvent(ImageSource source, DecodeEvent event)
source - Indicates the image source.event - Indicates the event, which can be
DecodeEvent.EVENT_COMPLETE_DECODE
or DecodeEvent.EVENT_PARTIAL_DECODE.