com.android.build.api.transform
Interface TransformInvocation


public interface TransformInvocation

An invocation object used to pass of pertinent information for a Transform.transform(TransformInvocation) call.


Method Summary
 Context getContext()
          Returns the context in which the transform is run.
 Collection<TransformInput> getInputs()
          Returns the inputs/outputs of the transform.
 TransformOutputProvider getOutputProvider()
          Returns the output provider allowing to create content.
 Collection<TransformInput> getReferencedInputs()
          Returns the referenced-only inputs which are not consumed by this transformation.
 Collection<SecondaryInput> getSecondaryInputs()
          Returns the list of secondary file changes since last.
 boolean isIncremental()
          Indicates whether the transform execution is incremental.
 

Method Detail

getContext

@NonNull
Context getContext()
Returns the context in which the transform is run.

Returns:
the context in which the transform is run.

getInputs

@NonNull
Collection<TransformInput> getInputs()
Returns the inputs/outputs of the transform.

Returns:
the inputs/outputs of the transform.

getReferencedInputs

@NonNull
Collection<TransformInput> getReferencedInputs()
Returns the referenced-only inputs which are not consumed by this transformation.

Returns:
the referenced-only inputs.

getSecondaryInputs

@NonNull
Collection<SecondaryInput> getSecondaryInputs()
Returns the list of secondary file changes since last. Only secondary files that this transform can handle incrementally will be part of this change set.

Returns:
the list of changes impacting a SecondaryInput

getOutputProvider

@Nullable
TransformOutputProvider getOutputProvider()
Returns the output provider allowing to create content.

Returns:
he output provider allowing to create content.

isIncremental

boolean isIncremental()
Indicates whether the transform execution is incremental.

Returns:
true for an incremental invocation, false otherwise.