OutSystems Forge 日本語データベース

NFC Plugin

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2016-07-18 1.0.0 OutSystems Experts 10.0.0.208 All All IoT, Widgets, Plug-ins
モバイルアプリでNFCの機能を活用できます。
NFCを介してデータの読み取り、書き込み、共有を行います。このプラグインは、https://github.com/OutSystems/phonegap-nfcで利用可能な機能をカプセル化し、使いやすいクライアントアクションとWebブロックのセットを提供します。 NFCデータの読み取り NFCセンサーからのデータの読み取りは、非同期処理であり、次のWebブロックのいずれかを使用して実行できます。 MimeTypeListener:特定のMIMEタイプ(つまり「text / plain」)のデータを持つNFCタグをリッスンします。このリスナーはNdefListenerよりも優先されます。 使い方は、任意のコンテナにドラッグアンドドロップし、MIMEタイプとコールバックを指定するだけで簡単です。 注:タイプRTD_TEXTまたはRTD_URIのレコードを含むTAGのみがサポートされています。 NdefListener:NDEFメッセージを含むNFCタグをリッスンします。 MimeTypeListenerは、このより一般的なリスナーよりも優先されます。 MimeTypeListenerと同じように、使い方は簡単です。コンテナにドラッグアンドドロップしてコールバックを割り当てるだけです。 注:タイプRTD_TEXTまたはRTD_URIのレコードを含むTAGのみがデコードされます。ただし、RAWデータは高度な用途に使用できます。 NFCデータの作成 NFC TAGへのデータの書き込みは、次のクライアントアクションで簡単に実行できます。 WriteText:1つのテキストレコードをNFC TAGに書き込みます。 警告:NFC TAGの内容を上書きします。 WriteDataRecords:1つまたは複数のNDEFレコードをNFC TAGに書き込みます(NfcWriteRecordを参照)。 書き込みプロセスに関するフィードバックを受け取るには、WriteProgress Webブロックを使用できます。 シェア 2つのNFC対応デバイス間でデータを共有することは、デバイスに触れることと同じくらい簡単です。この機能を使用するのは、次のいずれかの操作を行うだけです。 ShareText:一度、別のデバイスとのテキストレコードを共有します。 StartSharing:StopSharingアクションが実行されるまで、デバイス上でNFC共有を有効にします。 これにより、複数の異なるデバイスと同じ情報を共有することができます。 共有プロセスに関するフィードバックを受け取るには、ShareProgress Webブロックを使用します。

[Overview]
Leverage NFC functionalities on your mobile apps.
[Detail]
Read, write and share data through NFC. This plugin encapsulates the functionalities available on https://github.com/OutSystems/phonegap-nfc, providing an easy to use set of client actions and web blocks. Reading NFC data Reading data from NFC sensor is an asynchronous process and is possible using one of the following web blocks: MimeTypeListener: Listens to any NFC Tag that has data with a specific mime type (i.e. “text/plain”). This listener takes precedence over NdefListener. Usage is as simple as dragging and dropping into any container and specifying a mime type and callback. Note: Only TAGs containing records of type RTD_TEXT or RTD_URI are supported. NdefListener: Listens to any NFC Tag containing an NDEF Message. MimeTypeListener takes precedence over this more generic listener. Just like MimeTypeListener, usage is straightforward. Just drag and drop into a container and assign a callback. Note: Only TAGs containing records of type RTD_TEXT or RTD_URI will be decoded. However, the RAW data is available for advanced usages. Writing NFC data Writing data to NFC TAGs is easily done with the following client actions: WriteText: Write a single text record into an NFC TAG. Warning: Will override the content of the NFC TAG. WriteDataRecords: Write one or more NDEF records into an NFC TAG (See NfcWriteRecord). Receiving feedback on the write process is possible using WriteProgress web block. Share Sharing data between two NFC enabled devices is as simple as touching the devices. Using this functionality is as simple as using one of the following actions: ShareText: Share, once, a text record with another device. StartSharing: Enables NFC sharing on the device until StopSharing action is executed. This gives the ability to share the same information with several different devices. To receive feedback on the sharing process, use ShareProgress web block.
戻る