Package im.getsocial.sdk.media
Class MediaAttachment
- java.lang.Object
-
- im.getsocial.sdk.media.MediaAttachment
-
public final class MediaAttachment extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getImageUrl()
java.lang.String
getVideoUrl()
static MediaAttachment
image(android.graphics.Bitmap image)
Create an attachment with image.static MediaAttachment
imageUrl(java.lang.String imageUrl)
Create an attachment with image URL.java.lang.String
toString()
static MediaAttachment
video(byte[] video)
Create an attachment with video URL.static MediaAttachment
videoUrl(java.lang.String videoUrl)
Create an attachment with video URL.
-
-
-
Method Detail
-
image
public static MediaAttachment image(android.graphics.Bitmap image)
Create an attachment with image.- Parameters:
image
- image.- Returns:
- created attachment or null, if image is null.
-
imageUrl
public static MediaAttachment imageUrl(java.lang.String imageUrl)
Create an attachment with image URL.- Parameters:
imageUrl
- image URL.- Returns:
- created attachment or null, if image URL is null.
-
video
public static MediaAttachment video(byte[] video)
Create an attachment with video URL.- Parameters:
video
- video.- Returns:
- created attachment or null, if video is null.
-
videoUrl
public static MediaAttachment videoUrl(java.lang.String videoUrl)
Create an attachment with video URL.- Parameters:
videoUrl
- video URL.- Returns:
- created attachment or null, if video URL is null.
-
getImageUrl
public java.lang.String getImageUrl()
-
getVideoUrl
public java.lang.String getVideoUrl()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-