ApplicationInfoBuilder


public final class ApplicationInfoBuilder


Builder for ApplicationInfo.

Summary

Public methods

ApplicationInfo

Returns a ApplicationInfo with the provided data.

static ApplicationInfoBuilder

Start building a new ApplicationInfo.

ApplicationInfoBuilder
setFlags(int flags)

Sets the flags.

ApplicationInfoBuilder

Sets the name.

ApplicationInfoBuilder
setPackageName(String packageName)

Sets the packageName.

Public methods

build

public ApplicationInfo build()

Returns a ApplicationInfo with the provided data.

newBuilder

public static ApplicationInfoBuilder newBuilder()

Start building a new ApplicationInfo.

Returns
ApplicationInfoBuilder

a new instance of ApplicationInfoBuilder.

setFlags

public ApplicationInfoBuilder setFlags(int flags)

Sets the flags.

See also
flags

setName

public ApplicationInfoBuilder setName(@Nullable String name)

Sets the name.

Default is null.

See also
name

setPackageName

public ApplicationInfoBuilder setPackageName(String packageName)

Sets the packageName.

See also
packageName