Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

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: