/ohos5.0/foundation/communication/nfc/test/unittest/services/tags_test/ |
H A D | ndef_tag_test.cpp | 100 ASSERT_TRUE(ndef != nullptr); 132 std::string uid = ndef->GetTagUid(); 165 bool writable = ndef->IsNdefWritable(); 177 int result = ndef->ReadNdef(ndefMessage); 189 int result = ndef->WriteNdef(msg); 212 int result = ndef->EnableReadOnly(); 259 ndef->SetTimeout(timeout); 295 bool isConnected = ndef->IsConnected(); 350 int result = ndef->Connect(); 361 int result = ndef->Close(); [all …]
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202211/ |
H A D | js-apidiff-communication.md | 8 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef|@ohos.nfc.tag.d.ts| 9 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:makeUriRecord|@ohos.nfc.tag.d.ts| 10 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:makeTextRecord|@ohos.nfc.tag.d.ts| 11 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:makeMimeRecord|@ohos.nfc.tag.d.ts| 12 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:makeExternalRecord|@ohos.nfc.tag.d.ts| 13 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| 14 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| 15 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:messageToBytes|@ohos.nfc.tag.d.ts|
|
/ohos5.0/foundation/communication/nfc/services/src/tag/ |
H A D | tag_dispatcher.cpp | 79 std::string ndef = msg; in HandleNdefDispatch() local 81 ndefCbRes_ = ndefCb_->OnNdefMsgDiscovered(tagUid, ndef, msgType); in HandleNdefDispatch() 93 ndef = NfcSdkCommon::IntToHexString(btData->vendorPayload_.length() / HEX_BYTE_LEN); in HandleNdefDispatch() 94 ndef.append(btData->vendorPayload_); in HandleNdefDispatch() 95 ndef.append(btData->macAddrOrg_); in HandleNdefDispatch() 96 ndef.append(NfcSdkCommon::StringToHexString(btData->name_)); in HandleNdefDispatch() 99 ndef = ""; in HandleNdefDispatch() 109 ndef = wifiData->vendorPayload_; in HandleNdefDispatch() 116 ndefCbRes_ = ndefCb_->OnNdefMsgDiscovered(tagUid, ndef, msgType); in HandleNdefDispatch()
|
H A D | ndef_wifi_data_parser.cpp | 223 std::shared_ptr<NdefMessage> ndef = NdefMessage::GetNdefMessage(msg); in CheckWifiRecord() local 224 if (ndef == nullptr || (ndef->GetNdefRecords().size() == 0)) { in CheckWifiRecord() 228 std::vector<std::shared_ptr<NdefRecord>> records = ndef->GetNdefRecords(); in CheckWifiRecord()
|
H A D | ndef_bt_data_parser.cpp | 431 std::shared_ptr<NdefMessage> ndef = NdefMessage::GetNdefMessage(msg); in CheckBtRecord() local 432 if (ndef == nullptr || (ndef->GetNdefRecords().size() == 0)) { in CheckBtRecord() 436 std::shared_ptr<NdefRecord> record = ndef->GetNdefRecords()[0]; in CheckBtRecord()
|
H A D | ndef_har_data_parser.cpp | 52 std::shared_ptr<NdefMessage> ndef = NdefMessage::GetNdefMessage(msg); in TryNdef() local 53 if (ndef == nullptr) { in TryNdef() 57 std::vector<std::shared_ptr<NdefRecord>> records = ndef->GetNdefRecords(); in TryNdef()
|
/ohos5.0/foundation/communication/nfc/interfaces/inner_api/controller/ |
H A D | ndef_msg_callback_stub.cpp | 35 bool NdefMsgCallbackStub::OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, i… in OnNdefMsgDiscovered() argument 39 return callback_->OnNdefMsgDiscovered(tagUid, ndef, ndefMsgType); in OnNdefMsgDiscovered() 91 std::string ndef = data.ReadString(); in RemoteNdefMsgDiscovered() local 94 bool res = OnNdefMsgDiscovered(tagUid, ndef, type); in RemoteNdefMsgDiscovered()
|
H A D | ndef_msg_callback_stub.h | 39 …bool OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgType) over…
|
/ohos5.0/docs/en/release-notes/api-diff/monthly-202211/ |
H A D | js-apidiff-communication.md | 8 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef|@ohos.nfc.tag.d.ts| 9 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: makeUriRecord|… 10 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: makeTextRecord… 11 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: makeMimeRecord… 12 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: makeExternalRe… 13 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: createNdefMess… 14 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: createNdefMess… 15 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: messageToBytes…
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/ |
H A D | js-apis-nfcTag.md | 796 ## tag.ndef.makeUriRecord<sup>9+</sup> 833 let ndefRecord : tag.NdefRecord = tag.ndef.makeUriRecord(uri); 845 ## tag.ndef.makeTextRecord<sup>9+</sup> 897 ## tag.ndef.makeMimeRecord<sup>9+</sup> 947 ## tag.ndef.makeExternalRecord<sup>9+</sup> 1000 ## tag.ndef.messageToBytes<sup>9+</sup> 1038 console.log("ndef createNdefMessage, ndefMessage: " + ndefMessage); 1039 let rawData2 = tag.ndef.messageToBytes(ndefMessage); 1045 ## tag.ndef.createNdefMessage<sup>9+</sup> 1088 ## tag.ndef.createNdefMessage<sup>9+</sup> [all …]
|
H A D | js-apis-nfctech.md | 458 // let ndefMessage : tag.NdefMessage = tag.ndef.createNdefMessage(...); 462 console.info("ndef ndefRecords number: " + ndefRecords.length); 496 console.info("ndef ndefTagType: " + ndefTagType); 521 console.info("ndef ndefMessage: " + ndefMessage); 547 console.info("ndef isNdefWritable: " + isWritable); 728 console.info("ndef writeNdef Promise success."); 795 console.info("ndef writeNdef AsyncCallback success."); 839 console.info("ndef canSetReadOnly: " + canSetReadOnly); 890 console.info("ndef setReadOnly Promise success."); 952 console.info("ndef setReadOnly AsyncCallback success."); [all …]
|
/ohos5.0/foundation/communication/nfc/services/src/ipc/controller/ |
H A D | ndef_msg_callback_proxy.cpp | 27 bool NdefMsgCallbackProxy::OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, … in OnNdefMsgDiscovered() argument 39 data.WriteString(ndef); in OnNdefMsgDiscovered()
|
H A D | ndef_msg_callback_proxy.h | 30 …bool OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgType) over…
|
/ohos5.0/docs/en/application-dev/reference/apis-connectivity-kit/ |
H A D | js-apis-nfcTag.md | 796 ## tag.ndef.makeUriRecord<sup>9+</sup> 833 let ndefRecord : tag.NdefRecord = tag.ndef.makeUriRecord(uri); 845 ## tag.ndef.makeTextRecord<sup>9+</sup> 897 ## tag.ndef.makeMimeRecord<sup>9+</sup> 947 ## tag.ndef.makeExternalRecord<sup>9+</sup> 1000 ## tag.ndef.messageToBytes<sup>9+</sup> 1038 console.log("ndef createNdefMessage, ndefMessage: " + ndefMessage); 1039 let rawData2 = tag.ndef.messageToBytes(ndefMessage); 1045 ## tag.ndef.createNdefMessage<sup>9+</sup> 1088 ## tag.ndef.createNdefMessage<sup>9+</sup> [all …]
|
H A D | js-apis-nfctech.md | 458 // let ndefMessage : tag.NdefMessage = tag.ndef.createNdefMessage(...); 462 console.info("ndef ndefRecords number: " + ndefRecords.length); 496 console.info("ndef ndefTagType: " + ndefTagType); 521 console.info("ndef ndefMessage: " + ndefMessage); 547 console.info("ndef isNdefWritable: " + isWritable); 728 console.info("ndef writeNdef Promise success."); 795 console.info("ndef writeNdef AsyncCallback success."); 839 console.info("ndef canSetReadOnly: " + canSetReadOnly); 890 console.info("ndef setReadOnly Promise success."); 952 console.info("ndef setReadOnly AsyncCallback success."); [all …]
|
/ohos5.0/foundation/communication/nfc/interfaces/inner_api/common/ |
H A D | indef_msg_callback.h | 24 …virtual bool OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgTy…
|
/ohos5.0/foundation/communication/nfc/frameworks/js/napi/tag/ |
H A D | nfc_napi_tag.cpp | 598 napi_value ndef = nullptr; in RegisterNdefStaticFunctions() local 599 napi_create_object(env, &ndef); in RegisterNdefStaticFunctions() 600 napi_define_properties(env, ndef, sizeof(desc) / sizeof(desc[0]), desc); in RegisterNdefStaticFunctions() 601 napi_set_named_property(env, exports, "ndef", ndef); in RegisterNdefStaticFunctions()
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/ |
H A D | js-apidiff-communication.md | 130 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef|@ohos.nfc.tag.d.ts| 131 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:makeUriRecord|@ohos.nfc.tag.d.ts| 132 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:makeTextRecord|@ohos.nfc.tag.d.ts| 133 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:makeMimeRecord|@ohos.nfc.tag.d.ts| 134 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:makeExternalRecord|@ohos.nfc.tag.d.ts| 135 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| 136 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| 137 |新增|NA|模块名: ohos.nfc.tag<br>类名: ndef<br>方法名 or 属性名:messageToBytes|@ohos.nfc.tag.d.ts|
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta4/ |
H A D | js-apidiff-communication.md | 130 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef|@ohos.nfc.tag.d.ts| 131 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: makeUriRecord|… 132 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: makeTextRecord… 133 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: makeMimeRecord… 134 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: makeExternalRe… 135 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: createNdefMess… 136 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: createNdefMess… 137 |Added|NA|Module name: ohos.nfc.tag<br>Class name: ndef<br>Method or attribute name: messageToBytes…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-communication.md | 571 |新增|NA|类名:ndef;<br>方法or属性:function makeUriRecord(uri: string): NdefRecord;|@ohos.nfc.tag.d.ts| 572 |新增|NA|类名:ndef;<br>方法or属性:function makeTextRecord(text: string, locale: string): NdefRecord;|@ohos.… 573 |新增|NA|类名:ndef;<br>方法or属性:function makeMimeRecord(mimeType: string, mimeData: number[]): NdefRecord… 574 |新增|NA|类名:ndef;<br>方法or属性:function makeExternalRecord(domainName: string, type: string, externalDat… 575 |新增|NA|类名:ndef;<br>方法or属性:function createNdefMessage(data: number[]): NdefMessage;|@ohos.nfc.tag.d.… 576 |新增|NA|类名:ndef;<br>方法or属性:function createNdefMessage(ndefRecords: NdefRecord[]): NdefMessage;|@ohos… 577 |新增|NA|类名:ndef;<br>方法or属性:function messageToBytes(ndefMessage: NdefMessage): number[];|@ohos.nfc.ta…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-communication.md | 571 |Added|NA|Class name: ndef;<br>Method or attribute name: function makeUriRecord(uri: string): NdefR… 572 |Added|NA|Class name: ndef;<br>Method or attribute name: function makeTextRecord(text: string, loca… 573 |Added|NA|Class name: ndef;<br>Method or attribute name: function makeMimeRecord(mimeType: string, … 574 |Added|NA|Class name: ndef;<br>Method or attribute name: function makeExternalRecord(domainName: st… 575 |Added|NA|Class name: ndef;<br>Method or attribute name: function createNdefMessage(data: number[])… 576 |Added|NA|Class name: ndef;<br>Method or attribute name: function createNdefMessage(ndefRecords: Nd… 577 |Added|NA|Class name: ndef;<br>Method or attribute name: function messageToBytes(ndefMessage: NdefM…
|