说明

专有钉钉平台提供了一系列的API供开发者使用,这些API是以Service的形态组织的,比如弹出专有钉钉样式的Dialog等。
开发者获取Service可以通过MainBundle获取。

  1. XXService xxService = MainBundle.getBundleContext().getService(XXService.class);
  2. if (xxService != null) {
  3. xxService.doSomething();
  4. }