카테고리 없음

AsyncTask 파라미터 정리

flcat 2019. 7. 4. 05:13

AsyncTask<Void, Void, Void>

AsyncTask<Void, Integer, Integer>

AsyncTask<Integer, Integer, Integer>

AsyncTask<String, Integer, Integer>

AsyncTask<Integer, Integer, Boolean>

Params : doInBackground 파라미터 타입이 되며, execute 메소드 인자 값이 됩니다.

Progress : doInBackground 작업 시 진행 단위의 타입으로 onProgressUpdate 파라미터 타입입니다.

Result : doInBackground 리턴값으로 onPostExecute 파라미터 타입입니다.

 

출처http://arabiannight.tistory.com/entry/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9CAndroid-AsyncTask-%EC%82%AC%EC%9A%A9%EB%B2%95

http://mommoo.tistory.com/29

http://ismydream.tistory.com/130