Skip to content

Commit 1af07d5

Browse files
Merge pull request #28 from docsforadobe/broadcastPrefsChanged
added broadcastPrefsChanged
2 parents 38de708 + e034eee commit 1af07d5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/application/application.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,3 +834,27 @@ if (selectedItems){
834834
// No projectItems selected.
835835
}
836836
```
837+
838+
---
839+
840+
### app.broadcastPrefsChanged()
841+
842+
`app.broadcastPrefsChanged()`
843+
844+
#### Description
845+
846+
Notifies Application that preferences have changed.
847+
848+
#### Parameters
849+
850+
String ID of the preference that changed. (currently only listens to "BE::PreferencesScratchDisksChanged")
851+
852+
#### Returns
853+
854+
Returns `true` if update was successful.
855+
856+
#### Example
857+
858+
```js
859+
app.broadcastPrefsChanged("BE::PreferencesScratchDisksChanged");
860+
```

0 commit comments

Comments
 (0)