# TransformInvocation

# TransformInvocation


```
interface TransformInvocation
```

<br />

*** ** * ** ***

| **This interface is deprecated.**   

An invocation object used to pass of pertinent information for a [transform](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/Transform#transform(com.android.build.api.transform.TransformInvocation)) call.

## Summary

|                                                                                                                                                                                                                                                                                             ### Public functions                                                                                                                                                                                                                                                                                              ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Context](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/Context)`!`                                                                                                                                                                                                                                       | [getContext](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformInvocation#getContext())`()` Returns the context in which the transform is run.                                                  |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)`)`[Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`<`[TransformInput](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformInput)`!>!` | [getInputs](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformInvocation#getInputs())`()` Returns the inputs/outputs of the transform.                                                          |
| [TransformOutputProvider](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformOutputProvider)`!`                                                                                                                                                                                                       | [getOutputProvider](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformInvocation#getOutputProvider())`()` Returns the output provider allowing to create content.                               |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)`)`[Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`<`[TransformInput](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformInput)`!>!` | [getReferencedInputs](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformInvocation#getReferencedInputs())`()` Returns the referenced-only inputs which are not consumed by this transformation. |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)`)`[Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`<`[SecondaryInput](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/SecondaryInput)`!>!` | [getSecondaryInputs](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformInvocation#getSecondaryInputs())`()` Returns the list of secondary file changes since last.                              |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                                                                       | [isIncremental](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformInvocation#isIncremental())`()` Indicates whether the transform execution is incremental.                                     |

## Public functions

### getContext

```
fun getContext(): Context!
```

Returns the context in which the transform is run.  

|                                                                            Returns                                                                             ||
|--------------------------------------------------------------------------------------------------------------------|--------------------------------------------|
| [Context](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/Context)`!` | the context in which the transform is run. |

### getInputs

```
fun getInputs(): (Mutable)Collection<TransformInput!>!
```

Returns the inputs/outputs of the transform.  

|                                                                                                                                                                                            Returns                                                                                                                                                                                             ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------|
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)`)`[Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`<`[TransformInput](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformInput)`!>!` | the inputs/outputs of the transform. |

### getOutputProvider

```
fun getOutputProvider(): TransformOutputProvider!
```

Returns the output provider allowing to create content.  

|                                                                                              Returns                                                                                               ||
|----------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------|
| [TransformOutputProvider](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformOutputProvider)`!` | he output provider allowing to create content. |

### getReferencedInputs

```
fun getReferencedInputs(): (Mutable)Collection<TransformInput!>!
```

Returns the referenced-only inputs which are not consumed by this transformation.  

|                                                                                                                                                                                        Returns                                                                                                                                                                                        ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)`)`[Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`<`[TransformInput](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/TransformInput)`!>!` | the referenced-only inputs. |

### getSecondaryInputs

```
fun getSecondaryInputs(): (Mutable)Collection<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.  

|                                                                                                                                                                                                                                                         Returns                                                                                                                                                                                                                                                         ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)`)`[Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)`<`[SecondaryInput](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/SecondaryInput)`!>!` | the list of changes impacting a [SecondaryInput](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/transform/SecondaryInput) |

### isIncremental

```
fun isIncremental(): Boolean
```

Indicates whether the transform execution is incremental.  

|                                                                 Returns                                                                  ||
|------------------------------------------------------------------------------------|------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true for an incremental invocation, false otherwise. |