public class TraceVariantTaskBuilder
extends java.lang.Object
BaseTraceVariantTask creation.| Constructor and Description |
|---|
TraceVariantTaskBuilder(org.gradle.api.tasks.TaskContainer taskContainer,
java.lang.String baseName,
java.lang.Class<? extends BaseTraceVariantTask> type,
com.android.build.gradle.api.BaseVariant variant)
Constructor for the class.
|
| Modifier and Type | Method and Description |
|---|---|
BaseTraceVariantTask |
build()
Builds the given task based on the values that are set.
|
TraceVariantTaskBuilder |
setDescription(java.lang.String description)
Sets the description of the task.
|
TraceVariantTaskBuilder |
setGroup(java.lang.String group)
Sets the group for the given task.
|
TraceVariantTaskBuilder |
setVariantOutput(com.android.build.gradle.api.BaseVariantOutput variantOutput)
Sets the
BaseVariantOutput for the given task. |
public TraceVariantTaskBuilder(@NonNull
org.gradle.api.tasks.TaskContainer taskContainer,
@NonNull
java.lang.String baseName,
@NonNull
java.lang.Class<? extends BaseTraceVariantTask> type,
@NonNull
com.android.build.gradle.api.BaseVariant variant)
taskContainer - the TaskContainer that will contain the created Task.baseName - the baseName of rhe newly created task.type - the class of the task.variant - the BaseVariant for the task.@NonNull public TraceVariantTaskBuilder setVariantOutput(@Nullable com.android.build.gradle.api.BaseVariantOutput variantOutput)
BaseVariantOutput for the given task.variantOutput - the variant output.@NonNull public TraceVariantTaskBuilder setGroup(@Nullable java.lang.String group)
group - the group of the given task.@NonNull public TraceVariantTaskBuilder setDescription(@Nullable java.lang.String description)
description - the description of the task.@NonNull public BaseTraceVariantTask build()