ApplicationInfoBuilder

public final class ApplicationInfoBuilder
extends Object

java.lang.Object
   ↳ androidx.test.core.content.pm.ApplicationInfoBuilder


Builder for ApplicationInfo.

Summary

Public methods

ApplicationInfo build()

Returns a ApplicationInfo with the provided data.

static ApplicationInfoBuilder newBuilder()

Start building a new ApplicationInfo.

ApplicationInfoBuilder setName(String name)

Sets the name.

ApplicationInfoBuilder setPackageName(String packageName)

Sets the packageName.

Inherited methods

Public methods

build

public ApplicationInfo build ()

Returns a ApplicationInfo with the provided data.

Returns
ApplicationInfo

newBuilder

public static ApplicationInfoBuilder newBuilder ()

Start building a new ApplicationInfo.

Returns
ApplicationInfoBuilder a new instance of ApplicationInfoBuilder.

setName

public ApplicationInfoBuilder setName (String name)

Sets the name.

Default is null.

Parameters
name String

Returns
ApplicationInfoBuilder

setPackageName

public ApplicationInfoBuilder setPackageName (String packageName)

Sets the packageName.

Parameters
packageName String

Returns
ApplicationInfoBuilder