UIKit.UIApplication.EnsureUIThread Method
Assertion to ensure that this call is being done from the UIKit thread.

Syntax

public static void EnsureUIThread ()

Remarks

This method is used internally by MonoTouch to ensure that accesses done to UIKit classes and methods are only performed from the UIKit thread. This is necessary because the UIKit API is not thread-safe and accessing it from multiple threads will corrupt the application state and will likely lead to a crash that is hard to identify.

MonoTouch only performs the thread checks in debug builds. Release builds have this feature disabled.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0