@Retention(value = AnnotationRetention.RUNTIME)
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.FUNCTION])
@Repeatable(value = RequiresDeviceModes)
@CustomFilter(filterClass = RequiresDeviceModeFilter)
public annotation RequiresDeviceMode


Indicates that a specific test should not be run on a device that does not support the provided device mode.

This annotation is repeatable. It will be executed only if the test is running on a foldable device that can be set to the all of the provided device modes.

Summary

Public constructors

Public methods

final @NonNull DeviceMode

Public constructors

RequiresDeviceMode

public RequiresDeviceMode(@NonNull DeviceMode mode)

Public methods

getMode

public final @NonNull DeviceMode getMode()