UIKit.UIBarItem.GrayscaleStatusDidChangeNotification Property
Notification constant for GrayscaleStatusDidChange

Syntax

[Foundation.Field("UIAccessibilityGrayscaleStatusDidChangeNotification", "UIKit")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_8_0)]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_8_0)]
public static Foundation.NSString GrayscaleStatusDidChangeNotification { get; }

Value

NSString constant, should be used as a token to NSNotificationCenter.

Remarks

This constant can be used with the Foundation.NSNotificationCenter to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.

c# Example

              // Lambda style
              NSNotificationCenter.DefaultCenter.AddObserver (
              UIBarItem.GrayscaleStatusDidChangeNotification, (notification) => {Console.WriteLine ("Received the notification UIBarItem", notification); }
              
              
              // Method style
              void Callback (NSNotification notification)
              {
              Console.WriteLine ("Received a notification UIBarItem", notification);
              }
              
              void Setup ()
              {
              NSNotificationCenter.DefaultCenter.AddObserver (UIBarItem.GrayscaleStatusDidChangeNotification, Callback);
              }
            

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0