语言

UiThreadTestAttribute 类

定义

标记在 android.test.InstrumentationTestCase 应用程序的主线程上运行的测试方法。

[Android.Runtime.Annotation("android.test.UiThreadTest")]
public class UiThreadTestAttribute : Attribute
[<Android.Runtime.Annotation("android.test.UiThreadTest")>]
type UiThreadTestAttribute = class
    inherit Attribute
继承
UiThreadTestAttribute
特性

注解

此批注已弃用。 请改用 UiThreadTest 。 应使用 AndroidX 测试编写新测试。

Java文档android.test.UiThreadTest。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

构造函数

名称 说明
UiThreadTestAttribute()

初始化 UiThreadTestAttribute 类的新实例。

适用于