wear compose remote

  
สิ่งที่ต้องทำ
อัปเดตล่าสุด รุ่นที่เสถียร รุ่นที่อาจได้รับการเผยแพร่ รุ่นเบต้า รุ่นอัลฟ่า
25 มีนาคม 2026 - - - 1.0.0-alpha01

การประกาศทรัพยากร Dependency

หากต้องการเพิ่มทรัพยากร Dependency ใน Wear Compose Remote คุณต้องเพิ่มที่เก็บ Maven ของ Google ลงในโปรเจ็กต์ อ่านข้อมูลเพิ่มเติมได้ที่ที่เก็บ Maven ของ Google

เพิ่มทรัพยากร Dependency สำหรับอาร์ติแฟกต์ที่ต้องการในไฟล์ build.gradle สำหรับ แอปหรือโมดูล

ดึงดูด

dependencies {
    // Use to implement wear compose.remotes
    //TODO: Confirm these dependencies
    implementation "androidx.wear.compose.remote:compose-remote:"

    // Use to implement wear compose.remote complications
    //TODO: Confirm these dependencies
    implementation "androidx.wear.compose.remote:compose-remote-complications-data-source:"
    // (Kotlin-specific extensions)
    //TODO: Confirm these dependencies
    implementation "androidx.wear.compose.remote:compose-remote-complications-data-source-ktx:"

    // Use to implement a compose.remote style and complication editor
    //TODO: Confirm these dependencies
    implementation "androidx.wear.compose.remote:compose-remote-editor:"

    // Can use to render complications.
    //TODO: Confirm these dependencies
    // This library is optional and compose.remotes may have custom implementation for rendering
    // complications.
    //TODO: Confirm these dependencies
    implementation "androidx.wear.compose.remote:compose-remote-complications-rendering:"
}

Kotlin

dependencies {
    // Use to implement wear compose.remotes
    //TODO: Confirm these dependencies
    implementation("androidx.wear.compose.remote:compose-remote:")

    // Use to implement wear compose.remote complications
    //TODO: Confirm these dependencies
    implementation "androidx.wear.compose.remote:compose-remote-complications-data-source:"
    // (Kotlin-specific extensions)
    //TODO: Confirm these dependencies
    implementation "androidx.wear.compose.remote:compose-remote-complications-data-source-ktx:"

    // Use to implement a compose.remote style and complication editor
    //TODO: Confirm these dependencies
    implementation("androidx.wear.compose.remote:compose-remote-editor:")

    // Can use to render complications.
    //TODO: Confirm these dependencies
    // This library is optional and compose.remotes may have custom implementation for rendering
    // complications.
    //TODO: Confirm these dependencies
    implementation "androidx.wear.compose.remote:compose-remote-complications-rendering:"
}

ดูข้อมูลเพิ่มเติมเกี่ยวกับการพึ่งพาได้ที่เพิ่มการพึ่งพาบิลด์

ความคิดเห็น

ความคิดเห็นของคุณช่วยเราปรับปรุง Jetpack ให้ดียิ่งขึ้น โปรดแจ้งให้เราทราบหากพบปัญหาใหม่หรือมี ไอเดียในการปรับปรุงไลบรารีนี้ โปรดดูปัญหาที่มีอยู่ ในไลบรารีนี้ก่อนสร้างปัญหาใหม่ คุณสามารถโหวตปัญหาที่มีอยู่ได้โดย คลิกปุ่มดาว

สร้างปัญหาใหม่

ดูข้อมูลเพิ่มเติมได้ในเอกสารประกอบของเครื่องมือติดตามปัญหา

รุ่น 1.0

เวอร์ชัน 1.0.0-alpha01

25 มีนาคม 2026

androidx.wear.compose.remote:remote-material3:1.0.0-alpha01 ได้รับการเผยแพร่แล้ว เวอร์ชัน 1.0.0-alpha01 มีการเปลี่ยนแปลงเหล่านี้

การเปลี่ยนแปลง API

  • เปิดเผย RemoteTextButton API สาธารณะ (I169e3, b/492476015)
  • เปิดเผย RemoteIconButton API สาธารณะ (Id7c71, b/492476015)
  • เปิดเผย RemoteButtonGroup API สาธารณะ (Ibfc22, b/492476015)
  • เปิดเผย RemoteButton, RemoteCompactButton, RemoteButtonDefaults และ RemoteButtonColors เป็น API สาธารณะ (I3bcdd, b/492476015)
  • เปิดเผย RemoteIcon เป็น API สาธารณะ (I0cc79, b/492476015)
  • เปิดเผย RemoteText เป็น API สาธารณะ (I8a11a, b/492476015)
  • เปิดเผย RemoteFloat.asRemoteDp() (I28b36, b/446824085)