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