Class: TakePictureAction

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ TakePictureAction

Returns a new instance of TakePictureAction.



1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
# File 'lib/ruby-macrodroid.rb', line 1484

def initialize(h={})

  options = {
    new_path: '/storage/sdcard1/DCIM/Camera',
    path: '/storage/sdcard1/DCIM/Camera',
    show_icon: true,
    use_front_camera: true,
    flash_option: 0
  }

  super(options.merge h)

end