001package com.aispeech.dui.dds.update;
002
003public interface DDSUpdateListener {
004    /**
005     * 发现资源有更新的回调方法
006     *
007     * @param detail 更新日志
008     */
009    void onUpdateFound(String detail);
010
011    /**
012     * 资源更新成功的回调方法
013     */
014    void onUpdateFinish();
015
016    /**
017     * 资源更新过程中进度通知的回调
018     *
019     * @param progress 下载进度 取值范围0-100
020     */
021    void onDownloadProgress(float progress);
022
023    /**
024     * 更新失败的回调
025     *
026     * @param what  errorid
027     * @param error error描述
028     */
029    void onError(int what, String error);
030
031    /**
032     * 需要更新本地sdk,本地sdk与dui平台选择的dui内核版本号不匹配
033     *
034     * @param version 当前没有用到,取值为“”字符串
035     */
036    void onUpgrade(String version);
037}