#import <DTKExternalModule/DTKExternalModule.h>
DTKExternalBundleRegister(XXXXXExternalModule)
@interface XXXXXExternalModule <DTKExternalBundleProtocol>
@end| 事件 | 描述 |
|---|---|
| - (void)bundleDidLoaded; | 该模块已被加载。重要非特殊情况不建议使用,此时App尚未初始化完成,无法与主钉钉交互。不要执行耗时操作。 |
| - (void)allBundlesDidLoaded; | 所有模块已被加载。 |
| - (void)hostApplicationWillEnterForeground; | 钉钉App即将进入前台。 |
| - (void)hostApplicationDidEnterBackground; | 钉钉app进入后台运行。 |
| - (void)onUserDidLogin:(DTKExternalUserId)userId; | 用户已登录,包含账密登录以及每次重启App后的自动登录。 |
| - (void)onUserDidLogout; | 用户已登出,包含主动登出和被踢下线。 |

【钉钉】API开发者 微信交流群
用微信扫右侧二维码,加入【钉钉】API开发者 交流群,互助沟通

扫码加入交流群