Browse Source

Document new nativeImage.createFromNamedImage method

Samuel Attard 7 years ago
parent
commit
ec610cd97b
1 changed files with 10 additions and 0 deletions
  1. 10 0
      docs/api/native-image.md

+ 10 - 0
docs/api/native-image.md

@@ -157,6 +157,16 @@ Returns `NativeImage`
 
 Creates a new `NativeImage` instance from `dataURL`.
 
+### `nativeImage.createFromNamedImage(imageName)` _macOS_
+
+* `imageName` String
+
+Returns `NativeImage`
+
+Creates a new `NativeImage` instance from the NSImage that maps to the
+given image name.  See [`NSImageName`](https://developer.apple.com/documentation/appkit/nsimagename?language=objc)
+for a list of possible values.
+
 ## Class: NativeImage
 
 > Natively wrap images such as tray, dock, and application icons.