add
TypeScriptadd(runloop: _Foundation_RunLoop, mode: _Foundation_RunLoop_Mode): voidSwift declarationfunc add(to runloop: RunLoop, forMode mode: RunLoop.Mode)class · iOS 3.1+ · SDK 27.1
class CADisplayLinkadd(runloop: _Foundation_RunLoop, mode: _Foundation_RunLoop_Mode): voidSwift declarationfunc add(to runloop: RunLoop, forMode mode: RunLoop.Mode)invalidate(): voidSwift declarationfunc invalidate()remove(runloop: _Foundation_RunLoop, mode: _Foundation_RunLoop_Mode): voidSwift declarationfunc remove(from runloop: RunLoop, forMode mode: RunLoop.Mode)get duration(): numberSwift declarationvar duration: CFTimeInterval { get }get frameInterval(): numberSwift declarationvar frameInterval: Int { get set }set frameInterval(value: number)Swift declarationvar frameInterval: Int { get set }get isPaused(): booleanSwift declarationvar isPaused: Bool { get set }set isPaused(value: boolean)Swift declarationvar isPaused: Bool { get set }get preferredFrameRateRange(): CAFrameRateRangeSwift declarationvar preferredFrameRateRange: CAFrameRateRange { get set }set preferredFrameRateRange(value: CAFrameRateRange)Swift declarationvar preferredFrameRateRange: CAFrameRateRange { get set }get preferredFramesPerSecond(): numberSwift declarationvar preferredFramesPerSecond: Int { get set }set preferredFramesPerSecond(value: number)Swift declarationvar preferredFramesPerSecond: Int { get set }get targetTimestamp(): numberSwift declarationvar targetTimestamp: CFTimeInterval { get }get timestamp(): numberSwift declarationvar timestamp: CFTimeInterval { get }2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
CADisplayLink.init(target:selector:)
Objective-C selectors cannot cross the bridge.
CADisplayLink.init()
inherited init: cannot prove legal (class declares 1 custom initializer)