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.
true for an incremental invocation, false otherwise.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# TransformInvocation\n===================\n\n\n```\ninterface TransformInvocation\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n| **This interface is deprecated.** \n\nAn invocation object used to pass of pertinent information for a [transform](/reference/tools/gradle-api/7.2/com/android/build/api/transform/Transform#transform(com.android.build.api.transform.TransformInvocation)) call.\n\nSummary\n-------\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Context](/reference/tools/gradle-api/7.2/com/android/build/api/transform/Context) | [getContext](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformInvocation#getContext())`()` Returns the context in which the transform is run. |\n| [Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`\u003c`[TransformInput](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformInput)`?\u003e` | [getInputs](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformInvocation#getInputs())`()` Returns the inputs/outputs of the transform. |\n| [TransformOutputProvider](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformOutputProvider)`?` | [getOutputProvider](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformInvocation#getOutputProvider())`()` Returns the output provider allowing to create content. |\n| [Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`\u003c`[TransformInput](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformInput)`?\u003e` | [getReferencedInputs](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformInvocation#getReferencedInputs())`()` Returns the referenced-only inputs which are not consumed by this transformation. |\n| [Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`\u003c`[SecondaryInput](/reference/tools/gradle-api/7.2/com/android/build/api/transform/SecondaryInput)`?\u003e` | [getSecondaryInputs](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformInvocation#getSecondaryInputs())`()` Returns the list of secondary file changes since last. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isIncremental](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformInvocation#isIncremental())`()` Indicates whether the transform execution is incremental. |\n\nPublic functions\n----------------\n\n### getContext\n\n```\nfun getContext(): Context\n```\n\nReturns the context in which the transform is run. \n\n| Returns ||\n|------------------------------------------------------------------------------------|--------------------------------------------|\n| [Context](/reference/tools/gradle-api/7.2/com/android/build/api/transform/Context) | the context in which the transform is run. |\n\n### getInputs\n\n```\nfun getInputs(): Collection\u003cTransformInput?\u003e\n```\n\nReturns the inputs/outputs of the transform. \n\n| Returns ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------|\n| [Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`\u003c`[TransformInput](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformInput)`?\u003e` | the inputs/outputs of the transform. |\n\n### getOutputProvider\n\n```\nfun getOutputProvider(): TransformOutputProvider?\n```\n\nReturns the output provider allowing to create content. \n\n| Returns ||\n|-----------------------------------------------------------------------------------------------------------------------|------------------------------------------------|\n| [TransformOutputProvider](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformOutputProvider)`?` | he output provider allowing to create content. |\n\n### getReferencedInputs\n\n```\nfun getReferencedInputs(): Collection\u003cTransformInput?\u003e\n```\n\nReturns the referenced-only inputs which are not consumed by this transformation. \n\n| Returns ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------|\n| [Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`\u003c`[TransformInput](/reference/tools/gradle-api/7.2/com/android/build/api/transform/TransformInput)`?\u003e` | the referenced-only inputs. |\n\n### getSecondaryInputs\n\n```\nfun getSecondaryInputs(): Collection\u003cSecondaryInput?\u003e\n```\n\nReturns the list of secondary file changes since last. Only secondary files that this transform can handle incrementally will be part of this change set. \n\n| Returns ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| [Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`\u003c`[SecondaryInput](/reference/tools/gradle-api/7.2/com/android/build/api/transform/SecondaryInput)`?\u003e` | the list of changes impacting a [SecondaryInput](/reference/tools/gradle-api/7.2/com/android/build/api/transform/SecondaryInput) |\n\n### isIncremental\n\n```\nfun isIncremental(): Boolean\n```\n\nIndicates whether the transform execution is incremental. \n\n| Returns ||\n|------------------------------------------------------------------------------------|------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true for an incremental invocation, false otherwise. |"]]