kaios-types
    Preparing search index...

    Interface MozNFCManager

    Interface for managing NFC operations.

    interface MozNFCManager {
        checkP2PRegistration(manifestUrl: string): Promise<boolean>;
        notifySendFileStatus(status: number, requestId: string): void;
        notifyUserAcceptedP2P(manifestUrl: string): void;
        powerOff(): Promise<void>;
        startPoll(): Promise<void>;
        stopPoll(): Promise<void>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Checks P2P registration status for an app.

      Parameters

      • manifestUrl: string

        The manifest URL of the application.

      Returns Promise<boolean>

      nfc-manager

      CertifiedApps

    • Notifies the status of a send file request.

      Parameters

      • status: number

        The status code.

      • requestId: string

        The request ID.

      Returns void

      nfc-manager

      CertifiedApps

    • Notifies that the user accepted a P2P sharing request.

      Parameters

      • manifestUrl: string

        The manifest URL of the application.

      Returns void

      nfc-manager

      CertifiedApps

    • Powers off the NFC controller.

      Returns Promise<void>

      nfc-manager

      CertifiedApps

    • Starts polling for NFC tags and peers.

      Returns Promise<void>

      nfc-manager

      CertifiedApps

    • Stops polling for NFC tags and peers.

      Returns Promise<void>

      nfc-manager

      CertifiedApps