AVAudioUnitComponent.TagsDidChangeNotification Свойство
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Константа уведомлений для TagsDidChange
[Foundation.Advice("Use AVAudioUnitComponent.Notifications.ObserveTagsDidChange helper method instead.")]
[Foundation.Field("AVAudioUnitComponentTagsDidChangeNotification", "AVFoundation")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSString TagsDidChangeNotification { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.TagsDidChangeNotification : Foundation.NSString
Значение свойства
Константа NSString должна использоваться в качестве маркера для NSNotificationCenter.
- Атрибуты
Комментарии
Эту константу можно использовать с для NSNotificationCenter регистрации прослушивателя для этого уведомления. Это NSString вместо строки, так как эти значения могут использоваться в качестве маркеров в некоторых собственных библиотеках, а не только для их фактического содержимого строки. Параметр notification для обратного вызова содержит дополнительные сведения, относящиеся к типу уведомления.
// Lambda style
NSNotificationCenter.DefaultCenter.AddObserver (
AVAudioUnitComponent.TagsDidChangeNotification, (notification) => {Console.WriteLine ("Received the notification AVAudioUnitComponent", notification); }
// Method style
void Callback (NSNotification notification)
{
Console.WriteLine ("Received a notification AVAudioUnitComponent", notification);
}
void Setup ()
{
NSNotificationCenter.DefaultCenter.AddObserver (AVAudioUnitComponent.TagsDidChangeNotification, Callback);
}