Package it.tdlight.jni
Class TdApi.SetBackground
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.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 Summary
Fields Modifier and Type Field Description TdApi.InputBackground
background
The input background to use, null for filled backgrounds.static int
CONSTRUCTOR
boolean
forDarkTheme
True, if the background is chosen for dark theme.TdApi.BackgroundType
type
Background type; null for default background. -
Constructor Summary
Constructors Constructor Description SetBackground()
Changes the background selected by the user; adds background to the list of installed backgrounds.SetBackground(TdApi.InputBackground background, TdApi.BackgroundType type, boolean forDarkTheme)
Changes the background selected by the user; adds background to the list of installed backgrounds.SetBackground(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
background
The input background to use, null for filled backgrounds. -
type
Background type; null for default background. The method will return error 404 if type is null. -
forDarkTheme
public boolean forDarkThemeTrue, 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
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-