module ScreenRecorder::Titles

@since 1.0.0-beta4

Public Class Methods

fetch(application) click to toggle source

Returns a list of available window titles for the given process (application) name.

@return [Array]

@example

ScreenRecorder::Titles.fetch('chrome')
#=> ["New Tab - Google Chrome"]
# File lib/screen-recorder/titles.rb, line 12
def self.fetch(application)
  # @todo Remove Titles.fetch in v2.0
  Window.fetch_title application
end