class Tourmaline::BackgroundTypeWallpaper

Overview

The background is a wallpaper in the JPEG format.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, document : Tourmaline::Document, dark_theme_dimming : Int32 | Int64, is_blurred : Bool | Nil = nil, is_moving : Bool | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def dark_theme_dimming : Int32 | Int64 #

Dimming of the background in dark themes, as a percentage; 0-100


[View source]
def dark_theme_dimming=(dark_theme_dimming : Int32 | Int64) #

Dimming of the background in dark themes, as a percentage; 0-100


[View source]
def document : Tourmaline::Document #

Document with the wallpaper


[View source]
def document=(document : Tourmaline::Document) #

Document with the wallpaper


[View source]
def is_blurred=(is_blurred : Bool | Nil) #

Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12


[View source]
def is_blurred? : Bool | Nil #

Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12


[View source]
def is_moving=(is_moving : Bool | Nil) #

Optional. True, if the background moves slightly when the device is tilted


[View source]
def is_moving? : Bool | Nil #

Optional. True, if the background moves slightly when the device is tilted


[View source]
def type : String #

Type of the background, always "wallpaper"


[View source]
def type=(type : String) #

Type of the background, always "wallpaper"


[View source]