java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.BackgroundType
it.tdlight.jni.TdApi.BackgroundTypePattern
- Enclosing class:
- TdApi
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 Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Fill of the background.int
Intensity of the pattern when it is shown above the filled background; 0-100.boolean
True, if the background fill must be applied only to the pattern itself.boolean
True, if the background needs to be slightly moved when device is tilted. -
Constructor Summary
ConstructorDescriptionA 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
(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.BackgroundTypePattern
(DataInput input) 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. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
fill
Fill of the background. -
intensity
public int intensityIntensity of the pattern when it is shown above the filled background; 0-100. -
isInverted
public boolean isInvertedTrue, 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 isMovingTrue, if the background needs to be slightly moved when device is tilted. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
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
- Fill of the background.intensity
- Intensity of the pattern when it is shown above the filled background; 0-100.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
- True, if the background needs to be slightly moved when device is tilted.
-
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.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-