# SdkSuppress

Summary:[Methods](https://developer.android.com/reference/android/support/test/filters/SdkSuppress#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/test/filters/SdkSuppress#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/test/filters/SdkSuppress#)  

# SdkSuppress

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


abstract
@interface
SdkSuppress
`  
`


implements

`[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`


`

|------------------------------------------|
| android.support.test.filters.SdkSuppress |

<br />

*** ** * ** ***

Indicates that a specific test or class requires a minimum or maximum API Level to execute.

Test(s) will be skipped when executed on android platforms less/more than specified level (inclusive).

## Summary

|                                                                               ### Public methods                                                                               ||
|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int` | ` `[maxSdkVersion](https://developer.android.com/reference/android/support/test/filters/SdkSuppress#maxSdkVersion())`() ` The maximum API level to execute (inclusive) |
| ` int` | ` `[minSdkVersion](https://developer.android.com/reference/android/support/test/filters/SdkSuppress#minSdkVersion())`() ` The minimum API level to execute (inclusive) |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/filters/SdkSuppress#)From interface` `[java.lang.annotation.Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)` ` |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` abstract `[Class](https://developer.android.com/reference/java/lang/Class.html)`<? extends `[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`>` | ` annotationType() `                                                                       | | ` abstract boolean`                                                                                                                                                                         | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` abstract int`                                                                                                                                                                             | ` hashCode() `                                                                             | | ` abstract `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                         | ` toString() `                                                                             | ||

## Public methods

### maxSdkVersion

```
int maxSdkVersion ()
```

The maximum API level to execute (inclusive)

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### minSdkVersion

```
int minSdkVersion ()
```

The minimum API level to execute (inclusive)

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

-

  ## Annotations

  - [FlakyTest](https://developer.android.com/reference/android/support/test/filters/FlakyTest)
  - [LargeTest](https://developer.android.com/reference/android/support/test/filters/LargeTest)
  - [MediumTest](https://developer.android.com/reference/android/support/test/filters/MediumTest)
  - [RequiresDevice](https://developer.android.com/reference/android/support/test/filters/RequiresDevice)
  - [SdkSuppress](https://developer.android.com/reference/android/support/test/filters/SdkSuppress)
  - [SmallTest](https://developer.android.com/reference/android/support/test/filters/SmallTest)
  - [Suppress](https://developer.android.com/reference/android/support/test/filters/Suppress)