Class SharingConfig

  • All Implemented Interfaces:
    com.longtailvideo.jwplayer.utils.Jsonable

    public final class SharingConfig
    extends java.lang.Object
    implements com.longtailvideo.jwplayer.utils.Jsonable
    • Constructor Detail

    • Method Detail

      • setLink

        public void setLink​(java.lang.String link)
        Parameters:
        link - URL to display in the video link field.
      • setCode

        public void setCode​(java.lang.String code)
        Parameters:
        code - Embed code to display in the embed code field. If no code is set, the field is not shown.
      • setHeading

        public void setHeading​(java.lang.String heading)
        Parameters:
        heading - Short, instructive text to display at the top of the sharing screen.
      • setSites

        public void setSites​(java.util.List<java.lang.String> sites)
        Parameters:
        sites - Allows for the customization of social icons.
      • getLink

        @Nullable
        public java.lang.String getLink()
        Returns:
        URL to display in the video link field.
      • getCode

        @Nullable
        public java.lang.String getCode()
        Returns:
        Embed code to display in the embed code field. If no code is set, the field is not shown.
      • getHeading

        @NonNull
        public java.lang.String getHeading()
        Returns:
        Short, instructive text to display at the top of the sharing screen.
      • getSites

        @NonNull
        public java.util.List<java.lang.String> getSites()
        Returns:
        Allows for the customization of social icons.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toJson

        public org.json.JSONObject toJson()
        Specified by:
        toJson in interface com.longtailvideo.jwplayer.utils.Jsonable
      • parseJson

        public static SharingConfig parseJson​(org.json.JSONObject json)
                                       throws org.json.JSONException
        Throws:
        org.json.JSONException
      • parseJson

        public static SharingConfig parseJson​(java.lang.String jsonStr)