Important
Call
getandsetmethod to accessShareContentvariable.Since there is no uniform standard for sharing,
imgUrlis used to internally “smooth” the differences. ThereforeimgUrlis the first choice for sharing, useimageonly ifimgUrlis 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;
/*
* Mini program type, default is official version
* Official version: MiniProgramType.MINIPTOGRAM_TYPE_RELEASE
* Test version: MiniProgramType.MINIPROGRAM_TYPE_TEST
* Preview version: MiniProgramType.MINIPROGRAM_TYPE_PREVIEW
*/
private MiniProgramType miniprogramType;
}