Class TdApi.BackgroundTypePattern

Enclosing class:
TdApi

public static class TdApi.BackgroundTypePattern
extends TdApi.BackgroundType
A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user.
  • Field Details

    • fill

      public TdApi.BackgroundFill fill
      Description of the background fill.
    • intensity

      public int intensity
      Intensity of the pattern when it is shown above the filled background; 0-100.
    • isInverted

      public boolean isInverted
      True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only.
    • isMoving

      public boolean isMoving
      True, if the background needs to be slightly moved when device is tilted.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • BackgroundTypePattern

      public BackgroundTypePattern()
      A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user.
    • BackgroundTypePattern

      public BackgroundTypePattern​(TdApi.BackgroundFill fill, int intensity, boolean isInverted, boolean isMoving)
      A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user.
      Parameters:
      fill - BackgroundFill Description of the background fill.
      intensity - int Intensity of the pattern when it is shown above the filled background; 0-100.
      isInverted - boolean True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only.
      isMoving - boolean True, if the background needs to be slightly moved when device is tilted.
    • BackgroundTypePattern

      public BackgroundTypePattern​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details