NSTimer extension type

NSTimer

on
Implemented types
Available extensions

Constructors

NSTimer()
Returns a new instance of NSTimer constructed with the default new method.
NSTimer.as(ObjCObject other)
Constructs a NSTimer that points to the same underlying object as other.
NSTimer.fromPointer(Pointer<ObjCObjectImpl> other, {bool retain = false, bool release = false})
Constructs a NSTimer that wraps the given raw object pointer.

Properties

debugDescription NSString

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

debugDescription
no setter
description NSString

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

description
no setter
fireDate NSDate

Available on NSTimer, provided by the NSTimer$Methods extension

fireDate
getter/setter pair
hash int

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

hash
no setter
hashCode int
The hash code for this object.
no setterinherited
isProxy bool

Available on NSObject, provided by the NSObject$Methods extension

isProxy
no setter
isProxy bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isProxy
no setter
isValid bool

Available on NSTimer, provided by the NSTimer$Methods extension

isValid
no setter
object$ ObjCObject
final
ref ObjCObjectRef
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
superclass ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

superclass
no setter
timeInterval double

Available on NSTimer, provided by the NSTimer$Methods extension

timeInterval
no setter
tolerance double

Available on NSTimer, provided by the NSTimer$Methods extension

tolerance
getter/setter pair
userInfo ObjCObject?

Available on NSTimer, provided by the NSTimer$Methods extension

userInfo
no setter

Methods

addObserver(Observer observer, {required NSString forKeyPath, int options = NSKeyValueObservingOptions.NSKeyValueObservingOptionNew, Pointer<Void>? context}) Observation

Available on NSObject, provided by the Observed extension

Registers the Observer to receive KVO notifications for the key path relative to this NSObject.
autorelease() NSObjectProtocol

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

autorelease
class$() ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

class
conformsToProtocol(Protocol aProtocol) bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

conformsToProtocol:
copy() ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

copy
dealloc() → void

Available on NSObject, provided by the NSObject$Methods extension

dealloc
doesNotRecognizeSelector(Pointer<ObjCSelector> aSelector) → void

Available on NSObject, provided by the NSObject$Methods extension

doesNotRecognizeSelector:
fire() → void

Available on NSTimer, provided by the NSTimer$Methods extension

fire
forwardingTargetForSelector(Pointer<ObjCSelector> aSelector) ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

forwardingTargetForSelector:
forwardInvocation(NSInvocation anInvocation) → void

Available on NSObject, provided by the NSObject$Methods extension

forwardInvocation:
init() NSTimer

Available on NSTimer, provided by the NSTimer$Methods extension

init
init() NSObject

Available on NSObject, provided by the NSObject$Methods extension

init
initWithFireDate(NSDate date, {required double interval, required bool repeats, required ObjCBlock<Void Function(NSTimer)> block}) NSTimer

Available on NSTimer, provided by the NSTimer$Methods extension

initWithFireDate:interval:repeats:block:
initWithFireDate$1(NSDate date, {required double interval, required ObjCObject target, required Pointer<ObjCSelector> selector, ObjCObject? userInfo, required bool repeats}) NSTimer

Available on NSTimer, provided by the NSTimer$Methods extension

initWithFireDate:interval:target:selector:userInfo:repeats:
invalidate() → void

Available on NSTimer, provided by the NSTimer$Methods extension

invalidate
isEqual(ObjCObject object) bool

Available on NSObject, provided by the NSObject$Methods extension

isEqual:
isEqual(ObjCObject object) bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isEqual:
isKindOfClass(ObjCObject aClass) bool

Available on NSObject, provided by the NSObject$Methods extension

isKindOfClass:
isKindOfClass(ObjCObject aClass) bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isKindOfClass:
isMemberOfClass(ObjCObject aClass) bool

Available on NSObject, provided by the NSObject$Methods extension

isMemberOfClass:
isMemberOfClass(ObjCObject aClass) bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isMemberOfClass:
methodForSelector(Pointer<ObjCSelector> aSelector) Pointer<NativeFunction<Void Function()>>

Available on NSObject, provided by the NSObject$Methods extension

methodForSelector:
methodSignatureForSelector(Pointer<ObjCSelector> aSelector) NSMethodSignature

Available on NSObject, provided by the NSObject$Methods extension

methodSignatureForSelector:
mutableCopy() ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

mutableCopy
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performSelector(Pointer<ObjCSelector> aSelector) ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

performSelector:
performSelector(Pointer<ObjCSelector> aSelector) ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

performSelector:
performSelector$1(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject}) ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

performSelector:withObject:
performSelector$1(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject}) ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:
performSelector$2(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject, required ObjCObject withObject$1}) ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

performSelector:withObject:withObject:
performSelector$2(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject, required ObjCObject withObject$1}) ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:withObject:
release() → void

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

release
respondsToSelector(Pointer<ObjCSelector> sel) bool

Available on ObjCObject, provided by the RespondsToSelector extension

respondsToSelector(Pointer<ObjCSelector> aSelector) bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

respondsToSelector:
retain() NSObjectProtocol

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

retain
retainCount() int

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

retainCount
self() NSObjectProtocol

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

self
toString() String
A string representation of this object.
inherited
zone() Pointer<NSZone>

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

zone
zone() Pointer<NSZone>

Available on NSObject, provided by the NSObject$Methods extension

zone

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

alloc() NSTimer
alloc
override
allocWithZone(Pointer<NSZone> zone) NSTimer
allocWithZone:
override
isA(ObjCObject obj) bool
Returns whether obj is an instance of NSTimer.
override
new$() NSTimer
new
override
scheduledTimerWithTimeInterval(double ti, {required NSInvocation invocation, required bool repeats}) NSTimer
scheduledTimerWithTimeInterval:invocation:repeats:
scheduledTimerWithTimeInterval$1(double interval, {required bool repeats, required ObjCBlock<Void Function(NSTimer)> block}) NSTimer
scheduledTimerWithTimeInterval:repeats:block:
scheduledTimerWithTimeInterval$2(double ti, {required ObjCObject target, required Pointer<ObjCSelector> selector, ObjCObject? userInfo, required bool repeats}) NSTimer
scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:
timerWithTimeInterval(double ti, {required NSInvocation invocation, required bool repeats}) NSTimer
timerWithTimeInterval:invocation:repeats:
timerWithTimeInterval$1(double interval, {required bool repeats, required ObjCBlock<Void Function(NSTimer)> block}) NSTimer
timerWithTimeInterval:repeats:block:
timerWithTimeInterval$2(double ti, {required ObjCObject target, required Pointer<ObjCSelector> selector, ObjCObject? userInfo, required bool repeats}) NSTimer
timerWithTimeInterval:target:selector:userInfo:repeats: