TransformInvocation
interface TransformInvocation
com.android.build.api.transform.TransformInvocation |
An invocation object used to pass of pertinent information for a Transform#transform(TransformInvocation)
call.
Summary
Public methods |
|
---|---|
abstract Context |
Returns the context in which the transform is run. |
abstract MutableCollection<TransformInput!> |
Returns the inputs/outputs of the transform. |
abstract TransformOutputProvider? |
Returns the output provider allowing to create content. |
abstract MutableCollection<TransformInput!> |
Returns the referenced-only inputs which are not consumed by this transformation. |
abstract MutableCollection<SecondaryInput!> |
Returns the list of secondary file changes since last. |
abstract Boolean |
Indicates whether the transform execution is incremental. |
Public methods
getContext
@NonNull abstract fun getContext(): Context
Returns the context in which the transform is run.
Return | |
---|---|
Context: the context in which the transform is run. |
getInputs
@NonNull abstract fun getInputs(): MutableCollection<TransformInput!>
Returns the inputs/outputs of the transform.
Return | |
---|---|
MutableCollection<TransformInput!>: the inputs/outputs of the transform. |
getOutputProvider
@Nullable abstract fun getOutputProvider(): TransformOutputProvider?
Returns the output provider allowing to create content.
Return | |
---|---|
TransformOutputProvider?: he output provider allowing to create content. |
getReferencedInputs
@NonNull abstract fun getReferencedInputs(): MutableCollection<TransformInput!>
Returns the referenced-only inputs which are not consumed by this transformation.
Return | |
---|---|
MutableCollection<TransformInput!>: the referenced-only inputs. |
getSecondaryInputs
@NonNull abstract fun getSecondaryInputs(): MutableCollection<SecondaryInput!>
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.
Return | |
---|---|
MutableCollection<SecondaryInput!>: the list of changes impacting a SecondaryInput |
isIncremental
abstract fun isIncremental(): Boolean
Indicates whether the transform execution is incremental.
Return | |
---|---|
Boolean: true for an incremental invocation, false otherwise. |