public static class LogoConfig.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Builder(android.content.res.TypedArray a) |
Modifier and Type | Method and Description |
---|---|
LogoConfig |
build() |
LogoConfig.Builder |
file(java.lang.String file) |
LogoConfig.Builder |
hide(java.lang.Boolean hide) |
LogoConfig.Builder |
link(java.lang.String link) |
LogoConfig.Builder |
margin(java.lang.Integer margin) |
LogoConfig.Builder |
position(java.lang.String position) |
public Builder()
public Builder(android.content.res.TypedArray a)
public LogoConfig.Builder file(java.lang.String file)
file
- The URL of an external JPG, PNG or GIF image to be used as watermark (e.g. /assets/logo.png). We recommend using 24 bit PNG images with transparency.public LogoConfig.Builder hide(java.lang.Boolean hide)
hide
- When this option is set to true, the logo will automatically show and hide along with the other player controls.public LogoConfig.Builder link(java.lang.String link)
link
- The URL to visit when the watermark image is clicked. Clicking a logo will have no affect unless this is configured.public LogoConfig.Builder margin(java.lang.Integer margin)
margin
- The distance, in pixels, of the logo from the edges of the display.public LogoConfig.Builder position(java.lang.String position)
position
- This sets the corner in which to display the watermark. Must be one of the LOGO_POSITION_ constants.public LogoConfig build()