Termux:GUI C/C++ Bindings
|
Contains information needed to create a notification. More...
#include <notification.h>
Public Attributes | |
const char * | channel |
The id of the channel the notification should be posted in. More... | |
bool | ongoing |
When a notification is ongoing, it cannot be dismissed by the user. More... | |
uint64_t | timestamp |
The notification timestamp in milliseconds since the Unix epoch. Leave 0 to use the current time. More... | |
bool | show_timestamp |
Whether to show the timestamp in the notification or not. More... | |
bool | alert_once |
If set, alerts the user only once when the notification is created instead also on updates. More... | |
const tgui_notification * | update |
Can contain a notification id. When used, updates the specified notification instead of creating a new one. More... | |
const void * | icon |
An icon for the notification. Set to NULL for the standard app icon. More... | |
const size_t | icon_length |
The length of the icon data. More... | |
tgui_importance | importance |
The importance. Newer Android versions use the channel importance instead, which can be changed by the user. More... | |
const char ** | actions |
An optional array of string labels for actions the user can click in the notification. More... | |
const size_t | actions_length |
The length of the actions array. More... | |
Contains information needed to create a notification.
const char* tgui_notification_create_info::channel |
The id of the channel the notification should be posted in.
bool tgui_notification_create_info::ongoing |
When a notification is ongoing, it cannot be dismissed by the user.
uint64_t tgui_notification_create_info::timestamp |
The notification timestamp in milliseconds since the Unix epoch. Leave 0 to use the current time.
bool tgui_notification_create_info::show_timestamp |
Whether to show the timestamp in the notification or not.
bool tgui_notification_create_info::alert_once |
If set, alerts the user only once when the notification is created instead also on updates.
const tgui_notification* tgui_notification_create_info::update |
Can contain a notification id. When used, updates the specified notification instead of creating a new one.
const void* tgui_notification_create_info::icon |
An icon for the notification. Set to NULL for the standard app icon.
const size_t tgui_notification_create_info::icon_length |
The length of the icon data.
tgui_importance tgui_notification_create_info::importance |
The importance. Newer Android versions use the channel importance instead, which can be changed by the user.
const char** tgui_notification_create_info::actions |
An optional array of string labels for actions the user can click in the notification.
const size_t tgui_notification_create_info::actions_length |
The length of the actions array.