CLASS
Contents
- Properties
status
flow
- Methods
init(parameters:)
startQrEngagement()
receiveRequest()
sendResponse(userAccepted:itemsToSend:onSuccess:)
public class BlePresentationService : PresentationService
Implements proximity attestation presentation with QR to BLE data transfer Implementation is based on the ISO/IEC 18013-5 specification
public var status: TransferStatus = .initializing
public var flow: FlowType
public init(parameters: [String: Any]) throws
public func startQrEngagement() async throws -> Data?
Generate device engagement QR code The holder app should present the returned code to the verifier
- Returns: The image data for the QR code
public func receiveRequest() async throws -> [String: Any]
Receive request via BLE
- Returns: The requested items.
public func sendResponse(userAccepted: Bool, itemsToSend: RequestItems, onSuccess: ((URL?) -> Void)? ) async throws
Send response via BLE
- Parameters:
- userAccepted: True if user accepted to send the response
- itemsToSend: The selected items to send organized in document types and namespaces
Name | Description |
---|---|
userAccepted | True if user accepted to send the response |
itemsToSend | The selected items to send organized in document types and namespaces |