package com.veinhorn.scrollgalleryview.builder;

import com.veinhorn.scrollgalleryview.MediaInfo;

/**
 * MediaHelper provides a bunch of methods which simplify adding media to gallery
 */
public interface MediaHelper {
    /**
     * Create MediaInfo based on image url
     * @param url
     * @return
     */
    MediaInfo image(String url);

    /**
     * Create MediaInfo based on image url
     * @param url
     * @param placeholderViewId
     * @return
     */
    MediaInfo video(String url, int placeholderViewId);
}

@@ -115,13 +115,68 @@
 per 
-provi
+is a specification which is used for building DSLs. It inclu
 des 
@@ -193,23 +193,34 @@
  methods
+%0A *
  which 
+help to 
 simplify
@@ -236,16 +236,21 @@
 edia to 
+your 
 gallery%0A
@@ -297,32 +297,33 @@
 **%0A     * Create
+s
  MediaInfo based
@@ -309,32 +309,39 @@
 eates MediaInfo 
+object 
 based on image u
@@ -360,31 +360,72 @@
 aram url
-%0A     * @return
+ is an image URL address%0A     * @return MediaInfo object
 %0A     */
@@ -480,16 +480,17 @@
 * Create
+s
  MediaIn
@@ -492,16 +492,23 @@
 diaInfo 
+object 
 based on
@@ -531,24 +531,48 @@
 * @param url
+ is an image URL address
 %0A     * @par
@@ -591,31 +591,107 @@
 erViewId
-%0A     * @return
+ is an image resource id which is used as video placeholder%0A     * @return MediaInfo object
 %0A     */

improve MediaHelper docs