class TermuxRubyApi::SubSystems::CallLog
Public Instance Methods
log(limit:nil, offset:nil)
click to toggle source
Gets part of the list of phone calls in the phone @param limit [Fixnum] Number of messages to return @param offset [Fixnum] Start from message @return [Array <Hash>]
# File lib/termux_ruby_api/sub_systems/call_log.rb, line 8 def log(limit:nil, offset:nil) args = owner.generate_args_list([['-l', limit&.to_s], ['-o', offset&.to_s] ]) res = owner.json_api_command('call-log', nil, *args) TermuxRubyApi::Utils::Xformer.xform(res, date: :time, duration: :duration, type: :symbol) end
log_all()
click to toggle source
Gets the whole list of phone calls in the phone, with no pagination @return (see log
)
# File lib/termux_ruby_api/sub_systems/call_log.rb, line 18 def log_all log(limit: -1) end