Store longitude and latitude on a tag, to allow the user to view a map when tapping the tag.
More...
|
| override bool | CheckIfValid () |
| | Checks if the contents of the record are valid; throws an exception if a problem is found, containing a textual description of the issue. More...
|
| |
| | NdefSmartUriRecord () |
| | Create an empty Smart Uri Record. More...
|
| |
| | NdefSmartUriRecord (NdefRecord other) |
| | Create a Smart Uri record based on the record passed through the argument. More...
|
| |
| | NdefSpRecord () |
| | Create an empty Smart Poster (Sp) record. More...
|
| |
| | NdefSpRecord (NdefRecord other) |
| | Create a Smart Poster record based on the record passed through the argument. More...
|
| |
| void | SetPayloadAndParse (byte[] payload, bool parseNewPayload) |
| | Sets the payload of the base class to the byte array from the parameter and optionally parses its contents. More...
|
| |
| bool | HasSpData () |
| | Returns true if this record contains data that requires a Smart Poster and could not be stored in a simple URI record. More...
|
| |
| override bool | CheckIfValid () |
| | Checks if the contents of the record are valid; throws an exception if a problem is found, containing a textual description of the issue. More...
|
| |
| void | SetUri (NdefUriRecord newUri) |
| | Set the URI based on another URI record instead of specifying the URI itself. More...
|
| |
| void | AddTitle (NdefTextRecord newTitle) |
| | Add an (optional) title to the Smart Poster. More...
|
| |
| int | TitleCount () |
| | Returns how many title text records are stored in the Smart Poster. More...
|
| |
| NdefTextRecord | Title (int index) |
| | Retrieve a specific title text record from the list. More...
|
| |
| bool | ActionInUse () |
| | Returns if the action has been defined for this Smart Poster instance. More...
|
| |
| bool | SizeInUse () |
| | Returns if the size has been defined for this Smart Poster instance. More...
|
| |
| bool | MimeTypeInUse () |
| | Returns if the mime type has been defined for this Smart Poster instance. More...
|
| |
| bool | ImageInUse () |
| | Returns if the Smart Poster contains an image (not supported yet). More...
|
| |
| | NdefRecord () |
| | Create an empty record, not setting any information. More...
|
| |
| | NdefRecord (TypeNameFormatType tnf, byte[] type) |
| | Create a new record with the specified type name format and type. Doesn't set the payload and ID. More...
|
| |
| | NdefRecord (NdefRecord other) |
| | Create a new record, copying the information of the record sent through the parameter. More...
|
| |
| Type | CheckSpecializedType (bool checkForSubtypes) |
| | Checks the type name format and type of this record and returns the appropriate specialized class, if one is available and known for this record type. More...
|
| |
|
| double | Longitude [get, set] |
| | Longitude of the coordinate to encode in the Geo URI. More...
|
| |
| double | Latitude [get, set] |
| | Latitude of the coordinate to encode in the Geo URI. More...
|
| |
| string | PlaceTitle [get, set] |
| | Title of the specified place. Used by MsDriveTo, MsWalkTo and the HERE maps schemes. More...
|
| |
| string | AppId [get, set] |
| | App ID - has to be present for HERE maps schemes, unfortunately. It is obviously risky to share your app ID on public NFC tags, so be careful and use the generic MsDriveTo scheme in those cases. More...
|
| |
| NfcGeoType | GeoType [get, set] |
| | Format to use for encoding the coordinate into a URI. More...
|
| |
| override byte [] | Type [get] |
| | An identifier describing the type of the payload. Override to return correct type depending on data stored - either U(RI) or Sp (Smart Poster). More...
|
| |
| override byte [] | Payload [get] |
| | The application data carried within an NDEF record. More...
|
| |
| string | Uri [get, set] |
| | Mandatory URI of the Smart Poster More...
|
| |
| List< NdefTextRecord > | Titles [get] |
| | List of all title texts for different languages used in the Smart Poster. More...
|
| |
| NdefSpActRecord.NfcActionType | NfcAction [get, set] |
| | The action defines how the reader should handle the Smart Poster record. More...
|
| |
| uint | NfcSize [get, set] |
| | Size of the linked content. More...
|
| |
| string | NfcMimeType [get, set] |
| | MIME type of the linked object. More...
|
| |
| NdefMimeImageRecordBase | NfcImage [get, set] |
| | Icon / Image data contained in the Smart Poster. More...
|
| |
| TypeNameFormatType | TypeNameFormat [get, set] |
| | Indicates the structure of the value of the TYPE field. More...
|
| |
| virtual byte [] | Type [get, set] |
| | An identifier describing the type of the payload. More...
|
| |
| byte [] | Id [get, set] |
| | An identifier in the form of a URI reference. More...
|
| |
| virtual byte [] | Payload [get, set] |
| | The application data carried within an NDEF record. More...
|
| |
Store longitude and latitude on a tag, to allow the user to view a map when tapping the tag.
Geo tags are not standardized by the NFC forum, therefore, this class supports three different types of writing the location to a tag.
- GeoUri: write URI based on the "geo:" URI scheme, as specified by RFC5870, available at: http://geouri.org/
- BingMaps: Uses the URI scheme defined by the Maps application on Windows 8 / 10.
- DriveTo / WalkTo: URI schemes supported by Windows Phone 8 and used in apps to launch an installed navigation app to navigate to a specified position. An app to handle DriveTo request should be present by default on all WP8 phones; WalkTo not necessarily.
- NokiaMapsUri: write URI based on a HERE Maps web link, following the "http://m.ovi.me/?c=..." scheme of the HERE/Nokia/Ovi Maps Rendering API. Depending on the target device, the phone / web service should then redirect to the best maps representation. On Symbian, the phone will launch the Nokia Maps client. On a desktop computer, the full HERE Maps web experience will open. On other phones, the HTML 5 client may be available.
- WebRedirect: uses the web service at NfcInteractor.com to check the OS of the phone, and then redirect to the best way of showing maps to the user. Note the limitations and terms of use of the web service. For real world deployment, outside of development and testing, it's recommended to host the script on your own web server. Find more information at nfcinteractor.com.
As this class is based on the Smart URI base class, the payload is formatted as a URI record initially. When first adding Smart Poster information (like a title), the payload instantly transforms into a Smart Poster.