MonoMac.QTKit.QTCaptureConnection.FormatDescriptionWillChangeNotification Property
Notification constant for FormatDescriptionWillChange

Syntax

public static MonoMac.Foundation.NSString FormatDescriptionWillChangeNotification { get; }

Value

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

Remarks

This constant can be used with the MonoMac.Foundation.NSNotificationCenter to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.

c# Example

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


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

void Setup ()
{
    NSNotificationCenter.DefaultCenter.AddObserver (QTCaptureConnection.FormatDescriptionWillChangeNotification, Callback);
}

Requirements

Namespace: MonoMac.QTKit
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0