# ActivityInfoCompat

# ActivityInfoCompat

Artifact:[androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/content/pm/ActivityInfoCompat.java+class:androidx.core.content.pm.ActivityInfoCompat)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/content/pm/ActivityInfoCompat "View this page in Java")

<br />

```
class ActivityInfoCompat
```

<br />

*** ** * ** ***

| **This class is deprecated.**   
|
| Use[android.content.pm.ActivityInfo](https://developer.android.com/reference/android/content/pm/ActivityInfo.html)directly.

Helper for accessing features in[android.content.pm.ActivityInfo](https://developer.android.com/reference/android/content/pm/ActivityInfo.html).

## Summary

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [CONFIG_UI_MODE](https://developer.android.com/reference/kotlin/androidx/core/content/pm/ActivityInfoCompat#CONFIG_UI_MODE())` = 512` **This property is deprecated.** Use[CONFIG_UI_MODE](https://developer.android.com/reference/android/content/pm/ActivityInfo.html#CONFIG_UI_MODE())directly. <br /> |

## Constants

### CONFIG_UI_MODE

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val CONFIG_UI_MODE = 512: Int
```
| **This property is deprecated.**   
|
| Use[CONFIG_UI_MODE](https://developer.android.com/reference/android/content/pm/ActivityInfo.html#CONFIG_UI_MODE())directly.

Bit in ActivityInfo#configChanges that indicates that the activity can itself handle the ui mode. Set from the[configChanges](https://developer.android.com/reference/android/R.attr.html#configChanges())attribute.