Skip to content

Commit

Permalink
Merge pull request #89 from bceskavich/slider-bundles
Browse files Browse the repository at this point in the history
Adding and accessing Bundles on BaseSliderView.java
  • Loading branch information
daimajia committed May 4, 2015
2 parents 8be7fe1 + 9c6b73b commit effc955
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public enum ScaleType{

protected BaseSliderView(Context context) {
mContext = context;
this.mBundle = new Bundle();
}

/**
Expand Down Expand Up @@ -138,6 +137,16 @@ public BaseSliderView image(int res){
return this;
}

/**
* lets users add a bundle of additional information
* @param bundle
* @return
*/
public BaseSliderView bundle(Bundle bundle){
mBundle = bundle;
return this;
}

public String getUrl(){
return mUrl;
}
Expand Down

0 comments on commit effc955

Please sign in to comment.