Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • QRCode
    • CosignatureSignedTransactionQR

Implements

Index

Constructors

constructor

  • Construct a Address QR Code out of the dHealth public key.

    Parameters

    • singedTransaction: any
    • networkType: number
    • generationHash: string
    • type: QRCodeType = QRCodeType.CosignatureSignedTransaction

    Returns CosignatureSignedTransactionQR

Properties

Optional Readonly base64

base64?: string

Readonly encrypted

encrypted: boolean = false

Readonly generationHash

generationHash: string

Readonly networkType

networkType: number

Readonly singedTransaction

singedTransaction: any

Readonly type

type: QRCodeType = QRCodeType.CosignatureSignedTransaction

The type of the QR Code.

Methods

getCorrectionLevel

  • The getCorrectionLevel() method should return the QR Code correction level.

    Sub-classes may overload this method to provide with a different correction level.

    Returns CorrectionLevel

getSchema

  • The getSchema() method should return an instance of a sub-class of QRCodeDataSchema which describes the QR Code data.

    Returns QRCodeDataSchema

getTypeNumber

  • getTypeNumber(): number

toBase64

  • Generate QRcode image Base64.

    The returned string can be put in the src attribute of a <img /> tag directly in HTML. The produced image will be a PNG.

    Parameters

    Returns Observable<string>

    Return image data in Base64.

toCanvas

toJSON

  • toJSON(): string
  • The toJSON() method should return the JSON representation of the QR Code content.

    Returns string

toObject

toString

Static fromJSON

  • Parse a JSON QR code content into an CosignatureSignedTransactionQR object.

    throws

    {Error} On empty json given.

    throws

    {Error} On missing type field value.

    throws

    {Error} On unrecognized QR code type field value.

    Parameters

    • json: string
    • transactionCreateFromPayload: (payload: string) => any
        • (payload: string): any
        • Parameters

          • payload: string

          Returns any

    Returns CosignatureSignedTransactionQR

Generated using TypeDoc