namespace UIKit
{
    [Register("UITraitCollection", true)]
    [SupportedOSPlatform("maccatalyst")]
    [SupportedOSPlatform("ios")]
    [SupportedOSPlatform("tvos")]
    public class UITraitCollection : NSObject, INSCoding, INSCopying, INSSecureCoding, INativeObject, IDisposable
    {
        [BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
        [Export("traitCollectionWithUserInterfaceLevel:")]
        [SupportedOSPlatform("ios13.0")]
        [SupportedOSPlatform("maccatalyst")]
        [UnsupportedOSPlatform("tvos")]
        public static UITraitCollectionnot null FromUserInterfaceLevel(UIUserInterfaceLevel userInterfaceLevel);
    }
}
Assembly Microsoft.MacCatalyst , Version=17.0.0.0, PublicKeyToken=84e04ff9cfb79065
.NET 6.0-ios6.0-maccatalyst7.0-ios7.0-maccatalyst8.0-ios8.0-maccatalyst9.0-ios9.0-maccatalyst
Xamarin iOS 0.0
OS Platforms

For the selected framework this API is only supported on the following OS platforms:

  • iOS >= 13
  • Mac Catalyst
  • tvOS
  • Built-in API
  • Package-provided API

03/28/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙