Member Junction
    Preparing search index...

    Action that generates and reads QR codes Supports generating QR codes from text/URLs and reading QR codes from base64 images

    // Generate QR code
    await runAction({
    ActionName: 'QR Code',
    Params: [{
    Name: 'Operation',
    Value: 'generate'
    }, {
    Name: 'Data',
    Value: 'https://example.com'
    }]
    });

    // Generate QR code with custom options
    await runAction({
    ActionName: 'QR Code',
    Params: [{
    Name: 'Operation',
    Value: 'generate'
    }, {
    Name: 'Data',
    Value: 'Contact: John Doe\nPhone: +1-555-123-4567\nEmail: john@example.com'
    }, {
    Name: 'Size',
    Value: 300
    }, {
    Name: 'ErrorCorrection',
    Value: 'H'
    }]
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    AuthorizesCaller: boolean

    True when the action authorizes its caller itself, so a public entry point such as the RunAction mutation may run it for an authenticated user without an MJ: Action Authorizations link. Set it only on an action that either checks an authorization the caller must hold, or reads and writes only with the caller's own permissions. Leave it false for an action that acts with more authority than its caller, or that reaches data or sends messages the caller chooses but could not otherwise reach.

    The engine reads the marker only from the class that runs, never from its parent classes. A subclass that overrides a marked action must declare the marker again.

    Methods

    • Executes QR code generation or reading operation

      Parameters

      • params: RunActionParams

        The action parameters containing:

        • Operation: 'generate' or 'read'
        • Data: Text/URL to encode (for generate) or base64 image data (for read)
        • Size: QR code size in pixels (default: 200, max: 1000) [generate only]
        • ErrorCorrection: Error correction level 'L', 'M', 'Q', 'H' (default: 'M') [generate only]
        • Margin: Quiet zone margin (default: 4) [generate only]
        • DarkColor: Dark module color (default: '#000000') [generate only]
        • LightColor: Light module color (default: '#FFFFFF') [generate only]

      Returns Promise<ActionResultSimple>

      QR code generation/reading results