PackageInfoBuilder

public final class PackageInfoBuilder
extends Object

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


Builder for PackageInfo.

Summary

Public methods

PackageInfo build()

Returns a PackageInfo with the provided data.

static PackageInfoBuilder newBuilder()

Start building a new PackageInfo.

PackageInfoBuilder setApplicationInfo(ApplicationInfo applicationInfo)

Sets the application info.

PackageInfoBuilder setPackageName(String packageName)

Sets the package name.

Inherited methods

From class java.lang.Object

Public methods

build

PackageInfo build ()

Returns a PackageInfo with the provided data.

Returns
PackageInfo

newBuilder

PackageInfoBuilder newBuilder ()

Start building a new PackageInfo.

Returns
PackageInfoBuilder a new instance of PackageInfoBuilder.

setApplicationInfo

PackageInfoBuilder setApplicationInfo (ApplicationInfo applicationInfo)

Sets the application info.

Default is null

Parameters
applicationInfo ApplicationInfo

Returns
PackageInfoBuilder

See also:

setPackageName

PackageInfoBuilder setPackageName (String packageName)

Sets the package name.

Default is null.

Parameters
packageName String

Returns
PackageInfoBuilder

See also: