class SetWallpaperAction

Category: Device Settings

Public Class Methods

new(h={}) click to toggle source
Calls superclass method DeviceSettingsAction::new
# File lib/ruby-macrodroid/actions.rb, line 1549
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

Public Instance Methods

to_s(colour: false, indent: 0) click to toggle source
# File lib/ruby-macrodroid/actions.rb, line 1564
def to_s(colour: false, indent: 0)
  'SetWallpaperAction ' + @h.inspect
end
Also aliased as: to_summary
to_summary(colour: false, indent: 0)
Alias for: to_s