SBSDKLocationQRCode

@interface SBSDKLocationQRCode : SBSDKMachineReadableCode <MKAnnotation>

A specific subclass of SBSDKMachineReadableCode that represents a QR code with a geographic locations (geo:). Performs reverse geocoding to get address from longitude and latitude.

  • Designated initializer.

    Declaration

    Objective-C

    - (instancetype)initWithMetadata:(SBSDKMachineReadableCodeMetadata *)metadata
                            location:(CLLocation *)location;

    Swift

    init!(metadata: SBSDKMachineReadableCodeMetadata!, location: CLLocation!)

    Parameters

    metadata

    The machine readable code metadata to create the instance from.

    location

    The CLLocation extracted from the QR code.

  • The location.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) CLLocation *location;

    Swift

    var location: CLLocation! { get }
  • Placemark object, valid after geocoding finished.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) CLPlacemark *placemark;

    Swift

    var placemark: CLPlacemark! { get }
  • Whether the receiver still performs geocoding or not. KVO-able.

    Declaration

    Objective-C

    @property (readonly, getter=isGeocoding, nonatomic) BOOL geocoding;

    Swift

    var isGeocoding: Bool { get }