Important
Call
get
andset
method to accessShareContent
variable.Since there is no uniform standard for sharing,
imgUrl
is used to internally “smooth” the differences. ThereforeimgUrl
is the first choice for sharing, useimage
only ifimgUrl
is unavailable.
public class ShareContent implements Serializable {
/*
* Content to share
*/
private String content;
/*
* Share image
*/
private byte[] image;
/*
* Share URL
*/
private String url;
/*
* Share title
*/
private String title;
/*
* Share image URL
*/
private String imgUrl;
/*
* Extended parameter: Used for passing the business parameters of generating short link and SMS sending success
*/
private String extData;
/*
* Sharing type: "url" is used to share the link, "image" is used to share the picture
*/
private String contentType;
/*
* Share to contact: Share the URL of the small icon in the preview box
*/
private String iconUrl;
/**
* Local image URL
*/
private String localImageUrl;
}