首页 > TAG信息列表 > BinderService

BinderService模板类

binder服务类通过继承BinderService模板类,可以方便的发布binder服务到servicemanager。 template<typename SERVICE> class BinderService { public: static status_t publish(bool allowIsolated = false) { sp<IServiceManager> sm(defaultServiceManager());