# TransformInvocation

# TransformInvocation

[View Source](https://cs.android.com/search?q=file:com/android/build/api/transform/TransformInvocation.java+class:com.android.build.api.transform.TransformInvocation)  
Added in 4.2.0  
Deprecated in 7.0.0  

<br />

```
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.13/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.13/com/android/build/api/transform/Context)`!`                                                                                                                                                                                                                                       | [getContext](https://developer.android.com/reference/tools/gradle-api/8.13/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.13/com/android/build/api/transform/TransformInput)`!>!` | [getInputs](https://developer.android.com/reference/tools/gradle-api/8.13/com/android/build/api/transform/TransformInvocation#getInputs())`()` Returns the inputs/outputs of the transform.                                                          |
| [TransformOutputProvider](https://developer.android.com/reference/tools/gradle-api/8.13/com/android/build/api/transform/TransformOutputProvider)`!`                                                                                                                                                                                                       | [getOutputProvider](https://developer.android.com/reference/tools/gradle-api/8.13/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.13/com/android/build/api/transform/TransformInput)`!>!` | [getReferencedInputs](https://developer.android.com/reference/tools/gradle-api/8.13/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.13/com/android/build/api/transform/SecondaryInput)`!>!` | [getSecondaryInputs](https://developer.android.com/reference/tools/gradle-api/8.13/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.13/com/android/build/api/transform/TransformInvocation#isIncremental())`()` Indicates whether the transform execution is incremental.                                     |

## Public functions

### getContext

Added in 4.2.0  
Deprecated in 7.0.0  

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

Returns the context in which the transform is run.  

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

### getInputs

Added in 4.2.0  
Deprecated in 7.0.0  

```
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.13/com/android/build/api/transform/TransformInput)`!>!` | the inputs/outputs of the transform. |

### getOutputProvider

Added in 4.2.0  
Deprecated in 7.0.0  

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

Returns the output provider allowing to create content.  

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

### getReferencedInputs

Added in 4.2.0  
Deprecated in 7.0.0  

```
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.13/com/android/build/api/transform/TransformInput)`!>!` | the referenced-only inputs. |

### getSecondaryInputs

Added in 4.2.0  
Deprecated in 7.0.0  

```
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.13/com/android/build/api/transform/SecondaryInput)`!>!` | the list of changes impacting a[SecondaryInput](https://developer.android.com/reference/tools/gradle-api/8.13/com/android/build/api/transform/SecondaryInput) |

### isIncremental

Added in 4.2.0  
Deprecated in 7.0.0  

```
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. |