MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QML NdefFilter Element

The NdefFilter element represents a filtering constraint for NDEF message records. More...

This element was introduced in Mobility 1.2.

Properties

Detailed Description

The NdefFilter element is part of the QtMobility.connectivity 1.2 module.

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

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

See also NearField and QNdefFilter.

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.

To match any number of records set both the minimum and maximum properties to -1.

This property group was introduced in Mobility 1.2.

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.

To match any number of records set both the minimum and maximum properties to -1.

This property group was introduced in Mobility 1.2.

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.

This property group was introduced in Mobility 1.2.