Skip to content

Latest commit

 

History

History
72 lines (51 loc) · 1.27 KB

FaultPresentationService.md

File metadata and controls

72 lines (51 loc) · 1.27 KB

CLASS

FaultPresentationService

Contents

  • Properties
    • status
    • flow
  • Methods
    • init(msg:)
    • init(error:)
    • startQrEngagement()
    • receiveRequest()
    • sendResponse(userAccepted:itemsToSend:onSuccess:)
public class FaultPresentationService: PresentationService

Fault presentation service. Used to communicate error state to the user

Properties

status

public var status: TransferStatus = .error

flow

public var flow: FlowType = .other

Methods

init(msg:)

public init(msg: String)

init(error:)

public init(error: Error)

startQrEngagement()

public func startQrEngagement() async throws -> Data?

receiveRequest()

public func receiveRequest() async throws -> [String : Any]

sendResponse(userAccepted:itemsToSend:onSuccess:)

public func sendResponse(userAccepted: Bool, itemsToSend: RequestItems,  onSuccess: ((URL?) -> Void)?) async throws

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)