Handler.Callback 返回值

 /**
     * Callback interface you can use when instantiating a Handler to avoid
     * having to implement your own subclass of Handler.
     *
     * @param msg A {@link android.os.Message Message} object
     * @return True if no further handling is desired  //返回true 不对msg进行进一步处理
     */
    public interface Callback {
        public boolean handleMessage(Message msg);
    }
    

一般使用:

 public Handler refreshHandler = new Handler(new Handler.Callback() {
        @Override
        public boolean handleMessage(Message msg) {
            //对msg操作的代码
            return false;
        }
    });

你可能感兴趣的:(Handler.Callback 返回值)