UNNotificationContent Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
System-generated object that contains the parts of a notification, including text, sound, badge and launch images, attachments, and so on.
[Foundation.Register("UNNotificationContent", true)]
public class UNNotificationContent : Foundation.NSObject, Foundation.INSMutableCopying, Foundation.INSSecureCoding, IDisposable
[<Foundation.Register("UNNotificationContent", true)>]
type UNNotificationContent = class
inherit NSObject
interface INSCoding
interface INativeObject
interface IDisposable
interface INSCopying
interface INSMutableCopying
interface INSSecureCoding
- Inheritance
- Derived
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| UNNotificationContent(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| UNNotificationContent(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| UNNotificationContent(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| Attachments |
Gets an array of UNNotificationAttachment objects that contains the attachments for the notification. |
| Badge |
Gets the number to display in the app's icon badge. |
| Body |
Gets the message that is displayed in the notification alert. |
| CategoryIdentifier |
Gets an application-defined category object identifier. |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| DebugDescription | (Inherited from NSObject) |
| Description | (Inherited from NSObject) |
| ExposedBindings | (Inherited from NSObject) |
| FilterCriteria | |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| InterruptionLevel | |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| LaunchImageName |
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. |
| RelevanceScore | |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| Sound |
Gets the sound that is played when the notification is triggered. |
| Subtitle |
Gets the notification subtitle. |
| SummaryArgument |
Gets the notification-specific addition to the category summary string. |
| SummaryArgumentCount |
Gets the number of arguments that the notification adds to the category summary string. |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| TargetContentIdentifier | |
| ThreadIdentifier |
Gets an application-specific identifier that is used to group notifications. |
| Title |
Gets the notification description. |
| UserInfo |
Gets the dictionary of notification custom data. |
| Zone | (Inherited from NSObject) |