Class GeolocationQRCode


  • public class GeolocationQRCode
    extends QRCode
    This class is a subclass of QRCode and is used to generate a geolocation QR-code element
    • Constructor Detail

      • GeolocationQRCode

        public GeolocationQRCode​(java.lang.String name,
                                 java.lang.String latitude,
                                 java.lang.String altitude,
                                 java.lang.String longitude)
        This object represents a VCF or vCard QR Code. Use null if you don't want to specify an option. Styling options can be set with the setter functions of the upper class.
        Parameters:
        name - Name of this code for the tag.
        latitude - Latitude.
        altitude - Altitude.
        longitude - Longitude.
    • Method Detail

      • getAltitude

        public java.lang.String getAltitude()
        Returns:
        Altitude.
      • setAltitude

        public void setAltitude​(java.lang.String altitude)
        Parameters:
        altitude - Altitude.
      • getLongitude

        public java.lang.String getLongitude()
        Returns:
        Longitude.
      • setLongitude

        public void setLongitude​(java.lang.String longitude)
        Parameters:
        longitude - Longitude.
      • getJSON

        public com.google.gson.JsonObject getJSON()
        Overrides:
        getJSON in class QRCode
        Returns:
        JSONObject with the tags for this element for the Cloud Office Print server.