Class MediaAttachment


  • public final class MediaAttachment
    extends java.lang.Object
    • 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 class java.lang.Object