Class: SetWallpaperAction

Inherits:
Action show all
Defined in:
lib/ruby-macrodroid.rb

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ SetWallpaperAction

Returns a new instance of SetWallpaperAction.



1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
# File 'lib/ruby-macrodroid.rb', line 1855

def initialize(h={})

  options = {
    image_name: '6051449505275476553',
    s_screen_options: ["Home Screen", "Lock Screen", "Home + Lock Screen"],
    s_options: ["Image", "Live Wallpaper (Preview Screen)"],
    wallpaper_uri_string: 'content://media/external/images/media/928',
    screen_option: 0,
    option: 0
  }

  super(options.merge h)

end