UITraitCollection.FromForceTouchCapability(UIForceTouchCapability) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new UITraitCollection object where only the availability of 3D Touch has been specified.
[Foundation.Export("traitCollectionWithForceTouchCapability:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UITraitCollection FromForceTouchCapability (UIKit.UIForceTouchCapability capability);
static member FromForceTouchCapability : UIKit.UIForceTouchCapability -> UIKit.UITraitCollection
Parameters
- capability
- UIForceTouchCapability
Returns
- Attributes