Link Search Menu Expand Document

Constructor: wallPaperSettings

Back to constructors index

Wallpaper rendering information.

Attributes:

NameTypeRequiredDescription
blurBoolOptionalFor image wallpapers »: if set, the JPEG must be downscaled to fit in 450x450 square and then box-blurred with radius 12.
motionBoolOptionalIf set, the background needs to be slightly moved when the device is rotated.
background_colorintOptionalUsed for solid », gradient » and freeform gradient » fills.
second_background_colorintOptionalUsed for gradient » and freeform gradient » fills.
third_background_colorintOptionalUsed for freeform gradient » fills.
fourth_background_colorintOptionalUsed for freeform gradient » fills.
intensityintOptionalUsed for pattern wallpapers ».
rotationintOptionalClockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45.
emoticonstringOptionalIf set, this wallpaper can be used as a channel wallpaper and is represented by the specified UTF-8 emoji.

Type: WallPaperSettings

Example:

$wallPaperSettings = ['_' => 'wallPaperSettings', 'blur' => Bool, 'motion' => Bool, 'background_color' => int, 'second_background_color' => int, 'third_background_color' => int, 'fourth_background_color' => int, 'intensity' => int, 'rotation' => int, 'emoticon' => 'string'];