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

Syntax

[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

Requirements

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

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

[read-only]
AttachmentsUNNotificationAttachment[]. Gets an array of UNNotificationAttachment objects that contains the attachments for the notification.
[read-only]
BadgeNSNumber. Gets the number to display in the app's icon badge.
[read-only]
BodyString. Gets the message that is displayed in the notification alert.
[read-only]
CategoryIdentifierString. Gets an application-defined category object identifier.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
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.
[read-only]
SoundUNNotificationSound. Gets the sound that is played when the notification is triggered.
[read-only]
SubtitleString. Gets the notification subtitle.
[read-only]
ThreadIdentifierString. Gets an application-specific identifier that is used to group notifications.
[read-only]
TitleString. Gets the notification descritpion.
[read-only]
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.