]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: Recent documents API
authorCheng Zhao <zcbenz@gmail.com>
Mon, 17 Nov 2014 11:02:37 +0000 (19:02 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 17 Nov 2014 11:02:37 +0000 (19:02 +0800)
docs/api/app.md

index 09916921067c915b63a14ad6d214bd647a1dd382..6d1ce4b01660347449c46ea540663efa68852e21 100644 (file)
@@ -123,6 +123,19 @@ preferred over `name` by atom-shell.
 Resolves the proxy information for `url`, the `callback` would be called with
 `callback(proxy)` when the request is done.
 
+## app.addRecentDocument(path)
+
+* `path` String
+
+Adds `path` to recent documents list.
+
+This list is managed by the system, on Windows you can visit the list from task
+bar, and on Mac you can visit it from dock menu.
+
+## app.clearRecentDocuments()
+
+Clears the recent documents list.
+
 ## app.commandLine.appendSwitch(switch, [value])
 
 Append a switch [with optional value] to Chromium's command line.