# 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)

*** ** * ** ***


```
public class ProfileInstallerInitializer implements 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/androidx/profileinstaller/ProfileInstaller#writeProfile(android.content.Context)` yourself to control the threading behavior. To disable this initializer add the following to your manifest:

```

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

## Summary

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

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

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/profileinstaller/ProfileInstallerInitializer.Result` | `https://developer.android.com/reference/androidx/profileinstaller/ProfileInstallerInitializer#create(android.content.Context)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Context.html context)` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/Class.html<https://developer.android.com/reference/androidx/startup/Initializer<@https://developer.android.com/reference/androidx/annotation/NonNull ?>>>` | `https://developer.android.com/reference/androidx/profileinstaller/ProfileInstallerInitializer#dependencies()()` Initializer has no dependencies. |

## Public constructors

### ProfileInstallerInitializer

Added in 1.0.0

```
public ProfileInstallerInitializer()
```

## Public methods

### create

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

```
public @NonNull ProfileInstallerInitializer.Result create(@NonNull Context context)
```

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

### dependencies

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

```
public @NonNull List<Class<Initializer<@NonNull ?>>> dependencies()
```

Initializer has no dependencies.