# DexFile.OptimizationInfo

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# OptimizationInfo

```
class OptimizationInfo
```

|---|----------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                   ||
| ↳ | [dalvik.system.DexFile.OptimizationInfo](https://developer.android.com/reference/kotlin/dalvik/system/DexFile.OptimizationInfo#) |

Encapsulates information about the optimizations performed on a dex file. Note that the info is only meant for debugging and is not guaranteed to be stable across releases and/or devices.

## Summary

|                                                                                                                                  Public methods                                                                                                                                  ||
|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isFullyCompiled](https://developer.android.com/reference/kotlin/dalvik/system/DexFile.OptimizationInfo#isFullyCompiled())`()` Returns whether the dex file is fully ahead-of-time compiled. |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isOptimized](https://developer.android.com/reference/kotlin/dalvik/system/DexFile.OptimizationInfo#isOptimized())`()` Returns whether the dex file is in an optimal state.                  |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isVerified](https://developer.android.com/reference/kotlin/dalvik/system/DexFile.OptimizationInfo#isVerified())`()` Returns whether the dex file is verified.                               |

## Public methods

### isFullyCompiled

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun isFullyCompiled(): Boolean
```

Returns whether the dex file is fully ahead-of-time compiled.  

### isOptimized

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun isOptimized(): Boolean
```

Returns whether the dex file is in an optimal state. Currently, this means the dex file is either ahead-of-time compiled with a profile or fully ahead-of-time compiled.  

### isVerified

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun isVerified(): Boolean
```

Returns whether the dex file is verified.