Modifier

Partager via


UITextView.CurrentInputModeDidChangeNotification Property

Definition

Notification constant for CurrentInputModeDidChange

[Foundation.Advice("Use UITextView.Notifications.ObserveCurrentInputModeDidChange helper method instead.")]
[Foundation.Field("UITextInputCurrentInputModeDidChangeNotification", "UIKit")]
public static Foundation.NSString CurrentInputModeDidChangeNotification { get; }
member this.CurrentInputModeDidChangeNotification : Foundation.NSString

Property Value

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

Attributes

Remarks

This constant can be used with the NSNotificationCenter to register a listener for this notification.

// Lambda style
NSNotificationCenter.DefaultCenter.AddObserver (UITextView.CurrentInputModeDidChangeNotification, (notification) => Console.WriteLine ("Received the notification UITextView", notification);

// Method style
void Callback (NSNotification notification)
{
   Console.WriteLine ("Received a notification UITextView", notification);
}
void Setup ()
{
   NSNotificationCenter.DefaultCenter.AddObserver (UITextView.CurrentInputModeDidChangeNotification, Callback);
}

Applies to