MLKitBarcodeScanning 架構參考資料
BarcodeWifi
class BarcodeWifi : NSObject
WIFI:
或類似 QR code 類型的 Wi-Fi 網路參數。
-
聲明
Swift
var ssid: String? { get }
-
聲明
Swift
var password: String? { get }
-
-
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-22 (世界標準時間)。
[null,null,["上次更新時間:2024-08-22 (世界標準時間)。"],[[["BarcodeWifi objects store Wi-Fi network information like SSID, password, and encryption type extracted from QR codes."],["These objects provide read-only access to the SSID, password, and encryption type of the Wi-Fi network."],["The encryption type is represented by the MLKBarcodeWiFiEncryptionType enum."],["Direct initialization of BarcodeWifi objects is not allowed."]]],["The `BarcodeWifi` class extracts Wi-Fi network details from a QR code. It provides three key properties: `ssid` (the Wi-Fi network name), `password` (the network password), and `type` (the network's encryption type). These properties are read-only (get). The class's initializer, `-init`, is marked as unavailable, indicating instances are created differently, likely through parsing a QR code.\n"]]