Show / Hide Table of Contents

    Class QRCodeMiniManager

    The QRCodeMiniManager is a simple wrapper around the Microsoft.MixedReality.QR.QRCodeWatcher, to reissue qr code events on the main thread, where they can be acted on safely.

    Inheritance
    Object
    QRCodeMiniManager
    Namespace: Microsoft.MixedReality.WorldLocking.Samples.Advanced.QRSpacePins
    Assembly: cs.temp.dll.dll
    Syntax
    public class QRCodeMiniManager : MonoBehaviour
    Remarks

    The events are slightly simplified to the uniform pattern of the void QRCodeFunction(qrCode) defined here. No other interpretation or processing of the events is done. Events are received (on another thread) from the QRCodeWatcher, then reissued on the main thread in the next Update loop. Note that since they are received asynchronously, no exact guarantees can be made about the order in which they are called on the main thread. But in general (and in best effort) they will be called in the order in which the asynchronous events are dispatched, and on the next Update after the events are originally invoked.

    Properties

    IsSupported

    Get accessor for whether QRCodeWatcher reports as supported.

    Declaration
    public bool IsSupported { get; }
    Property Value
    Type Description
    Boolean

    OnQRAdded

    Callback when a new QR code is added.

    Declaration
    public QRCodeMiniManager.QRCodeFunction OnQRAdded { get; set; }
    Property Value
    Type Description
    QRCodeMiniManager.QRCodeFunction

    OnQREnumerated

    Callback when the enumeration is complete.

    Declaration
    public QRCodeMiniManager.QRCodeFunction OnQREnumerated { get; set; }
    Property Value
    Type Description
    QRCodeMiniManager.QRCodeFunction
    Remarks

    Cached QR codes will have Added and Updated events BEFORE the enumeration complete. Newly seen QR codes will only start to appear after the enumeration complete event. https://github.com/chgatla-microsoft/QRTracking/issues/2

    OnQRRemoved

    Callback when a previously added QR code is removed.

    Declaration
    public QRCodeMiniManager.QRCodeFunction OnQRRemoved { get; set; }
    Property Value
    Type Description
    QRCodeMiniManager.QRCodeFunction

    OnQRUpdated

    Callback when a previously added QR code is updated.

    Declaration
    public QRCodeMiniManager.QRCodeFunction OnQRUpdated { get; set; }
    Property Value
    Type Description
    QRCodeMiniManager.QRCodeFunction
    Back to top Generated by DocFX