Class TdApi.SetBackground

Enclosing class:
TdApi

public static class TdApi.SetBackground
extends TdApi.Function
Changes the background selected by the user; adds background to the list of installed backgrounds.

Returns Background

  • Field Details

    • background

      public TdApi.InputBackground background
      The input background to use, null for filled backgrounds.
    • type

      public TdApi.BackgroundType type
      Background type; null for default background. The method will return error 404 if type is null.
    • forDarkTheme

      public boolean forDarkTheme
      True, if the background is chosen for dark theme.
    • CONSTRUCTOR

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

    • SetBackground

      public SetBackground()
      Changes the background selected by the user; adds background to the list of installed backgrounds.

      Returns Background

    • SetBackground

      public SetBackground​(TdApi.InputBackground background, TdApi.BackgroundType type, boolean forDarkTheme)
      Changes the background selected by the user; adds background to the list of installed backgrounds.

      Returns Background

      Parameters:
      background - InputBackground The input background to use, null for filled backgrounds.
      type - BackgroundType Background type; null for default background. The method will return error 404 if type is null.
      forDarkTheme - boolean True, if the background is chosen for dark theme.
    • SetBackground

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