PROTOCOL
public protocol PresentationService
Presentation service abstract protocol
var flow: FlowType
instance of a presentation FlowType
func startQrEngagement() async throws -> Data?
Generate a QR code to be shown to verifier (optional)
func receiveRequest() async throws -> [String: Any]
- Returns: The requested items. Receive request.
func sendResponse(userAccepted: Bool, itemsToSend: RequestItems, onSuccess: ((URL?) -> Void)?) async throws
Send response to verifier
- Parameters:
- userAccepted: True if user accepted to send the response
- itemsToSend: The selected items to send organized in document types and namespaces (see
RequestItems
)
Name | Description |
---|---|
userAccepted | True if user accepted to send the response |
itemsToSend | The selected items to send organized in document types and namespaces (see RequestItems ) |