ZLocationTool

CallBack


/***
* 持續監聽用
**/
public interface OnLocationChangeListener {
    //當取得位置資訊
    void onLocationChanged(Location location);

    //當連線中段
    void onSuspended(int i);

    //GoogleLocationAPI連線失敗
    void onFailed(ConnectionResult connectionResult,int errorCode);

}

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

/***
* 單次監聽用
**/
public interface OnLocationGetListener {

    //當取得位置資訊
    void onLocationGet(Location location);

    //當連線中段
    void onSuspended(int i);

    //GoogleLocationAPI連線失敗
    void onFailed(ConnectionResult connectionResult,int errorCode);
}

---

PUBLIC METHOD

Last updated

Was this helpful?