public interface NCWidgetProviding
| Modifier and Type | Interface and Description |
|---|---|
static interface |
NCWidgetProviding.Block_widgetPerformUpdateWithCompletionHandler |
| Modifier and Type | Method and Description |
|---|---|
default void |
widgetActiveDisplayModeDidChangeWithMaximumSize(long activeDisplayMode,
CGSize maxSize)
If implemented, called when the active display mode changes.
|
default UIEdgeInsets |
widgetMarginInsetsForProposedMarginInsets(UIEdgeInsets defaultMarginInsets)
Widgets wishing to customize the default margin insets can return their preferred values.
|
default void |
widgetPerformUpdateWithCompletionHandler(NCWidgetProviding.Block_widgetPerformUpdateWithCompletionHandler completionHandler)
If implemented, the system will call at opportune times for the widget to update its state, both when the Notification Center is visible as well as in the background.
|
default void widgetActiveDisplayModeDidChangeWithMaximumSize(long activeDisplayMode,
CGSize maxSize)
default UIEdgeInsets widgetMarginInsetsForProposedMarginInsets(UIEdgeInsets defaultMarginInsets)
default void widgetPerformUpdateWithCompletionHandler(NCWidgetProviding.Block_widgetPerformUpdateWithCompletionHandler completionHandler)