Class LogoConfig.Builder

java.lang.Object
com.jwplayer.pub.api.configuration.LogoConfig.Builder
Enclosing class:
LogoConfig

public static class LogoConfig.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • imageFile

      public LogoConfig.Builder imageFile(String imageFile)
      Sets the logo’s image by downloading the image at the specified URL. The dimensions of the logo will match the dimensions of the image provided without resizing. For example, an image of 100x50 pixels will render a logo of 100x50, regardless of the dimensions of the player window.
      Parameters:
      imageFile -
    • fades

      public LogoConfig.Builder fades(boolean fades)
      Determines if the logo appears and disappears with the controls, but only if the controls are set to fade. If the controls are not set to fade, the logo is visible when the controls are visible and not be visible when the controls are turned off. If unspecified, this parameter The default value is false.
      Parameters:
      fades -
    • margin

      public LogoConfig.Builder margin(Integer margin)
      Distance between the logo and the player’s edge, specified in points. If unspecified, this parameter The default value is 8.
      Parameters:
      margin -
    • position

      public LogoConfig.Builder position(String position)
      Defines the corner on the player in which the logo displays. If unspecified, this parameter The default value is [topLeft].
      Parameters:
      position -
    • webLink

      public LogoConfig.Builder webLink(String webLink)
      URL to which a user is sent when the logo is tapped.
      Parameters:
      webLink -
    • build

      public LogoConfig build()