CBLCameraQRDecoding
Objective-C
@interface CBLCameraQRDecoding : NSObject
Swift
class CameraQRDecoding : NSObject
The CBLCameraQRDecoding class contains logic for decoding the QR codes cameras present for connection into WiFi SSID/password data.
-
The shared QR decoding object.
Declaration
Objective-C
@property (class, nonatomic, readonly, nonnull) CBLCameraQRDecoding *sharedInstance;
Swift
class var shared: CameraQRDecoding { get }
-
Attempt to decode the given QR code string into WiFi connection details.
Declaration
Objective-C
- (CBLCameraWiFiDetails *_Nullable)decodeQRCode:(NSString *_Nonnull)qrCode;
Swift
func decode(qrCode: String) -> CameraWiFiDetails?
Parameters
qrCode
The string that was encoded in a camera’s QR image.
Return Value
Returns a
CBLCameraWiFiDetails
object if decoding was successful, otherwisenil
.