INCWidgetProviding
WidgetAllowsEditing
GetWidgetMarginInsets(NSEdgeInsets)
GetWidgetMarginInsets(UIEdgeInsets)
WidgetActiveDisplayModeDidChange(NCWidgetDisplayMode, CGSize)
WidgetDidBeginEditing()
WidgetDidEndEditing()
WidgetPerformUpdate(Action<NCUpdateResult>)
GetWidgetAllowsEditing(INCWidgetProviding)
GetWidgetMarginInsets(INCWidgetProviding, NSEdgeInsets)
GetWidgetMarginInsets(INCWidgetProviding, UIEdgeInsets)
WidgetActiveDisplayModeDidChange(INCWidgetProviding, NCWidgetDisplayMode, CGSize)
WidgetDidBeginEditing(INCWidgetProviding)
WidgetDidEndEditing(INCWidgetProviding)
WidgetPerformUpdate(INCWidgetProviding, Action<NCUpdateResult>)
net10.0-ios17.2
namespace NotificationCenter
{
[ObsoletedOSPlatform("ios14.0")]
[ObsoletedOSPlatform("macos11.0")]
[Protocol(Name = "NCWidgetProviding", WrapperType = typeof(NCWidgetProvidingWrapper))]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WidgetActiveDisplayModeDidChange", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NCWidgetDisplayMode), typeof(CGSize) }, Selector = "widgetActiveDisplayModeDidChange:withMaximumSize:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WidgetPerformUpdate", ParameterBlockProxy = new[] { typeof(NIDActionArity1V226) }, ParameterByRef = new[] { false }, ParameterType = new[] { typeof(Action<NCUpdateResult>) }, Selector = "widgetPerformUpdateWithCompletionHandler:")]
[ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "GetWidgetMarginInsets", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(UIEdgeInsets) }, ReturnType = typeof(UIEdgeInsets), Selector = "widgetMarginInsetsForProposedMarginInsets:")]
[SupportedOSPlatform("ios")]
[SupportedOSPlatform("macos")]
public interface INCWidgetProviding : INativeObject, IDisposable
{
[BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export("widgetMarginInsetsForProposedMarginInsets:")]
[ObsoletedOSPlatform("ios10.0")]
[ObsoletedOSPlatform("macos12.0")]
[OptionalMember]
[SupportedOSPlatform("ios")]
[SupportedOSPlatform("macos")]
virtual UIEdgeInsets GetWidgetMarginInsets(UIEdgeInsets defaultMarginInsets);
}
}
| .NET | 10.0 |
|---|---|
Information specific to net10.0 | |
| Platforms | This API is only available when you target a specific platform: |
| iOS | 10.010.110.210.311.011.111.211.311.412.012.112.212.312.413.013.113.213.313.413.513.614.014.114.214.314.414.515.015.215.416.016.116.216.417.017.2 |
Information specific to net10.0-ios17.2 | |
| Assembly | Microsoft.iOS , Version=18.5.0.0, PublicKeyToken=84e04ff9cfb79065 |
| Referencing | The API is automatically referenced. |
| Preview | The API is contained in a preview framework. |
| Platform Restrictions | This API is only supported on the following platforms:
|
- Built-in API
- Package-provided API