Setup
Stay organized with collections
Save and categorize content based on your preferences.
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"
}
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-10-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-08 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```"]]