public final class Media
extends java.lang.Object
The implementation of the <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 java.lang.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.
|
java.util.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 java.lang.String NAMESPACE
urn:xmpp:media-element
public Media(Media.Location... locations)
Creates a media object with a location.
locations
- The location.public Media(int width, int height, Media.Location... locations)
Creates a media object with a location.
width
- The width.height
- The height.locations
- The location.public final java.util.List<Media.Location> getLocations()
Gets the locations to the media.
public final int getHeight()
If the media is an image or video, gets the recommended display height of the image.
public final int getWidth()
If the media is an image or video, gets the recommended display width of the image.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.