PendingCardActivationSession

public struct PendingCardActivationSession : Sendable

PendingCardActivationSession indicates the card which the Id&V has not been performed.

  • state() Asynchronous

    Fetches the state of the pending card activation.

    Throws

    clientError(_:) if the state is .appToAppSelected and it failed to retrieve its associated value or if any internal error encountered.

    Declaration

    Swift

    public func state() async throws -> PendingCardActivation.State

    Return Value

    State representing the current status of the pending card activation.

  • cardArt() Asynchronous

    Fetches the card art of the pending card for display purpose.

    Declaration

    Swift

    public func cardArt() async -> DigitalCard.CardArt?

    Return Value

    CardArt

  • cardMetaData() Asynchronous

    Fetches the card MetaData of the pending card.

    Declaration

    Swift

    public func cardMetaData() async -> DigitalCard.CardMetaData?

    Return Value

    CardMetaData

  • resume() Asynchronous

    Resumes the activation process. Application should call eventStream to handle each event.

    Throws

    clientError(_:) if resuming card activation fails or if any internal error encountered.

    Declaration

    Swift

    public func resume() async throws
  • cancel() Asynchronous

    Cancels the pending card activation.

    Throws

    clientError(_:) - if error encountered on reading card lifecycle or during cancellation.

    Declaration

    Swift

    public func cancel() async throws