# GraffitiWindowNotifier
Class Inherits GraffitiSuite.BaseControl
## About
GraffitiWindowNotifier gives you the power to display notifications inside your application’s individual windows with smooth animations, easy interaction, and timed display.
Uses the popular GraffitiNote for display items, so instantiation is easy and notifications are flexible.
## Preview




Previous
Next
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| DockBounceTypes | None <br> Once <br> Continuous | macOS Dock icon bounce types. |
| Positions | TopLeft <br> TopCenter <br> TopRight <br> BottomLeft <br> BottomCenter <br> BottomRight | Supported locations for notifications with the parent window. |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| NoteButtonPressed | note as GraffitiNote | (None) | Raised when the user pressed the button of a note. |
| NoteHidden | note as GraffitiNote | (None) | Raised when a note's hide animation has completed. |
| NoteLinkPressed | note as GraffitiNote <br> index as Integer <br> content as String | (None) | Raised when the user pressed a link within the note. Second and third parameters indicate the link pressed. |
| NotePressed | note as GraffitiNote | (None) | Raised when the user has clicked a note. |
| NoteShown | note as GraffitiNote | (None) | Raised when a note's show animation has complete. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Sub | Add | (None) | Adds and displays a new Note. Pass zero to visibleTime to keep a note visible until closed or any other value to have the note hide after that period, in milliseconds. |
| Shared | Sub | (None) | Bounces the application's dock icon on macOS. |
| Function | Create | As | Creates a new GraffitiNote for use with this class. |
| Function | Create | As | Creates a new GraffitiNote for use with this class. |
| Function | IndexOf | As | Returns the position of the specified note within the internal array. |
| Function | LastIndex | As | Returns the note at the last index in the class's internal array. Usually the last shown. |
| Function | NoteAt | As | Returns the note at the specified index. |
| Sub | Remove | (None) | Removes the specified note by initiating its close process. |
| Sub | RemoveAll | (None) | Removes all notes. |
| Sub | RemoveAt | (None) | Removes the note at the specified index by initiating its close process. |
| Sub | Resize | (None) | Should be called the parent Window has been resized to reposition notes. |
| Protected | Shared | updateNotificationBadge | |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AnimationTime | Integer | 500 | Time, in milliseconds, that note operations are animated. |
| Easing | GraffitiAnimator.Easings | Nil | Easing to apply to animations. |
| Margin | Integer | 5 | Pixel distance around the outside edge of notes. |
| Position | Positions | Nil | Location of notes. |
| Private | As | = | |
| Private | mNotificationCount | Integer | |
| Private | As | Nil | |
| Private | | Dictionary | |
| Shared | As | Nil | Determines how dock icon bouncing behaves. |
| Shared | As | Nil | |
| ShowCountInDock | Boolean | True | When True, the dock icon will be updated with a count badge on macOS. |