NotificationCenter Changes for Swift
NotificationCenter
Modified NCUpdateResult [enum]
| Raw Value Type | |
|---|---|
| From | -- |
| To | UInt |
Modified NCWidgetController
| Declaration | |
|---|---|
| From | class NCWidgetController : NSObject {
class func widgetController() -> Self!
func setHasContent(_ flag: Bool, forWidgetWithBundleIdentifier bundleID: String!)
} |
| To | class NCWidgetController : NSObject {
class func widgetController() -> Self
func setHasContent(_ flag: Bool, forWidgetWithBundleIdentifier bundleID: String)
} |
| Declaration | |
|---|---|
| From | func setHasContent(_ flag: Bool, forWidgetWithBundleIdentifier bundleID: String!) |
| To | func setHasContent(_ flag: Bool, forWidgetWithBundleIdentifier bundleID: String) |
| Declaration | |
|---|---|
| From | class func widgetController() -> Self! |
| To | class func widgetController() -> Self |
Modified NCWidgetProviding
| Declaration | |
|---|---|
| From | protocol NCWidgetProviding : NSObjectProtocol {
optional func widgetPerformUpdateWithCompletionHandler(_ completionHandler: ((NCUpdateResult) -> Void)!)
optional func widgetMarginInsetsForProposedMarginInsets(_ defaultMarginInsets: UIEdgeInsets) -> UIEdgeInsets
} |
| To | protocol NCWidgetProviding : NSObjectProtocol {
optional func widgetPerformUpdateWithCompletionHandler(_ completionHandler: (NCUpdateResult) -> Void)
optional func widgetMarginInsetsForProposedMarginInsets(_ defaultMarginInsets: UIEdgeInsets) -> UIEdgeInsets
} |
| Declaration | |
|---|---|
| From | optional func widgetPerformUpdateWithCompletionHandler(_ completionHandler: ((NCUpdateResult) -> Void)!) |
| To | optional func widgetPerformUpdateWithCompletionHandler(_ completionHandler: (NCUpdateResult) -> Void) |
| Declaration | |
|---|---|
| From | class func notificationCenterVibrancyEffect() -> UIVibrancyEffect! |
| To | class func notificationCenterVibrancyEffect() -> UIVibrancyEffect |