-
public class OGImage
Represents a OGImage of OGMetaData. For Specifications, see https://ogp.me/.
-
-
Method Summary
Modifier and Type Method Description String
getUrl()
An image URL which represents the object within the Open Graph. String
getSecureUrl()
An alternate url to use if the webpage requires HTTPS. String
getType()
A MIME type for this image. int
getWidth()
The number of pixels wide. int
getHeight()
The number of pixels high. String
getAlt()
A description of what is in the image (not a caption). static OGImage
buildFromSerializedData(Array<byte> data)
Builds OGImage instance from serialized data generated by serialize. Array<byte>
serialize()
Serializes the OGImage instance.This byte array can be stored in the database in your application. int
hashCode()
boolean
equals(Object obj)
String
toString()
-
-
Method Detail
-
getSecureUrl
String getSecureUrl()
An alternate url to use if the webpage requires HTTPS.
-
getWidth
int getWidth()
The number of pixels wide.
-
getHeight
int getHeight()
The number of pixels high.
-
buildFromSerializedData
static OGImage buildFromSerializedData(Array<byte> data)
- Parameters:
data
- Serialized OGImage data.
-
serialize
Array<byte> serialize()
Serializes the OGImage instance.This byte array can be stored in the database in your application.The instance can be restored by buildFromSerializedData.
-
hashCode
int hashCode()
-
-
-
-