IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

NdefFilter QML Type

Represents a filtering constraint for NDEF message records.

This type was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

NdefFilter QML Type

  • Import Statement: import QtNfc 5.12

  • Since: Qt 5.2

  • Group: NdefFilter is part of nfc-qml

Detailed Description

The NdefFilter type is used with the NearField type to read NDEF messages from NFC Forum tags that match a given structure.

 
Sélectionnez
NearField {
    filter: [
        NdefFilter {
            type: "urn:nfc:wkt:U"
            minimum: 1
            maximum: 1
        }
    ]
}

See Also

Property Documentation

 

maximum : int

This property holds the maximum number of records of the given type that must be in the NDEF message for it match.

The default maximum is UINT_MAX.

See Also

See also minimum

minimum : int

This property holds the minimum number of records of the given type that must be in the NDEF message for it match.

The default minimum is 1.

See Also

See also maximum

type : string

This property holds the NDEF record type that the filter matches. This property must be set to the fully qualified record type, i.e. including the NIS and NSS prefixes. For example set to urn:nfc:wkt:U to match NFC RTD-URI records.

typeNameFormat : QQmlNdefRecord::TypeNameFormat

This property holds the NDEF record name format type QQmlNdefRecord::TypeNameFormat.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+