Class SharingConfig
- java.lang.Object
-
- com.longtailvideo.jwplayer.configuration.SharingConfig
-
- All Implemented Interfaces:
com.longtailvideo.jwplayer.utils.Jsonable
public final class SharingConfig extends java.lang.Object implements com.longtailvideo.jwplayer.utils.Jsonable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSharingConfig.Builder
-
Constructor Summary
Constructors Constructor Description SharingConfig(SharingConfig src)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode()java.lang.StringgetHeading()java.lang.StringgetLink()java.util.List<java.lang.String>getSites()static SharingConfigparseJson(java.lang.String jsonStr)static SharingConfigparseJson(org.json.JSONObject json)voidsetCode(java.lang.String code)voidsetHeading(java.lang.String heading)voidsetLink(java.lang.String link)voidsetSites(java.util.List<java.lang.String> sites)org.json.JSONObjecttoJson()java.lang.StringtoString()
-
-
-
Constructor Detail
-
SharingConfig
public SharingConfig(SharingConfig src)
-
-
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:
toStringin classjava.lang.Object
-
toJson
public org.json.JSONObject toJson()
- Specified by:
toJsonin interfacecom.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)
-
-