🍎 Add subtitle to Notification properties
This commit is contained in:
parent
440b238157
commit
a196bf97bc
5 changed files with 19 additions and 1 deletions
|
@ -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:)] &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue