Termux:GUI C/C++ Bindings
|
This file contains all functions related to notifications. More...
#include "types.h"
Go to the source code of this file.
Classes | |
struct | tgui_notification_create_info |
Contains information needed to create a notification. More... | |
This file contains all functions related to notifications.
tgui_err tgui_notification_create_channel | ( | tgui_connection | c, |
const char * | id, | ||
const char * | name, | ||
tgui_importance | imp | ||
) |
Creates a notification channel.
c | The connection to use. |
id | The channel id. |
name | The name displayed to the user. |
imp | The importance of the channel. |
tgui_err tgui_notification_create_normal | ( | tgui_connection | c, |
tgui_notification * | n, | ||
const tgui_notification_create_info * | info, | ||
const char * | title, | ||
const char * | content | ||
) |
Creates a normal notification.
c | The connection to use. | |
[out] | n | Will contain the notification id if successful. |
[in] | info | General information for constructing a notification. |
title | The notification title. | |
content | The notification content. |
tgui_err tgui_notification_create_big_text | ( | tgui_connection | c, |
tgui_notification * | n, | ||
const tgui_notification_create_info * | info, | ||
const char * | title, | ||
const char * | content | ||
) |
Creates a notification with a larger content field that can be opened up.
c | The connection to use. | |
[out] | n | Will contain the notification id if successful. |
[in] | info | General information for constructing a notification. |
title | The notification title. | |
content | The notification content. |
tgui_err tgui_notification_big_image | ( | tgui_connection | c, |
tgui_notification * | n, | ||
const tgui_notification_create_info * | info, | ||
const char * | title, | ||
const char * | content, | ||
const void * | img, | ||
size_t | img_length, | ||
bool | thumbnail | ||
) |
Creates a notification with a big image.
c | The connection to use. | |
[out] | n | Will contain the notification id if successful. |
[in] | info | General information for constructing a notification. |
title | The notification title. | |
content | The notification content. | |
[in] | img | The image data. |
img_length | The length of the image data. | |
thumbnail | Whether to show a thumbnail when the notification is folded up. |
tgui_err tgui_notification_create_custom | ( | tgui_connection | c, |
tgui_notification * | n, | ||
const tgui_notification_create_info * | info, | ||
tgui_remote_layout | normal, | ||
tgui_remote_layout * | expanded, | ||
tgui_remote_layout * | hud | ||
) |
Creates a notification with a remote layout.
c | The connection to use. | |
[out] | n | Will contain the notification id if successful. |
[in] | info | General information for constructing a notification. |
normal | The layout for the standard notification. | |
[in] | expanded | The layout for the expanded notification. Optional. |
[in] | hud | The layout for the HUD notification. Optional. |
tgui_err tgui_notification_dismiss | ( | tgui_connection | c, |
tgui_notification | n | ||
) |