public class OGImage
extends java.lang.Object
OGMetaData
. For Specifications, see
https://ogp.me/.Modifier and Type | Method and Description |
---|---|
static OGImage |
buildFromSerializedData(byte[] data)
Builds
OGImage instance from serialized data generated by serialize() . |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlt()
A description of what is in the image (not a caption).
|
int |
getHeight()
The number of pixels high.
|
java.lang.String |
getSecureUrl()
An alternate url to use if the webpage requires HTTPS.
|
java.lang.String |
getType()
A MIME type for this image.
|
java.lang.String |
getUrl()
An image URL which represents the object within the Open Graph.
|
int |
getWidth()
The number of pixels wide.
|
int |
hashCode() |
byte[] |
serialize()
Serializes the
OGImage instance. |
java.lang.String |
toString() |
public java.lang.String getUrl()
public java.lang.String getSecureUrl()
public java.lang.String getType()
public int getWidth()
public int getHeight()
public java.lang.String getAlt()
public static OGImage buildFromSerializedData(byte[] data)
OGImage
instance from serialized data generated by serialize()
.public byte[] serialize()
OGImage
instance.
This byte array can be stored in the database in your application.
The instance can be restored by buildFromSerializedData(byte[])
.OGImage
data.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.