API 版本:2.0
库版本:2.83.2
由 gi-docgen 2024.1 生成
自:2.70
void g_notification_set_category ( GNotification* notification, const gchar* category )
将 notification 的类型设置为 category。类别有一个主要类型如 email、im 或 device,并且可以有通过 . 分隔的详细信息,例如 im.received 或 email.arrived。设置类别有助于通知服务器选择适当的反馈给用户。
notification
category
email
im
device
.
im.received
email.arrived
标准类别在规范中列出。
自可用:2.70
类型: const gchar*
const gchar*
通知的类别,或 NULL 表示没有类别。
NULL