mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
🍎 Add subtitle to Notification properties
This commit is contained in:
@@ -27,6 +27,7 @@ CocoaNotification::~CocoaNotification() {
|
||||
void CocoaNotification::Show(const NotificationOptions& options) {
|
||||
notification_.reset([[NSUserNotification alloc] init]);
|
||||
[notification_ setTitle:base::SysUTF16ToNSString(options.title)];
|
||||
[notification_ setSubtitle:base::SysUTF16ToNSString(options.subtitle)];
|
||||
[notification_ setInformativeText:base::SysUTF16ToNSString(options.msg)];
|
||||
|
||||
if ([notification_ respondsToSelector:@selector(setContentImage:)] &&
|
||||
|
||||
@@ -25,6 +25,7 @@ struct NotificationAction {
|
||||
|
||||
struct NotificationOptions {
|
||||
base::string16 title;
|
||||
base::string16 subtitle;
|
||||
base::string16 msg;
|
||||
std::string tag;
|
||||
GURL icon_url;
|
||||
|
||||
Reference in New Issue
Block a user