# 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 |
| --- | :---: | :---: | --- |
| Add | note as GraffitiNote <br> visibleTime as Integer = 10000 | (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. |
| Create | type as GraffitiNote.NoteTypes <br> container as DesktopContainer | GraffitiNote | Creates a new GraffitiNote for use with this class. |
| Create | type as GraffitiNote.NoteTypes <br> title as String <br> text as String | GraffitiNote | Creates a new GraffitiNote for use with this class. |
| IndexOf | note as GraffitiNote | Integer | Returns the position of the specified note within the internal array. |
| LastIndex | (None) | Integer | Returns the note at the last index in the class's internal array. Usually the last shown. |
| NoteAt | index as Integer | GraffitiNote | Returns the note at the specified index. |
| Remove | note as GraffitiNote | (None) | Removes the specified note by initiating its close process. |
| RemoveAll | (None) | (None) | Removes all notes. |
| RemoveAt | index as Integer | (None) | Removes the note at the specified index by initiating its close process. |
| Resize | (None) | (None) | Should be called the parent Window has been resized to reposition notes. |
## Shared Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| BounceIcon | (None) | (None) | Bounces the application's dock icon on macOS. |
| updateNotificationBadge | count as Integer | (None) | (None) |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AnimationTime | Integer | 500 | Time, in milliseconds, that note operations are animated. |
| Easing | GraffitiAnimator.Easings | (None) | Easing to apply to animations. |
| Margin | Integer | 5 | Pixel distance around the outside edge of notes. |
| Position | Positions | (None) | Location of notes. |
| ShowCountInDock | Boolean | True | When True, the dock icon will be updated with a count badge on macOS. |
## Shared Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| DockBounceType | DockBounceTypes | (None) | Determines how dock icon bouncing behaves. |
| NotificationCount | Integer | (None) | (None) |