All Products
Search
Document Center

Mobile Platform as a Service:ShareContent interface

Last Updated:Jan 03, 2024

Important
  • Call get and set method to access ShareContent variable.

  • Since there is no uniform standard for sharing, imgUrl is used to internally “smooth” the differences. Therefore imgUrl is the first choice for sharing, use image only if imgUrl 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;
}