/lib/titanium/mobile/media/AudioRecorder.hx

http://github.com/visup/haxe-titanium-api · Haxe · 71 lines · 17 code · 4 blank · 50 comment · 0 complexity · b36654b77ea4d0e04f0cb1d6d861ae6f MD5 · raw file

  1. package titanium.mobile.media;
  2. import titanium.mobile.core.Dispatcher;
  3. /**
  4. AudioRecorder class
  5. Documentation available at:
  6. http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Media.AudioRecorder-object
  7. - namespace
  8. Titanium.Media.AudioRecorder
  9. - type
  10. object
  11. - subtype
  12. proxy
  13. - description
  14. The AudioRecorder object is returned by [[Titanium.Media.createAudioRecorder]] and is used for recording audio from the device microphone.
  15. - since
  16. 0.9
  17. - platforms
  18. iphone, ipad
  19. - properties
  20. recording[boolean]: readonly property to indicate if recording
  21. stopped[boolean]: readonly property to indicate if stopped
  22. paused[boolean]: readonly property to indicate if paused
  23. compression[int]: audio compression constant to be used for the recording
  24. format[int]: audio format constant for used for the recording
  25. - methods
  26. start: called to start recording audio
  27. stop: called to stop recording audio
  28. pause: called to temporarily pause recording
  29. resume: called to resume audio recording
  30. **/
  31. @:native("Titanium.Media.AudioRecorder")
  32. extern class AudioRecorder extends Dispatcher
  33. {
  34. // static constructor
  35. public inline static function create(?params:Dynamic):AudioRecorder
  36. return titanium.mobile.Media.createAudioRecorder(params)
  37. // properties
  38. public var compression:Int;
  39. public var format:Int;
  40. public var paused:Bool;
  41. public var recording:Bool;
  42. public var stopped:Bool;
  43. // methods
  44. public function pause():Void;
  45. public function resume():Void;
  46. public function start():Void;
  47. public function stop():Void;
  48. }