iOS Guides | Samples

MonoTouch.UIKit.UILocalNotification Class

Creates time-based notifications that the operating system delivers to the user.

See Also: UILocalNotification


[MonoTouch.Foundation.Register("UILocalNotification", true)]
[MonoTouch.ObjCRuntime.Deprecated(MonoTouch.ObjCRuntime.PlatformName.iOS, 10, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, "Use 'UserNotifications.UNNotificationRequest' instead.")]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 4, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public class UILocalNotification : NSObject, INSCoding, INSCopying, IDisposable


Local notifications are intended for simple date- and time-related notifications. The application does not need to be running for local notifications to be triggered by the operating system. Applications are limited to 64 local notifications.

Related content


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

The members of MonoTouch.UIKit.UILocalNotification are listed below.

See Also: NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
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

AlertActionString. An alert action.
AlertBodyString. The alert's body content.
AlertLaunchImageString. The filename of an image used in lieu of the default launch image.
AlertTitleString. Gets or sets the title of the notification.
ApplicationIconBadgeNumberInt32. The number to display in the app icon's badge.
CategoryString. Gets or sets a category name that will be used to find a group of actions with which to populate the notification.
ClassHandleIntPtr. The handle for this class.
DefaultSoundNameNSString. Represents the value associated with the constant UILocalNotificationDefaultSoundName
FireDateNSDate. The date and time when the notification will be delivered.
HasActionBoolean. Whether the notification shows or hides the alert action.
RegionCLRegion. Gets or sets the physical region that triggers the notification.
RepeatCalendarNSCalendar. The calendar used when it reschedules a repeating notification.
RepeatIntervalNSCalendarUnit. The calendar interval at which to repeat. Default is 0, indicating no repeat.
SoundNameString. The name of the sound file to play when the alert is displayed.
TimeZoneNSTimeZone. The time zone of the notification's FireDate.
UserInfoNSDictionary. A dictionary of property-list values, used for custom information.

Public Methods

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