public final class Media extends Object
<media/> element in the urn:xmpp:media-element namespace.
This class is immutable.
| Modifier and Type | Class and Description |
|---|---|
static class |
Media.Location
Specifies the out-of-band location of the media data.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
urn:xmpp:media-element
|
| Constructor and Description |
|---|
Media(int width,
int height,
Media.Location... locations)
Creates a media object with a location.
|
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.
|
public static final String NAMESPACE
public Media(Media.Location... locations)
locations - The location.public Media(int width,
int height,
Media.Location... locations)
width - The width.height - The height.locations - The location.public final List<Media.Location> getLocations()
public final int getHeight()
public final int getWidth()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.