Class LogoConfig.Builder

  • Enclosing class:
    LogoConfig

    public static class LogoConfig.Builder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LogoConfig build()  
      LogoConfig.Builder fades​(boolean fades)
      Determines if the logo appears and disappears with the controls, but only if the controls are set to fade.
      LogoConfig.Builder imageFile​(java.lang.String imageFile)
      Sets the logo’s image by downloading the image at the specified URL.
      LogoConfig.Builder margin​(java.lang.Integer margin)
      Distance between the logo and the player’s edge, specified in points.
      LogoConfig.Builder position​(java.lang.String position)
      Defines the corner on the player in which the logo displays.
      LogoConfig.Builder webLink​(java.lang.String webLink)
      URL to which a user is sent when the logo is tapped.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • imageFile

        @NonNull
        public LogoConfig.Builder imageFile​(java.lang.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​(java.lang.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​(java.lang.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

        @NonNull
        public LogoConfig.Builder webLink​(java.lang.String webLink)
        URL to which a user is sent when the logo is tapped.
        Parameters:
        webLink -