Protocols

The following protocols are available globally.

  • Implement this protocol to receive callbacks from a scanning session

    See more

    Declaration

    Objective-C

    @protocol BRScanResultsDelegate <NSObject>

    Swift

    protocol BRScanResultsDelegate : NSObjectProtocol
  • All BlinkReceipt results objects implement this protocol in order to provide an easy method for serializing results into JSON (or other formats). You can call dictionaryForSerializing on any results object or sub-object and get an NSDictionary* that is suitable for serialization (i.e. contains no custom classes)

    See more

    Declaration

    Objective-C

    @protocol BRSerializable

    Swift

    protocol BRSerializable