{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PackageInfoBuilder

class PackageInfoBuilder


Builder for PackageInfo.

Summary

Public functions

PackageInfo

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.

Public functions

build

fun build(): PackageInfo

Returns a PackageInfo with the provided data.

newBuilder

fun newBuilder(): PackageInfoBuilder

Start building a new PackageInfo.

Returns
PackageInfoBuilder

a new instance of PackageInfoBuilder.

setApplicationInfo

fun setApplicationInfo(applicationInfo: ApplicationInfo): PackageInfoBuilder

Sets the application info.

Default is null

See also
PackageInfo

android.content.pm.PackageInfo#applicationInfo

setPackageName

fun setPackageName(packageName: String): PackageInfoBuilder

Sets the package name.

Default is null.

See also
PackageInfo

android.content.pm.PackageInfo#packageName