Kurulum
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
To integrate the Ink API, first add the dependencies in your app. From there,
you can access the different modules for your inking needs.
The Ink API library is available from the Google Maven repository. Add the
dependency to your app's build.gradle
file as shown:
Kotlin
dependencies {
val ink_version = "1.0.0-alpha01"
implementation("androidx.ink:ink-authoring:$ink_version")
implementation("androidx.ink:ink-brush:$ink_version")
implementation("androidx.ink:ink-geometry:$ink_version")
implementation("androidx.ink:ink-nativeloader:$ink_version1")
implementation("androidx.ink:ink-rendering:$ink_version")
implementation("androidx.ink:ink-strokes:$ink_version")
}
Groovy
dependencies {
def ink_version = "1.0.0-alpha01"
implementation "androidx.ink:ink-authoring:$ink_version"
implementation "androidx.ink:ink-brush:$ink_version"
implementation "androidx.ink:ink-geometry:$ink_version"
implementation "androidx.ink:ink-nativeloader:$ink_version"
implementation "androidx.ink:ink-rendering:$ink_version"
implementation "androidx.ink:ink-strokes:$ink_version"
}
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# Setup\n\nTo integrate the Ink API, first add the dependencies in your app. From there,\nyou can access the different modules for your inking needs.\n\nThe Ink API library is available from the Google Maven repository. Add the\ndependency to your app's `build.gradle` file as shown: \n\n### Kotlin\n\n```kotlin\ndependencies {\n val ink_version = \"1.0.0-alpha01\"\n\n implementation(\"androidx.ink:ink-authoring:$ink_version\")\n implementation(\"androidx.ink:ink-brush:$ink_version\")\n implementation(\"androidx.ink:ink-geometry:$ink_version\")\n implementation(\"androidx.ink:ink-nativeloader:$ink_version1\")\n implementation(\"androidx.ink:ink-rendering:$ink_version\")\n implementation(\"androidx.ink:ink-strokes:$ink_version\")\n}\n```\n\n### Groovy\n\n```groovy\ndependencies {\n def ink_version = \"1.0.0-alpha01\"\n\n implementation \"androidx.ink:ink-authoring:$ink_version\"\n implementation \"androidx.ink:ink-brush:$ink_version\"\n implementation \"androidx.ink:ink-geometry:$ink_version\"\n implementation \"androidx.ink:ink-nativeloader:$ink_version\"\n implementation \"androidx.ink:ink-rendering:$ink_version\"\n implementation \"androidx.ink:ink-strokes:$ink_version\"\n}\n```"]]