UIView.AnnouncementDidFinishNotification 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
AnnouncementDidFinish 的通知常數
[Foundation.Advice("Use UIView.Notifications.ObserveAnnouncementDidFinish helper method instead.")]
[Foundation.Field("UIAccessibilityAnnouncementDidFinishNotification", "UIKit")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSString AnnouncementDidFinishNotification { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.AnnouncementDidFinishNotification : Foundation.NSString
屬性值
NSString 常數應該用來做為 NSNotificationCenter 的權杖。
- 屬性
備註
這個常數可以搭配 使用 NSNotificationCenter ,以註冊此通知的接聽程式。 這是 NSString 而非字串,因為這些值可以當做某些原生程式庫中的權杖使用,而不是單純用於其實際字串內容。 回呼的 'notification' 參數包含通知類型特有的額外資訊。
// Lambda style
NSNotificationCenter.DefaultCenter.AddObserver (
UIView.AnnouncementDidFinishNotification, (notification) => {
Console.WriteLine ("Received the notification UIView", notification);
});
// Method style
void Callback (NSNotification notification)
{
Console.WriteLine ("Received a notification UIView", notification);
}
void Setup ()
{
NSNotificationCenter.DefaultCenter.AddObserver (UIView.AnnouncementDidFinishNotification, Callback);
}
適用於
另請參閱
- AnnouncementNotification
- AnnouncementDidFinishNotification
- ClosedCaptioningStatusDidChangeNotification
- GuidedAccessStatusDidChangeNotification
- <xref:UIKit.UIView.InvertColorStatusDidChangeNotification>
- LayoutChangedNotification
- MonoAudioStatusDidChangeNotification
- PageScrolledNotification
- ScreenChangedNotification
- <xref:UIKit.UIView.VoiceOverStatusChangedNotification>