appfunctions

  
TODO
最近更新時間 穩定版 候選版 Beta 版 Alpha 版
2025 年 5 月 7 日 - - - 1.0.0-alpha01

宣告依附元件

如要新增 appfunctions 的依附元件,您必須將 Google Maven 存放區新增至專案。詳情請參閱 Google 的 Maven 存放區

在應用程式或模組的 build.gradle 檔案中,新增所需構件的依附元件:

Groovy

dependencies {
    implementation "androidx.appfunctions:appfunctions:1.0.0-alpha01"
    implementation "androidx.appfunctions:appfunctions-service:1.0.0-alpha01"
    implementation "androidx.appfunctions:appfunctions-compiler:1.0.0-alpha01"
}

Kotlin

dependencies {
    implementation("androidx.appfunctions:appfunctions:1.0.0-alpha01")
    implementation("androidx.appfunctions:appfunctions-service:1.0.0-alpha01")
    implementation("androidx.appfunctions:appfunctions-compiler:1.0.0-alpha01")
}

如要進一步瞭解依附元件,請參閱「新增建構依附元件」一文。

意見回饋

您的意見可協助我們改善 Jetpack。如果您發現新問題,或是有改進這個程式庫的建議,請告訴我們。回報新問題前,請先查看這個程式庫的現有問題。只要按一下星號按鈕,即可投票給現有的問題。

建立新問題

詳情請參閱 Issue Tracker 文件

這個構件沒有任何版本資訊。

1.0 版本

1.0.0-alpha01 版

2025 年 5 月 7 日

發布 androidx.appfunctions:appfunctions:1.0.0-alpha01androidx.appfunctions:appfunctions-compiler:1.0.0-alpha01androidx.appfunctions:appfunctions-service:1.0.0-alpha01。1.0.0-alpha01 版包含這些修訂版本

新功能

AppFunctions Jetpack 程式庫是建立在 android.app.appfunctions 平台 API 之上。這個程式庫可簡化向 Google 助理公開應用程式功能的程序,並讓 Google 助理與應用程式公開的函式互動。

  • androidx.appfunctions:appfunctions:用於管理 (啟用/停用) AppFunctions 及與其互動 (搜尋/執行) 的核心用戶端 API。
  • androidx.appfunctions:appfunctions-service:服務端 API,可輕鬆將應用程式功能公開為 AppFunctions
  • androidx.appfunctions:appfunctions-compiler:需要 KSP 編譯器來產生必要程式碼,以便公開 AppFunctions