11.07.2015 Views

Contactless Communication API - Oracle Software Delivery Cloud

Contactless Communication API - Oracle Software Delivery Cloud

Contactless Communication API - Oracle Software Delivery Cloud

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Package javax.microedition.contactlessTargetPropertiesgetProperty(java.lang.String)ParametersReturnspublic java.lang.String getProperty(java.lang.String name)With this method the application can query target specific properties. This property can be, for example, the slot numberneeded to open a JSR 177 APDUConnection to the external smart card. In this case the name of the property could beJSR177_slot . The property name values are implementation dependant and not specified in the <strong>API</strong>.name - the name of the requested propertythe value of the property, null if the property with the specified name has not been definedgetTargetTypes()publicTargetType [] getTargetTypes()Returns the type of the discovered target. Possible return values are defined in TargetType class. An NDEF_TAG targetalways has other physical level target type. This type is either RFID_TAG or ISO14443_CARD . In the case of NDEF_TAGalso the physical level type must be returned. The NDEF_TAG target must be the first value in the return array followedby the physical level type.Returnsan array of the target typesgetUid()public java.lang.String getUid()Returns the unique identifier (UID) for the target. The identifier is likely to be globally unique, though with some devicesit may not be constant all the time. Visual tags do not have this identifier. The rules for constructing the UID for differenttarget technologies are defined in the Appendix C: Unique identifiers of targets .Returnsthe UID of the target, null if target does not support this propertygetUrl()public java.lang.String getUrl()Returns the URL to open a connection to the NDEF_TAG target. If the type of the target is not NDEF_TAG null is returned.Returnsthe URL to NDEF_TAG target, otherwise nullgetUrl(java.lang.Class)public java.lang.String getUrl(java.lang.Class connectionName)Returns the URL for the requested connection to the discovered target. This URL used to open a connection to the target.ParametersconnectionName - name of the connectionReturnsthe URL to the target21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!