重要
此 Azure 通訊服務功能目前處於預覽狀態。 預覽中的功能可供公開使用,而且可供所有新的和現有的Microsoft客戶使用。
提供的預覽 API 和 SDK 並無服務等級協定。 建議您不要將其用於生產工作負載。 某些功能可能不受支援,或功能可能會受到限制。
如需詳細資訊,請參閱 Microsoft Azure 預覽版增補使用條款。
Azure 通訊服務引進了使用 .NET MAUI 和 React 原生 解決方案的跨平台開發。 此範例示範 Azure 通訊服務通話如何整合行動平台的 UI 連結庫,並建立系結,讓開發人員開始使用呼叫功能來建置。
適用於 .NET MAUI 的 Azure 通訊 UI 行動連結庫
此專案示範如何將 Azure 通訊 UI 連結庫整合到 .NET MAUI 應用程式中。 它會利用 Azure 通訊服務和原生 Azure 通訊服務 UI 連結庫來建置通話體驗,其同時具有語音和視訊通話功能。
下載程式碼
在 GitHub 上尋找此範例的專案。
功能
請參閱原生 UI 程式庫概觀 (部分內容可能是機器或 AI 翻譯)
必要條件
- Visual Studio 設定指示
- 具有有效訂用帳戶的 Azure 帳戶。 如需詳細資訊,請參閱免費建立帳戶。
- iOS 作業系統需求
- Android 需求
- Azure 通訊服務資源。 如需詳細資訊,請參閱建立 Azure 通訊服務資源。
- 執行驗證端點 (部分內容可能是機器或 AI 翻譯) 來擷取存取權杖的 Azure 函式。
執行範例應用程式
複製存放庫 (英文)。
適用於 Android
Visual Studio Mac/Windows 2022
- 瀏覽至
/AndroidMauiBindings
,然後在此目錄的終端機中執行./downloadJarScript.sh
。 應該啟用GitBash
或Windows Subsystem for Linux (WSL)
,在 Windows 上執行.sh
。 - 在 Visual Studio 中開啟
CommunicationCallingSampleMauiApp/CommunicationCallingSampleMauiApp.sln
- 編輯
CommunicationCallingSampleMauiApp/CommunicationCallingSampleMauiApp.csproj
並設定<TargetFrameworks>net7.0-android</TargetFrameworks>
。 - 在 Visual Studio 中選取 android 裝置/模擬器,然後執行
CommunicationCallingSampleMauiApp
應用程式。
針對 iOS
Visual Studio Mac 2022
- 瀏覽至
communication-services-ui-library-maui/iOSMauiBindings/ProxyLibs/CommunicationUI-Proxy
,然後在此目錄的終端機中執行./iOSFramework.sh -d
。 - 在 Visual Studio 中開啟
CommunicationCallingSampleMauiApp/CommunicationCallingSampleMauiApp.sln
- 編輯
CommunicationCallingSampleMauiApp/CommunicationCallingSampleMauiApp.csproj
並設定<TargetFrameworks>net7.0-ios</TargetFrameworks>
。 - 在 Visual Studio 中選取 [iOS 裝置/模擬器],然後執行
CommunicationCallingSampleMauiApp
應用程式。
重點和意見反饋
請瀏覽 GitHub,以深入了解和探索更多功能,並分享您的寶貴意見反應。
適用於 React Native 的 Azure 通訊 UI 行動連結庫
此專案示範將 Azure 通訊 UI 連結庫整合到 React Native 中,會利用原生 Azure 通訊 UI 連結庫和 Azure 通訊服務來建置具有語音和視訊通話功能的通話體驗。
下載程式碼
在 GitHub 上尋找此範例的專案。
功能
請參閱原生 UI 程式庫概觀 (部分內容可能是機器或 AI 翻譯)
必要條件
- Visual Studio 設定指示
- 具有有效訂用帳戶的 Azure 帳戶。 如需詳細資訊,請參閱免費建立帳戶。
- iOS 作業系統需求
- Android 需求
- Azure 通訊服務資源。 如需詳細資訊,請參閱建立 Azure 通訊服務資源。
- 執行驗證端點 (部分內容可能是機器或 AI 翻譯) 來擷取存取權杖的 Azure 函式。
- Node、Watchman 和 React Native CLI: 請參閱 React Native 環境設定指南。
- Yarn: 請參閱安裝指南
執行範例應用程式
瀏覽至 AzureCommunicationUIDemoApp/
:
- 執行
yarn install
針對 iOS
安裝 iOS 應用程式依賴項:
- 在終端機中,瀏覽至
AzureCommunicationUIDemoApp/ios/
: - 執行
pod install --repo-update
適用於 Android
建置 Android 應用程式相依性:
- 在終端機中,瀏覽至
AzureCommunicationUIDemoApp/android/
: - 執行
./gradlew build
執行
瀏覽回 AzureCommunicationUIDemoApp/
- 執行
yarn react-native start
- 開啟另一個終端機,瀏覽至
AzureCommunicationUIDemoApp/
資料夾,然後執行yarn react-native run-ios
或yarn react-native run-android
或者,您也可以從 .xcworkspace
檔案啟動 Xcode 來執行 iOS 應用程式,並在模擬器或 iOS 裝置上以設定 AzureCommunicationUIDemoApp
執行應用程式。
若要執行 Android 應用程式,您也可以在同步處理 gradle 之後,啟動 Android Studio 並在 Android 模擬器或 Android 裝置上執行。 有兩種方式可以同步 gradle:一是在 android 資料夾中使用命令 ./gradlew build
,另一種是使用 Android Studio。
重點和意見反饋
請瀏覽 GitHub,以深入了解和探索更多功能,並分享您的寶貴意見反應。