# AiPackExtension

# AiPackExtension

[View Source](https://cs.android.com/search?q=file:com/android/build/api/dsl/AiPackExtension.kt+class:com.android.build.api.dsl.AiPackExtension)  
Added in 8.7.0  

<br />

```
@Incubating
interface AiPackExtension
```

<br />

*** ** * ** ***

Extension properties for the Asset Pack plugin that are specific to AI packs.

## Summary

|                             ### Public functions                             |
|------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [dynamicDelivery](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/AiPackExtension#dynamicDelivery(kotlin.Function1))`(action: `[DynamicDelivery](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/DynamicDelivery)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)` |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [modelDependency](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/AiPackExtension#modelDependency(kotlin.Function1))`(action: `[ModelDependency](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/ModelDependency)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)` |

|                                                                              ### Public properties                                                                              |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DynamicDelivery](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/DynamicDelivery)                                                      | [dynamicDelivery](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/AiPackExtension#dynamicDelivery()) Contains the dynamic delivery settings for the AI pack. |
| [ModelDependency](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/ModelDependency)                                                      | [modelDependency](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/AiPackExtension#modelDependency()) The AI model which this AI pack depends upon.           |
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>` | [packName](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/AiPackExtension#packName()) The split name to assign to the AI pack.                              |

## Public functions

### dynamicDelivery

Added in 8.7.0  

```
@Incubating
fun dynamicDelivery(action: DynamicDelivery.() -> Unit): Unit
```  

|                                                                           See also                                                                           |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [dynamicDelivery](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/AiPackExtension#dynamicDelivery(kotlin.Function1)) |   |

### modelDependency

Added in 8.7.0  

```
@Incubating
fun modelDependency(action: ModelDependency.() -> Unit): Unit
```  

|                                                                           See also                                                                           |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [modelDependency](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/dsl/AiPackExtension#modelDependency(kotlin.Function1)) |   |

## Public properties

### dynamicDelivery

Added in 8.7.0  

```
val dynamicDelivery: DynamicDelivery
```

Contains the dynamic delivery settings for the AI pack.  

### modelDependency

Added in 8.7.0  

```
val modelDependency: ModelDependency
```

The AI model which this AI pack depends upon.  

### packName

Added in 8.7.0  

```
val packName: Property<String>
```

The split name to assign to the AI pack.