iOS Guides | Samples

MonoTouch.UserNotifications.UNNotificationContent Class

System-generated object that contains the parts of a notification, including text, sound, badge and launch images, attachments, and so on.

See Also: UNNotificationContent


[MonoTouch.Foundation.Register("UNNotificationContent", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 10, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.TvOS, 10, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.WatchOS, 3, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UNNotificationContent : NSObject, INSMutableCopying, INSSecureCoding, IDisposable

Related content


Namespace: MonoTouch.UserNotifications
Assembly: monotouch (in monotouch.dll)
Assembly Versions:

The members of MonoTouch.UserNotifications.UNNotificationContent are listed below.

See Also: NSObject

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

AttachmentsUNNotificationAttachment[]. Gets an array of UNNotificationAttachment objects that contains the attachments for the notification.
BadgeNSNumber. Gets the number to display in the app's icon badge.
BodyString. Gets the message that is displayed in the notification alert.
CategoryIdentifierString. Gets an application-defined category object identifier.
ClassHandleIntPtr. The handle for this class.
LaunchImageNameString. Gets the name of an image that is stored in the application's bundle to display when the user launches the application from the notification.
SoundUNNotificationSound. Gets the sound that is played when the notification is triggered.
SubtitleString. Gets the notification subtitle.
ThreadIdentifierString. Gets an application-specific identifier that is used to group notifications.
TitleString. Gets the notification descritpion.
UserInfoNSDictionary. Gets the dictionary of notification custom data.

Public Methods

Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
MutableCopy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.