次の方法で共有


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);
}

適用対象