קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Wear Watch Face Push
Watch Face Push מאפשר לאפליקציה ל-Wear OS להתקין תצוגת שעון בשעון באופן פרוגרמטי.
העדכון האחרון |
גרסה יציבה |
גרסה מועמדת להפצה |
גרסת בטא |
גרסה אלפא |
18 ביוני 2025 |
- |
- |
- |
1.0.0-alpha01 |
הצהרת יחסי תלות
כדי להוסיף תלות ב-Wear Watch Face Push, צריך להוסיף את המאגר של Google Maven לפרויקט.
למידע נוסף, אפשר לקרוא את המאמר מאגר Maven של Google.
מוסיפים את יחסי התלות של הארטיפקטים הנדרשים בקובץ build.gradle
של האפליקציה או המודול:
Groovy
repositories {
google() // For the watchfacepush library itself
}
dependencies {
implementation "androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01"
}
Kotlin
repositories {
google() // For the watchfacepush library itself
}
dependencies {
implementation("androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01")
}
בנוסף, אם האפליקציה צריכה ליצור אסימונים לתצוגת שעון בזמן הריצה, צריך להוסיף את התלות הבאה:
Groovy
repositories {
google() // For the validator-push library itself
maven {
url "https://jitpack.io" // For dependencies of the validator-push library
content {
includeGroup "com.github.xgouchet"
}
}
}
dependencies {
implementation "com.google.android.wearable.watchface.validator:validator-push:1.0.0-alpha06"
}
Kotlin
repositories {
google() // For the validator-push library itself
maven {
url = uri("https://jitpack.io") // For dependencies of the validator-push library
content {
includeGroup("com.github.xgouchet")
}
}
}
dependencies {
implementation("com.google.android.wearable.watchface.validator:validator-push:1.0.0-alpha06")
}
מידע נוסף על יחסי תלות זמין במאמר הוספת יחסי תלות ל-build.
משוב
המשוב שלכם עוזר לנו לשפר את Jetpack. אם נתקלתם בבעיות חדשות או שיש לכם רעיונות לשיפור הספרייה הזו, נשמח לשמוע מכם. לפני שיוצרים בעיה חדשה, כדאי לעיין בבעיות הקיימות בספרייה הזו. כדי להצביע על בעיה קיימת, לוחצים על לחצן הכוכב.
דיווח על בעיה חדשה
מידע נוסף זמין במסמכי התיעוד של Issue Tracker.
גירסה 1.0
גרסה 1.0.0-alpha01
18 ביוני 2025
androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01
משוחרר. הגרסה 1.0.0-alpha01 מכילה את ההוספות האלה.
שינויים ב-API
- הוספנו את Watch Face Push API שמאפשר לאפליקציה ל-Wear OS להתקין תצוגת שעון בשעון באופן פרוגרמטי.
- ממשק ה-API פורסם בעבר בתור
:wear:watchface:watchface-push
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-22 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-08-22 (שעון UTC)."],[],[],null,["# wear watchfacepush\n\nWear Watch Face Push\n====================\n\nAPI Reference \n[androidx.wear.watchfacepush](/reference/kotlin/androidx/wear/watchfacepush/package-summary) \nWatch Face Push allows a Wear OS app to install a watch face on a watch programmatically. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|---------------|----------------|-------------------|--------------|------------------------------------------------------------------------------|\n| June 18, 2025 | - | - | - | [1.0.0-alpha01](/jetpack/androidx/releases/wear-watchfacepush#1.0.0-alpha01) |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on Wear Watch Face Push, you must add the Google Maven\nrepository to your project.\nRead [Google's Maven repository](/studio/build/dependencies#google-maven)\nfor more information.\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\n### Groovy\n\n```groovy\nrepositories {\n google() // For the watchfacepush library itself\n}\ndependencies {\n implementation \"androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01\"\n}\n```\n\n### Kotlin\n\n```kotlin\nrepositories {\n google() // For the watchfacepush library itself\n}\n\ndependencies {\n implementation(\"androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01\")\n}\n```\nAdditionally, if the app needs to generate tokens for a watch face at runtime, add the following dependency: \n\n### Groovy\n\n```groovy\nrepositories {\n google() // For the validator-push library itself\n maven {\n url \"https://jitpack.io\" // For dependencies of the validator-push library\n content {\n includeGroup \"com.github.xgouchet\"\n }\n }\n}\n\ndependencies {\n implementation \"com.google.android.wearable.watchface.validator:validator-push:1.0.0-alpha06\"\n}\n```\n\n### Kotlin\n\n```kotlin\nrepositories {\n google() // For the validator-push library itself\n maven {\n url = uri(\"https://jitpack.io\") // For dependencies of the validator-push library\n content {\n includeGroup(\"com.github.xgouchet\")\n }\n }\n}\n\ndependencies {\n implementation(\"com.google.android.wearable.watchface.validator:validator-push:1.0.0-alpha06\")\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:1235337%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=1235337&template=1726812)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nVersion 1.0\n-----------\n\n### Version 1.0.0-alpha01\n\nJune 18, 2025\n\n`androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01` is released. Version 1.0.0-alpha01 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/e8af6ab7417811bf386c52a59ab5d0b94d194eeb/wear/watchfacepush/watchfacepush).\n\n**API Changes**\n\n- Added the Watch Face Push API which allows a Wear OS app to install a watch face on a watch programmatically.\n- The API was previously published as `:wear:watchface:watchface-push`"]]