One Logo Pool Ball
Foundation · IOS API REFERENCE

NSConditionLock

class · SDK 27.1

class NSConditionLock

Members (10)

init

init

TypeScript
static init(condition: number): NSConditionLock
Swift declaration
init(condition: Int)
method

lock

TypeScript
lockBefore(limit: globalThis.Date): boolean
Swift declaration
func lock(before limit: Date) -> Bool
method

lock

TypeScript
lockWhenCondition(condition: number): void
Swift declaration
func lock(whenCondition condition: Int)
method

lock

TypeScript
lockWhenConditionBefore(condition: number, limit: globalThis.Date): boolean
Swift declaration
func lock(whenCondition condition: Int, before limit: Date) -> Bool
method

try

TypeScript
try(): boolean
Swift declaration
func `try`() -> Bool
method

tryLock

TypeScript
tryLock(condition: number): boolean
Swift declaration
func tryLock(whenCondition condition: Int) -> Bool
method

unlock

TypeScript
unlock(condition: number): void
Swift declaration
func unlock(withCondition condition: Int)
get

condition

TypeScript
get condition(): number
Swift declaration
var condition: Int { get }
get · iOS 2.0+

name

TypeScript
get name(): (string) | null
Swift declaration
var name: String? { get set }
set · iOS 2.0+

name

TypeScript
set name(value: (string) | null)
Swift declaration
var name: String? { get set }

Skipped declarations

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

NSConditionLock.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All Foundation types →