Method: Viberroo::Input.location_picker_button

Defined in:
lib/viberroo/input.rb

.location_picker_button(params) ⇒ Object

Note:

Not supported on desktop.

Location picker button, gives ability to pick a location on the map.

Examples:

button = Viberroo::Input.location_picker_button(location: { lat: 48.9215, lon: 24.7097 })

See Also:



76
77
78
79
80
# File 'lib/viberroo/input.rb', line 76

def self.location_picker_button(params)
  { ActionType: 'location-picker',
    min_api_version: 3
  }.merge(params)
end