actualNoteContentPart: ## app.saveFile
  Save a file.
  Arguments
  	The Blob/ File object describing the content of the file
  	String filename to use for the file
  Returns
  	A promise that resolves when the request to save the file has been sent. Note that the user may see a prompt to accept/name/save the file, in which case this will resolve as soon as the request has been displayed to the user - it does not wait for the user to actually save the file.
  ```
  {  async noteOption(app) {    const file = new Blob([ "some text" ], { type: "text/plain" });    await app.saveFile(file, "test.txt");  }}
  ```
  
  ## app.searchNotes
  Search note content. This matches in-app "full search" functionality.
  Arguments
  	query - string term to search for in note content
  Returns
  	An array of [noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle) s for all notes with content matching the query, ordered with best matches first
  ```
  {  async insertText(app) {    const noteHandles = await app.searchNotes("something");    return `note count: ${ noteHandles.length }`;  }}
  ```
  ## 
  ## app.setNoteName
  Sets a new name for the given note.
  Arguments
  	[noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle)  describing the note to set the name of
  	String new name for the note
  Returns
  	Boolean indicating whether the name could be changed. Generally, the only failure case is if the note handle doesn't identify an extant note.
  Throws
  	If the name argument is not a string
  ```
  {  async noteOption(app, noteUUID) {    const noteHandle = await app.findNote({ uuid: noteUUID }); // findNote returns a note handle with the `name` attribute included    await app.setNoteName(noteHandle, noteHandle.name + " more");  }}
  ```
  
  ## app.setNoteSetting
  Set the value of a note setting, as returned by [app.getNoteSettings](/help/developing_amplenote_plugins/app_interface#app.getNoteSettings) .
  Arguments 
  	[noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle)  describing an extant note to set a setting for
  	key String setting name, which currently allows the following settings:
  		"backgroundColor", with the value as a String representing the hex color used for the background of the note
  		"maxOpenTasks", with the value as an Integer indicating the maximum number of open tasks the user wishes to have in the note
  	value - the value to set for the setting; type varies depending on the setting key
  Returns
  	boolean indicating whether the setting was updated
  Throws
  	If the key or value arguments are not valid
  ```
  {  async noteOption(app, noteUUID) {    await app.setNoteSetting({ uuid: noteUUID }, "backgroundColor", "#ff0000");  }} p
  ```
  
  ## app.setSetting
  Update the value of a single [setting](/help/developing_amplenote_plugins/app_interface#app.settings) . The value will be synchronized to all of the user's devices. Note that the updated value is not guaranteed to be updated in app.settings before the next invocation of a plugin function (check or run).
  Arguments
  	String setting name to update, or add
  	String new value for the setting. Any non-string values (with the exception of null) will be converted to strings.
  Returns
  	Nothing
  ```
  {  async appOption(app) {    const count = parseInt(app.settings["counter"] || "0", 10);    await app.setSetting("counter", count + 1);    app.alert("new value: " + count);  }}
  ```
processedNoteContent: ---
  title: App Interface: Plugin methods to interact with ...
  headers: ## app.saveFile
  ---
  app.saveFile
  Save a file.
  Arguments
  The Blob/ File object describing the content of the file
  String filename to use for the file
  Returns
  A promise that resolves when the request to save the file has been sent. Note that the user may see a prompt to accept/name/save the file, in which case this will resolve as soon as the request has been displayed to the user - it does not wait for the user to actually save the file. {  async noteOption(app) {    const file = new Blob([ "some text" ], { type: "text/plain" });    await app.saveFile(file, "test.txt");  }}
  
  app.searchNotes
  Search note content. This matches in-app "full search" functionality.
  Arguments
  query - string term to search for in note content
  Returns
  An array of [noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle)
   s for all notes with content matching the query, ordered with best matches first {  async insertText(app) {    const noteHandles = await app.searchNotes("something");    return `note count: ${ noteHandles.length }`;  }}
  
  
  
  app.setNoteName
  Sets a new name for the given note.
  Arguments
  [noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle)
    describing the note to set the name of
  String new name for the note
  Returns
  Boolean indicating whether the name could be changed. Generally, the only failure case is if the note handle doesn't identify an extant note.
  Throws
  If the name argument is not a string {  async noteOption(app, noteUUID) {    const noteHandle = await app.findNote({ uuid: noteUUID }); // findNote returns a note handle with the `name` attribute included    await app.setNoteName(noteHandle, noteHandle.name + " more");  }}
  
  app.setNoteSetting
  Set the value of a note setting, as returned by [app.getNoteSettings](/help/developing_amplenote_plugins/app_interface#app.getNoteSettings)
   .
  Arguments
  [noteHandle](/help/developing_amplenote_plugins/appendix_i#noteHandle)
    describing an extant note to set a setting for
  key String setting name, which currently allows the following settings:
  "backgroundColor", with the value as a String representing the hex color used for the background of the note
  "maxOpenTasks", with the value as an Integer indicating the maximum number of open tasks the user wishes to have in the note
  value - the value to set for the setting; type varies depending on the setting key
  Returns
  boolean indicating whether the setting was updated
  Throws
  If the key or value arguments are not valid {  async noteOption(app, noteUUID) {    await app.setNoteSetting({ uuid: noteUUID }, "backgroundColor", "#ff0000");  }} p
  
  app.setSetting
  Update the value of a single [setting](/help/developing_amplenote_plugins/app_interface#app.settings)
   . The value will be synchronized to all of the user's devices. Note that the updated value is not guaranteed to be updated in app.settings before the next invocation of a plugin function (check or run).
  Arguments
  String setting name to update, or add
  String new value for the setting. Any non-string values (with the exception of null) will be converted to strings.
  Returns
  Nothing {  async appOption(app) {    const count = parseInt(app.settings["counter"] || "0", 10);    await app.setSetting("counter", count + 1);    app.alert("new value: " + count);  }}
noteTitle: App Interface: Plugin methods to interact with user notes