AVAsset.WasDefragmentedNotification 속성

정의

WasDefragmented에 대한 알림 상수

[Foundation.Advice("Use AVAsset.Notifications.ObserveWasDefragmented helper method instead.")]
[Foundation.Field("AVAssetWasDefragmentedNotification", "AVFoundation")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSString WasDefragmentedNotification { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.WasDefragmentedNotification : Foundation.NSString

속성 값

NSString 상수는 NSNotificationCenter에 대한 토큰으로 사용해야 합니다.

특성

설명

이 상수는 와 함께 NSNotificationCenter 사용하여 이 알림에 대한 수신기를 등록할 수 있으며, 개발자는 강력한 형식의 알림을 ObserveWasDefragmented 대신 사용할 수도 있습니다. 이러한 값은 실제 문자열 콘텐츠에만 사용되는 대신 일부 네이티브 라이브러리에서 토큰으로 사용할 수 있으므로 문자열 대신 NSString입니다. 콜백에 대한 'notification' 매개 변수에는 알림 유형과 관련된 추가 정보가 포함됩니다.

// Lambda style
NSNotificationCenter.DefaultCenter.AddObserver (
        AVAsset.WasDefragmentedNotification, (notification) => {Console.WriteLine ("Received the notification AVAsset", notification); }


// Method style
void Callback (NSNotification notification)
{
    Console.WriteLine ("Received a notification AVAsset", notification);
}

void Setup ()
{
    NSNotificationCenter.DefaultCenter.AddObserver (AVAsset.WasDefragmentedNotification, Callback);
}

적용 대상