{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class PackageInfoBuilder
Builder for PackageInfo.
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
PackageInfo |
build()Returns a PackageInfo with the provided data. |
static PackageInfoBuilder |
Start building a new PackageInfo. |
PackageInfoBuilder |
setApplicationInfo(ApplicationInfo applicationInfo)Sets the application info. |
PackageInfoBuilder |
setPackageName(String packageName)Sets the package name. |
public static PackageInfoBuilder newBuilder()
Start building a new PackageInfo.
| Returns | |
|---|---|
PackageInfoBuilder |
a new instance of |
public PackageInfoBuilder setApplicationInfo(ApplicationInfo applicationInfo)
Sets the application info.
Default is null
| See also | |
|---|---|
PackageInfo |
|
public PackageInfoBuilder setPackageName(String packageName)
Sets the package name.
Default is null.
| See also | |
|---|---|
PackageInfo |
|