UiThreadTestAttribute Class

Definition

Marks an android.test.InstrumentationTestCase test method to run on the application's main thread.

[Android.Runtime.Annotation("android.test.UiThreadTest")]
public class UiThreadTestAttribute : Attribute
[<Android.Runtime.Annotation("android.test.UiThreadTest")>]
type UiThreadTestAttribute = class
    inherit Attribute
Inheritance
UiThreadTestAttribute
Attributes

Remarks

This annotation is deprecated. Use UiThreadTest instead. New tests should be written using AndroidX Test.

Java documentation for android.test.UiThreadTest.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Name Description
UiThreadTestAttribute()

Applies to