One Logo Pool Ball
UIKit · IOS API REFERENCE

UIScreen

class · iOS 2.0+ · SDK 27.1

@MainActor class UIScreen

Members (38)

get · iOS 5.0+

brightnessDidChangeNotification

TypeScript
static get brightnessDidChangeNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let brightnessDidChangeNotification: NSNotification.Name
get · iOS 11.0+

capturedDidChangeNotification

TypeScript
static get capturedDidChangeNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let capturedDidChangeNotification: NSNotification.Name
get · iOS 3.2+ · Deprecated in iOS 16.0

didConnectNotification

TypeScript
static get didConnectNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let didConnectNotification: NSNotification.Name
get · iOS 3.2+ · Deprecated in iOS 16.0

didDisconnectNotification

TypeScript
static get didDisconnectNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let didDisconnectNotification: NSNotification.Name
get · iOS 3.2+

modeDidChangeNotification

TypeScript
static get modeDidChangeNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let modeDidChangeNotification: NSNotification.Name
get · iOS 16.0+

referenceDisplayModeStatusDidChangeNotification

TypeScript
static get referenceDisplayModeStatusDidChangeNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let referenceDisplayModeStatusDidChangeNotification: NSNotification.Name
get · iOS 2.0+ · Deprecated in iOS 26.0

main

TypeScript
static get main(): Promise<UIScreen>
Swift declaration
class var main: UIScreen { get }
get · iOS 3.2+ · Deprecated in iOS 16.0

screens

TypeScript
static get screens(): Promise<Array<UIScreen>>
Swift declaration
class var screens: [UIScreen] { get }
init

init

TypeScript
static init(): Promise<UIScreen>
Swift declaration
init()
method · iOS 7.0+

snapshotView

TypeScript
snapshotView(afterUpdates: boolean): Promise<UIView>
Swift declaration
func snapshotView(afterScreenUpdates afterUpdates: Bool) -> UIView
get · iOS 2.0+ · Deprecated in iOS 9.0

applicationFrame

TypeScript
get applicationFrame(): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
var applicationFrame: CGRect { get }
get · iOS 3.2+

availableModes

TypeScript
get availableModes(): Promise<Array<UIScreenMode>>
Swift declaration
var availableModes: [UIScreenMode] { get }
get · iOS 2.0+

bounds

TypeScript
get bounds(): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
var bounds: CGRect { get }
get · iOS 5.0+

brightness

TypeScript
get brightness(): Promise<number>
Swift declaration
var brightness: CGFloat { get set }
set · iOS 5.0+

brightness

TypeScript
setBrightness(value: number): Promise<void>
Swift declaration
var brightness: CGFloat { get set }
get · iOS 13.0+

calibratedLatency

TypeScript
get calibratedLatency(): Promise<number>
Swift declaration
var calibratedLatency: CFTimeInterval { get }
get · iOS 11.0+ · Deprecated in iOS 100000.0

isCaptured

TypeScript
get isCaptured(): Promise<boolean>
Swift declaration
var isCaptured: Bool { get }
get · iOS 8.0+

coordinateSpace

TypeScript
get coordinateSpace(): Promise<SDKHandle>
Swift declaration
var coordinateSpace: any UICoordinateSpace { get }
get · iOS 16.0+

currentEDRHeadroom

TypeScript
get currentEDRHeadroom(): Promise<number>
Swift declaration
var currentEDRHeadroom: CGFloat { get }
get · iOS 3.2+

currentMode

TypeScript
get currentMode(): Promise<(UIScreenMode) | null>
Swift declaration
var currentMode: UIScreenMode? { get set }
set · iOS 3.2+

currentMode

TypeScript
setCurrentMode(value?: (UIScreenMode) | null): Promise<void>
Swift declaration
var currentMode: UIScreenMode? { get set }
get · iOS 8.0+

fixedCoordinateSpace

TypeScript
get fixedCoordinateSpace(): Promise<SDKHandle>
Swift declaration
var fixedCoordinateSpace: any UICoordinateSpace { get }
get · iOS 10.0+ · Deprecated in iOS 15.0

focusedItem

TypeScript
get focusedItem(): Promise<(SDKHandle) | null>
Swift declaration
weak var focusedItem: (any UIFocusItem)? { get }
get · iOS 9.0+ · Deprecated in iOS 15.0

focusedView

TypeScript
get focusedView(): Promise<(UIView) | null>
Swift declaration
weak var focusedView: UIView? { get }
get · iOS 10.3+

maximumFramesPerSecond

TypeScript
get maximumFramesPerSecond(): Promise<number>
Swift declaration
var maximumFramesPerSecond: Int { get }
get · iOS 4.3+

mirrored

TypeScript
get mirrored(): Promise<(UIScreen) | null>
Swift declaration
var mirrored: UIScreen? { get }
get · iOS 8.0+

nativeBounds

TypeScript
get nativeBounds(): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
var nativeBounds: CGRect { get }
get · iOS 8.0+

nativeScale

TypeScript
get nativeScale(): Promise<number>
Swift declaration
var nativeScale: CGFloat { get }
get · iOS 5.0+

overscanCompensation

TypeScript
get overscanCompensation(): Promise<UIScreen_OverscanCompensation>
Swift declaration
var overscanCompensation: UIScreen.OverscanCompensation { get set }
set · iOS 5.0+

overscanCompensation

TypeScript
setOverscanCompensation(value: UIScreen_OverscanCompensation): Promise<void>
Swift declaration
var overscanCompensation: UIScreen.OverscanCompensation { get set }
get · iOS 9.0+

overscanCompensationInsets

TypeScript
get overscanCompensationInsets(): Promise<{ top: number; left: number; bottom: number; right: number }>
Swift declaration
var overscanCompensationInsets: UIEdgeInsets { get }
get · iOS 16.0+

potentialEDRHeadroom

TypeScript
get potentialEDRHeadroom(): Promise<number>
Swift declaration
var potentialEDRHeadroom: CGFloat { get }
get · iOS 4.3+

preferredMode

TypeScript
get preferredMode(): Promise<(UIScreenMode) | null>
Swift declaration
var preferredMode: UIScreenMode? { get }
get · iOS 16.0+

referenceDisplayModeStatus

TypeScript
get referenceDisplayModeStatus(): Promise<UIScreen_ReferenceDisplayModeStatus>
Swift declaration
var referenceDisplayModeStatus: UIScreen.ReferenceDisplayModeStatus { get }
get · iOS 4.0+

scale

TypeScript
get scale(): Promise<number>
Swift declaration
var scale: CGFloat { get }
get · iOS 9.0+ · Deprecated in iOS 15.0

supportsFocus

TypeScript
get supportsFocus(): Promise<boolean>
Swift declaration
var supportsFocus: Bool { get }
get · iOS 5.0+

wantsSoftwareDimming

TypeScript
get wantsSoftwareDimming(): Promise<boolean>
Swift declaration
var wantsSoftwareDimming: Bool { get set }
set · iOS 5.0+

wantsSoftwareDimming

TypeScript
setWantsSoftwareDimming(value: boolean): Promise<void>
Swift declaration
var wantsSoftwareDimming: Bool { get set }

Skipped declarations

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

UIScreen.displayLink(withTarget:selector:)

Objective-C selectors cannot cross the bridge.

All UIKit types →