Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.12 KB

PresentationService.md

File metadata and controls

54 lines (37 loc) · 1.12 KB

PROTOCOL

PresentationService

public protocol PresentationService

Presentation service abstract protocol

Properties

flow

var flow: FlowType

instance of a presentation FlowType

Methods

startQrEngagement()

func startQrEngagement() async throws -> Data?

Generate a QR code to be shown to verifier (optional)

receiveRequest()

func receiveRequest() async throws -> [String: Any]
  • Returns: The requested items. Receive request.

sendResponse(userAccepted:itemsToSend:onSuccess:)

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)

Parameters

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)