# TransformOutputProvider

# TransformOutputProvider

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

<br />

```
interface TransformOutputProvider
```

<br />

*** ** * ** ***

| **This interface is deprecated.**   

The output of a transform.

There is no direct access to a location to write. Instead, Transforms can ask to get the location for given scopes, content-types and a format.

## Summary

|                                   ### Public functions                                    |
|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)              | [deleteAll](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/transform/TransformOutputProvider#deleteAll())`()` Delete all content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)`!` | [getContentLocation](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/transform/TransformOutputProvider#getContentLocation(java.lang.String,java.util.Set<com.android.build.api.transform.QualifiedContent.ContentType>,java.util.Set<? super com.android.build.api.transform.QualifiedContent.Scope>,com.android.build.api.transform.Format))`(` ` name: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!,` ` types: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)`)`[Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[QualifiedContent.ContentType](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/transform/QualifiedContent.ContentType)`!>!,` ` scopes: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)`)`[Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`!>!,` ` format: `[Format](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/transform/Format)`!` `)` **This function is deprecated.** |

## Public functions

### deleteAll

Added in 4.2.0  
Deprecated in 7.0.0  

```
fun deleteAll(): Unit
```

Delete all content. This is useful when running in non-incremental mode  

|                                                    Throws                                                    |
|--------------------------------------------------------------------------------------------------------------|--------------------------------|
| [java.io.IOException](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/IOException.html) | if deleting the output failed. |

### getContentLocation

```
fun getContentLocation(
    name: String!,
    types: (Mutable)Set<QualifiedContent.ContentType!>!,
    scopes: (Mutable)Set<Any!>!,
    format: Format!
): File!
```
| **This function is deprecated.**   

Returns the location of content for a given set of Scopes, Content Types, and Format.

If the format is[DIRECTORY](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/transform/Format#DIRECTORY)then the result is the file location of the directory. If the format is[JAR](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/transform/Format#JAR)then the result is a file representing the jar to create.

Non of the directories or files are created by querying this method, and there is no checks regarding the existence of content in this location.

In case of incremental processing of removed files, it is safe to query the method to get the location of the files to removed.  

|                                                                                                                                                                               Parameters                                                                                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|
| `name: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!`                                                                                                                                                                                                                                                                             | a unique name for the content. For a given set of scopes/types/format it must be unique. |
| `types: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)`)`[Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[QualifiedContent.ContentType](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/transform/QualifiedContent.ContentType)`!>!` | the content types associated with this content.                                          |
| `scopes: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)`)`[Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html)`<`[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`!>!`                                                                                | the scopes associated with this content.                                                 |
| `format: `[Format](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/transform/Format)`!`                                                                                                                                                                                                                                             | the format of the content.                                                               |

|                                          Returns                                          |
|-------------------------------------------------------------------------------------------|------------------------------|
| [File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)`!` | the location of the content. |