自 2023 年 3 月 15 日起,我們將不再銷售 Glass Enterprise Edition。我們將繼續支援 Glass Enterprise Edition,直到 2023 年 9 月 15 日為止。這份說明文件已封存,目前也是歷來的參考資源,旨在協助開發人員積極維護 Glass Enterprise Edition 所開發的應用程式。詳情請造訪
說明中心。
程式碼範例
以下範例可協助您建構 Google Glass Enterprise Edition 2 的應用程式。
前往 GitHub 查看範例 open_in_new
卡片範例
以下範例說明如何建構基本 UI:
查看卡片範例open_in_new
Camera2 範例
以下範例說明如何使用 Camera2 API 拍攝相片和影片:
查看 Camera2 範例 open_in_new
圖庫範例
以下範例說明如何瀏覽及刪除相片和影片:
查看圖片庫範例 open_in_new
QR 圖碼掃描器範例
以下範例說明如何透過相機掃描 QR 圖碼。例如使用 CameraX API 和 ZXing 程式庫。
查看 QR 圖碼掃描器範例open_in_new
語音辨識範例
下列範例應用程式示範內建語音辨識功能。
查看語音辨識範例 open_in_new
Notes 範例
這個範例應用程式示範內建語音指令功能,以及如何將其與內建語音辨識功能搭配使用。
查看 Notes 範例 open_in_new
語音指令重新載入中範例
下列範例應用程式示範如何重新載入語音指令,以及如何為語音指令啟用偵錯模式。
查看語音指令的重新載入範例 open_in_new
手勢偵測工具範例
Glass Enterprise Edition 2 裝置的基本操作包括偵測並回應觸控板上的手勢事件。輸入和感應器頁面含有更多相關資訊。請查看此實作範例。
查看手勢偵測器範例 open_in_new
WebRTC 範例
呼叫中心應用程式範例,示範如何使用 WebRTC 顯示視訊會議
查看 WebRTC 範例 open_in_new
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-02-14 (世界標準時間)。
[null,null,["上次更新時間:2023-02-14 (世界標準時間)。"],[[["This page provides a collection of code samples to help developers build apps for Glass Enterprise Edition 2."],["The samples demonstrate key functionalities like using the Camera2 API, building basic UI, scanning QR codes, and leveraging voice recognition."],["Developers can explore samples for browsing and deleting media, implementing gesture navigation, and utilizing WebRTC for video conferencing."],["Each sample includes source code and documentation on GitHub, linked for easy access and integration into Glass Enterprise Edition 2 applications."]]],[]]