Modifier

Partager via


UIWindow.KeyboardDidChangeFrameNotification Property

Definition

Notification constant for KeyboardDidChangeFrame

public static Foundation.NSString KeyboardDidChangeFrameNotification { get; }
member this.KeyboardDidChangeFrameNotification : Foundation.NSString

Property Value

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

Remarks

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

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


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

Applies to