Termux:GUI C/C++ Bindings
Loading...
Searching...
No Matches
tgui_notification_create_info Struct Reference

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_notificationupdate
 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...
 

Detailed Description

Contains information needed to create a notification.

Member Data Documentation

◆ channel

const char* tgui_notification_create_info::channel

The id of the channel the notification should be posted in.

◆ ongoing

bool tgui_notification_create_info::ongoing

When a notification is ongoing, it cannot be dismissed by the user.

◆ timestamp

uint64_t tgui_notification_create_info::timestamp

The notification timestamp in milliseconds since the Unix epoch. Leave 0 to use the current time.

◆ show_timestamp

bool tgui_notification_create_info::show_timestamp

Whether to show the timestamp in the notification or not.

◆ alert_once

bool tgui_notification_create_info::alert_once

If set, alerts the user only once when the notification is created instead also on updates.

◆ update

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.

◆ icon

const void* tgui_notification_create_info::icon

An icon for the notification. Set to NULL for the standard app icon.

◆ icon_length

const size_t tgui_notification_create_info::icon_length

The length of the icon data.

◆ importance

tgui_importance tgui_notification_create_info::importance

The importance. Newer Android versions use the channel importance instead, which can be changed by the user.

◆ actions

const char** tgui_notification_create_info::actions

An optional array of string labels for actions the user can click in the notification.

◆ actions_length

const size_t tgui_notification_create_info::actions_length

The length of the actions array.


The documentation for this struct was generated from the following file: