ZUpdateChecker

繼承至Zconnect,底層概念為透過HTTP_GET取得該app於 google play的HTML並擷取其中的VersionName。

---

連線CallBack

public class ZUpdateHandler{
    //-----------

    /***
     * 當進行檢測
     * latestVersionName  架上目前最新版
     */
    public void OnChecked(StringlatestVersionName) 


   //-----------

    /***
     *  連線失敗接口
     */
    public void OnFail(IOException e) 
    
    //----------

    /***
     *  連線成功但回覆失敗接口
     */
    public void OnFail(String response, int code) 

}

---

連線

Last updated

Was this helpful?