PySide6.QtNfc.QNdefNfcTextRecord¶
- class QNdefNfcTextRecord¶
The
QNdefNfcTextRecord
class provides an NFC RTD-Text. More…Synopsis¶
Methods¶
def
__init__()
def
encoding()
def
locale()
def
setEncoding()
def
setLocale()
def
setText()
def
text()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
RTD-Text encapsulates a user displayable text record.
- class Encoding¶
This enum describes the text encoding standard used.
Constant
Description
QNdefNfcTextRecord.Utf8
The text is encoded with UTF-8.
QNdefNfcTextRecord.Utf16
The text is encoding with UTF-16.
- __init__()¶
Constructs an empty NFC text record of type
NfcRtd
.- __init__(other)
- Parameters:
other –
QNdefRecord
Constructs a new NFC text record that is a copy of
other
.Returns the encoding of the contents.
See also
- locale()¶
- Return type:
str
Returns the locale of the text record.
See also
Sets the enconding of the contents to
encoding
.See also
- setLocale(locale)¶
- Parameters:
locale – str
Sets the locale of the text record to
locale
.See also
- setText(text)¶
- Parameters:
text – str
Sets the contents of the text record to
text
.See also
- text()¶
- Return type:
str
Returns the contents of the text record as a string.
See also