public final class Media extends Object
<media/> element in the urn:xmpp:media-element namespace.DataForm.Field.getMedia()| Modifier and Type | Class and Description |
|---|---|
static class |
Media.Location
Specifies the out-of-band location of the media data.
|
| Constructor and Description |
|---|
Media(Media.Location... locations)
Creates a media object with a location.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
If the media is an image or video, gets the recommended display height of the image.
|
List<Media.Location> |
getLocations()
Gets the locations to the media.
|
int |
getWidth()
If the media is an image or video, gets the recommended display width of the image.
|
void |
setHeight(int height)
If the media is an image or video, gets the recommended display height of the image.
|
void |
setWidth(int width)
If the media is an image or video, gets the recommended display width of the image.
|
public Media(Media.Location... locations)
locations - The location.public List<Media.Location> getLocations()
public int getHeight()
setHeight(int)public void setHeight(int height)
height - The height.getHeight()public int getWidth()
setWidth(int)public void setWidth(int width)
width - The width.getWidth()Copyright © 2014 XMPP.rocks. All rights reserved.