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

From class java.lang.Object

Public methods

build

ApplicationInfo build ()

Returns a ApplicationInfo with the provided data.

Returns
ApplicationInfo

newBuilder

ApplicationInfoBuilder newBuilder ()

Start building a new ApplicationInfo.

Returns
ApplicationInfoBuilder a new instance of ApplicationInfoBuilder.

setName

ApplicationInfoBuilder setName (String name)

Sets the name.

Default is null.

Parameters
name String

Returns
ApplicationInfoBuilder

See also:

setPackageName

ApplicationInfoBuilder setPackageName (String packageName)

Sets the packageName.

Parameters
packageName String

Returns
ApplicationInfoBuilder

See also: