withImageUrl static method

dynamic withImageUrl(
  1. String imageUrl
)

Create an attachment with image URL. imageUrl image URL.

Implementation

static withImageUrl(String imageUrl) {
  MediaAttachment m = new MediaAttachment();
  m.imageUrl = imageUrl;
  return m;
}