Service Interface
- Service Interface
- Service interface는 Binder 형변환 관련하여 주요 메소드를 가지고 있고, 서비스와 서비스 프록시에서 재정의 될 순수가상 함수를 제공한다.
- 순수가상함수 asBinder() = 0 (IInterface class)
- Service interface 를 IBinder형으로 변환하는 함수로, IInterface를 상속하는 BnInterface나 BpInterface class에서 재정의된 asBinder()가 호출된다.
- BnInterface의 asBinder() : BBinder를 상속하므로 자기 자신을 return한다.
- BpInterface의 asBinder() : Sub class인 RefBpBase의 Remote함수를 통해 IBinder를 return 한다.
- asInterface()
- IBinder 형을 인자로 받아, Service Interface를 얻어온다.
Service Proxy
Service Proxy
'ANDROID' 카테고리의 다른 글
Android View System (0) | 2011.09.07 |
---|---|
proxy 설정 (0) | 2011.09.07 |
성능 향상을 위한 TIP .. (0) | 2011.03.17 |
Handler 그리고 AsyncTask를 사용한 성능 향상 (0) | 2011.03.17 |
몇가지 질의에 대한 답변 (0) | 2011.03.17 |