UserNotification.SetContentImage
--------------------------------

Sets image shown in the content of the notification.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [UserNotification](component_UserNotification.md) | [3.5](newinversion35.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "UserNotification.SetContentImage"; UserNotificationReference; Image ) 

**MBS**( **"UserNotification.SetContentImage";** /\* Sets image shown in the content of the notification. \*/  
**$UserNotificationReference**; /\* An user notification reference.e.g. $ref \*/   
**$Image**) /\* the new image as container value. Can be JPEG, PNG or other formats supported by macOS. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| UserNotificationReference | An user notification reference. | $ref |
| Image | the new image as container value. Can be JPEG, PNG or other formats supported by macOS. | $image |

### Result

Returns OK or error.

### Description

Sets image shown in the content of the notification.  
Requires macOS 10.9.  
### See also

- [UserNotification.ContentImage](UserNotificationContentImage.md)
- [UserNotification.SetSoundName](UserNotificationSetSoundName.md)

This function is free to use.

Created 18th August 2014 , last changed 10th August 2020

  
[UserNotification.SetActionButtonTitle](UserNotificationSetActionButtonTitle.md) - [UserNotification.SetDeliveryDate](UserNotificationSetDeliveryDate.md)

[HTML Version](UserNotificationSetContentImage.shtml)