# ProfileInstallerInitializer

Artifact: [androidx.profileinstaller:profileinstaller](https://developer.android.com/jetpack/androidx/releases/profileinstaller) [View Source](https://cs.android.com/search?q=file:androidx/profileinstaller/ProfileInstallerInitializer.java+class:androidx.profileinstaller.ProfileInstallerInitializer) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/profileinstaller#1.0.0)

*** ** * ** ***


```
class ProfileInstallerInitializer : Initializer<ProfileInstallerInitializer.Result!>
```

<br />

*** ** * ** ***

Startup library initializer that installs an AOT profile several seconds after launch. During application startup this will schedule background profile installation several seconds later. At the scheduled time, a background thread will be created to install the profile. You can disable this initializer and call `https://developer.android.com/reference/kotlin/androidx/profileinstaller/ProfileInstaller#writeProfile(android.content.Context)` yourself to control the threading behavior. To disable this initializer add the following to your manifest:

```kotlin

```
If you disable the initializer, ensure that `https://developer.android.com/reference/kotlin/androidx/profileinstaller/ProfileInstaller#writeProfile(android.content.Context)` is called within a few (5-10) seconds of your app starting up.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/profileinstaller/ProfileInstallerInitializer.Result` Empty result class for ProfileInstaller. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/profileinstaller/ProfileInstallerInitializer#ProfileInstallerInitializer()()` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/profileinstaller/ProfileInstallerInitializer.Result` | `https://developer.android.com/reference/kotlin/androidx/profileinstaller/ProfileInstallerInitializer#create(android.content.Context)(context: https://developer.android.com/reference/android/content/Context.html)` |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/java/lang/Class.html<https://developer.android.com/reference/kotlin/androidx/startup/Initializer<*>!>!>` | `https://developer.android.com/reference/kotlin/androidx/profileinstaller/ProfileInstallerInitializer#dependencies()()` Initializer has no dependencies. |

## Public constructors

### ProfileInstallerInitializer

Added in 1.0.0

```
ProfileInstallerInitializer()
```

## Public functions

### create

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/profileinstaller#1.0.0)

```
fun create(context: Context): ProfileInstallerInitializer.Result
```

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/profileinstaller/ProfileInstallerInitializer.Result` | Result immediately. |

### dependencies

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/profileinstaller#1.0.0)

```
fun dependencies(): (Mutable)List<Class<Initializer<*>!>!>
```

Initializer has no dependencies.