NotificationProvider Xojo Plugin |

# DesktopNotificationProvider.Notify Method

Posts notification that has title, message and reference object.

Notify(
type as DesktopNotificationProvider.NotifyType,
title as String,
message as String,
allowVerticalGrow as Boolean,
reference as WeakRef)

#### Parameters

type
  Type of the notification to post.
title
  The title of the notification. If the title is empty string then title is skipped and message gets to use the space which the Title had.
message
  The message of the notification.
allowVerticalGrow
  If set to true then the notification can grow vertically to fit the message, else message is truncated if there is not enough space.
reference
  Weak reference to a reference object.

#### Remarks

A reference object is object relating to the notification. For example if you have text box on the screen which you want to validate by putting notification on the screen, like “This email is not valid” and you want to ensure the text box only ever emits one notification as in clears previous notification then its good to use the text box as reference object as then the NotificationProvider will automatically clear previous notification with same reference object before posting new.

#### See Also

DesktopNotificationProvider Control