Constructor AndroidNotification
AndroidNotification(string, string, DateTime)
Create a notification struct with all optional fields set to default values.
Declaration
public AndroidNotification(string title, string text, DateTime fireTime)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Notification title |
| string | text | Text to show on notification |
| DateTime | fireTime | Date and time when to show, can be DateTime.Now to show right away |
AndroidNotification(string, string, DateTime, TimeSpan)
Create a repeatable notification struct with all optional fields set to default values.
Declaration
public AndroidNotification(string title, string text, DateTime fireTime, TimeSpan repeatInterval)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Notification title |
| string | text | Text to show on notification |
| DateTime | fireTime | Date and time when to show, can be DateTime.Now to show right away |
| TimeSpan | repeatInterval | Makes notification repeatable with this time interval |
Remarks
There is a minimum period of 1 minute for repeating notifications.
AndroidNotification(string, string, DateTime, TimeSpan, string)
Create a notification struct with a custom small icon and all optional fields set to default values.
Declaration
public AndroidNotification(string title, string text, DateTime fireTime, TimeSpan repeatInterval, string smallIcon)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Notification title |
| string | text | Text to show on notification |
| DateTime | fireTime | Date and time when to show, can be DateTime.Now to show right away |
| TimeSpan | repeatInterval | Makes notification repeatable with this time interval |
| string | smallIcon | Name of the small icon to be shown on notification |