Show / Hide Table of Contents

Class ISN_NSNotificationCenter

A container for information broadcast through a notification center to all registered observers. https://developer.apple.com/documentation/foundation/nsnotificationcenter?language=objc

Inheritance
System.Object
ISN_NSNotificationCenter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SA.iOS.Foundation
Assembly: cs.temp.dll.dll
Syntax
public class ISN_NSNotificationCenter

Properties

DefaultCenter

The app’s default notification center.

All system notifications sent to an app are posted to the defaultCenter notification center. You can also post your own notifications there.

If your app uses notifications extensively, you may want to create and post to your own notification centers rather than posting only to the defaultCenter notification center. When a notification is posted to a notification center, the notification center scans through the list of registered observers, which may slow down your app. By organizing notifications functionally around one or more notification centers, less work is done each time a notification is posted, which can improve performance throughout your app.

Declaration
public static ISN_NSNotificationCenter DefaultCenter { get; }
Property Value
Type Description
ISN_NSNotificationCenter

Methods

AddObserverForName(String, Action<ISN_NSNotification>)

Adds an entry to the notification center's dispatch table that includes a notification queue and a block to add to the queue, and an optional notification name.

Declaration
public void AddObserverForName(string name, Action<ISN_NSNotification> callback)
Parameters
Type Name Description
System.String name

The name of the notification for which to register the observer; that is, only notifications with this name are used to add the block to the operation queue.

Action<ISN_NSNotification> callback

The block to be executed when the notification is received.

In This Article
Back to top Generated by DocFX