One Logo Pool Ball
App Services · IOS API REFERENCE

NotificationCenter

Create and manage widgets for the Today view.

4 types

8 callable entries

7 skipped

53% entry coverage

Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.

Types

Functions and constants

method · iOS 10.0+ · Deprecated in iOS 14.0

widgetMaximumSize

TypeScript
widgetMaximumSize(displayMode: NCWidgetDisplayMode): { width: number; height: number }
Swift declaration
func widgetMaximumSize(for displayMode: NCWidgetDisplayMode) -> CGSize
get · iOS 10.0+ · Deprecated in iOS 14.0

widgetActiveDisplayMode

TypeScript
get widgetActiveDisplayMode(): NCWidgetDisplayMode
Swift declaration
var widgetActiveDisplayMode: NCWidgetDisplayMode { get }
get · iOS 10.0+ · Deprecated in iOS 14.0

widgetLargestAvailableDisplayMode

TypeScript
get widgetLargestAvailableDisplayMode(): NCWidgetDisplayMode
Swift declaration
var widgetLargestAvailableDisplayMode: NCWidgetDisplayMode { get set }
set · iOS 10.0+ · Deprecated in iOS 14.0

widgetLargestAvailableDisplayMode

TypeScript
set widgetLargestAvailableDisplayMode(value: NCWidgetDisplayMode)
Swift declaration
var widgetLargestAvailableDisplayMode: NCWidgetDisplayMode { get set }
static · iOS 8.0+ · Deprecated in iOS 10.0

notificationCenter

TypeScript
static notificationCenter(): Promise<_UIKit_UIVibrancyEffect>
Swift declaration
class func notificationCenter() -> UIVibrancyEffect
static · iOS 13.0+ · Deprecated in iOS 14.0

widgetEffect

TypeScript
static widgetEffect(vibrancyStyle: _UIKit_UIVibrancyEffectStyle): Promise<_UIKit_UIVibrancyEffect>
Swift declaration
class func widgetEffect(forVibrancyStyle vibrancyStyle: UIVibrancyEffectStyle) -> UIVibrancyEffect
static · iOS 10.0+ · Deprecated in iOS 13.0

widgetPrimary

TypeScript
static widgetPrimary(): Promise<_UIKit_UIVibrancyEffect>
Swift declaration
class func widgetPrimary() -> UIVibrancyEffect
static · iOS 10.0+ · Deprecated in iOS 13.0

widgetSecondary

TypeScript
static widgetSecondary(): Promise<_UIKit_UIVibrancyEffect>
Swift declaration
class func widgetSecondary() -> UIVibrancyEffect

Skipped declarations

7 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NCUpdateResult

The iOS SDK compiler rejected this binding: 'NCUpdateResult' is not a member type of class 'Foundation.NotificationCenter'

NCUpdateResult.init(rawValue:)

The iOS SDK compiler rejected this binding: type 'NotificationCenter' has no member 'NCUpdateResult'

NCWidgetDisplayMode

The iOS SDK compiler rejected this binding: 'NCWidgetDisplayMode' is not a member type of class 'Foundation.NotificationCenter'

NCWidgetDisplayMode.init(rawValue:)

The iOS SDK compiler rejected this binding: type 'NotificationCenter' has no member 'NCWidgetDisplayMode'

NCWidgetController.setHasContent(_:forWidgetWithBundleIdentifier:)

The iOS SDK compiler rejected this binding: 'NCWidgetController' is not a member type of class 'Foundation.NotificationCenter'

NCWidgetController.init()

The iOS SDK compiler rejected this binding: type 'NotificationCenter' has no member 'NCWidgetController'

protocol implementation NCWidgetProviding

The iOS SDK compiler rejected this binding: 'NCWidgetProviding' is not a member type of class 'Foundation.NotificationCenter'