diff --git a/docs/plugin/uts-for-android.md b/docs/plugin/uts-for-android.md index 1fcbb788e64acdeae416ef088988edf266ce26bc..0430e5b9d90a6e71a1c7322d2e749383333ec726 100644 --- a/docs/plugin/uts-for-android.md +++ b/docs/plugin/uts-for-android.md @@ -891,16 +891,20 @@ uts中,需要区分全局方法、成员方法 |实现接口|:|implements| -```kotlin -class MediaContentObserver : ContentObserver { +```ts +// 使用UTS 实现 OnClickListener接口 +class StartServiceListener extends OnClickListener{ + + override onClick(v?: View):void{ + // 执行点击逻辑 + } } + ``` -```ts -class MediaContentObserver extends ContentObserver { -} -``` + + #### 5.1.5 非空断言