ProfileInstallerInitializer

public class ProfileInstallerInitializer
extends Object implements Initializer<ProfileInstallerInitializer.Result>

java.lang.Object
   ↳ androidx.profileinstaller.ProfileInstallerInitializer


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 ProfileInstaller.writeProfile(Context) yourself to control the threading behavior. To disable this initializer add the following to your manifest:

     
         
     
 
If you disable the initializer, ensure that ProfileInstaller.writeProfile(Context) is called within a few (5-10) seconds of your app starting up.

Summary

Nested classes

class ProfileInstallerInitializer.Result

Empty result class for ProfileInstaller. 

Public constructors

ProfileInstallerInitializer()

Public methods

ProfileInstallerInitializer.Result create(Context context)

Initializes and a component given the application Context

List<Class<? extends Initializer<?>>> dependencies()

Initializer has no dependencies.

Inherited methods

Public constructors

ProfileInstallerInitializer

public ProfileInstallerInitializer ()

Public methods

create

public ProfileInstallerInitializer.Result create (Context context)

Initializes and a component given the application Context

Parameters
context Context: The application context.

Returns
ProfileInstallerInitializer.Result Result immediately.

dependencies

public List<Class<? extends Initializer<?>>> dependencies ()

Initializer has no dependencies.

Returns
List<Class<? extends Initializer<?>>>