MLKitBarcodeScanning 框架参考
BarcodeWifi
class BarcodeWifi : NSObject
WIFI:
或类似二维码类型的 Wi-Fi 网络参数。
-
声明
Swift
var ssid: String? { get }
-
声明
Swift
var password: String? { get }
-
-
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-22。
[null,null,["最后更新时间 (UTC):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"]]