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 class
SharingConfig.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.String
getCode()
java.lang.String
getHeading()
java.lang.String
getLink()
java.util.List<java.lang.String>
getSites()
static SharingConfig
parseJson(java.lang.String jsonStr)
static SharingConfig
parseJson(org.json.JSONObject json)
void
setCode(java.lang.String code)
void
setHeading(java.lang.String heading)
void
setLink(java.lang.String link)
void
setSites(java.util.List<java.lang.String> sites)
org.json.JSONObject
toJson()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
toJson
public org.json.JSONObject toJson()
- Specified by:
toJson
in 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)
-
-