Foundation · IOS API REFERENCE
RunLoop.SchedulerTimeType.Stride
struct · iOS 13.0+ · SDK 27.1
struct Stride
The interval by which run loop times advance.
Members (12)
static · iOS 13.0+nanoseconds
TypeScriptstatic nanoseconds(ns: number): RunLoop_SchedulerTimeType_Stride
Swift declarationstatic func nanoseconds(_ ns: Int) -> RunLoop.SchedulerTimeType.Stride
Converts the specified number of nanoseconds into an instance of this scheduler time type.
init · iOS 13.0+init
TypeScriptstatic initFloatLiteral(value: number): RunLoop_SchedulerTimeType_Stride
Swift declarationinit(floatLiteral value: TimeInterval)
Creates a run loop scheduler time interval from a floating-point seconds value.
static · iOS 13.0+microseconds
TypeScriptstatic microseconds(us: number): RunLoop_SchedulerTimeType_Stride
Swift declarationstatic func microseconds(_ us: Int) -> RunLoop.SchedulerTimeType.Stride
Converts the specified number of microseconds into an instance of this scheduler time type.
static · iOS 13.0+milliseconds
TypeScriptstatic milliseconds(ms: number): RunLoop_SchedulerTimeType_Stride
Swift declarationstatic func milliseconds(_ ms: Int) -> RunLoop.SchedulerTimeType.Stride
Converts the specified number of milliseconds into an instance of this scheduler time type.
get · iOS 13.0+timeInterval
TypeScriptget timeInterval(): number
Swift declarationvar timeInterval: TimeInterval { get }
The value of this time interval in seconds.
init · iOS 13.0+init
TypeScriptstatic initIntegerLiteral(value: number): RunLoop_SchedulerTimeType_Stride
Swift declarationinit(integerLiteral value: TimeInterval)
Creates a run loop scheduler time interval from an integer seconds value.
init · iOS 13.0+init
TypeScriptstatic initExactly(source: number): (RunLoop_SchedulerTimeType_Stride) | null
Swift declarationinit?<T>(exactly source: T) where T : BinaryInteger
Creates a run loop scheduler time interval from a binary integer type.
If `exactly` can't convert to a `TimeInterval`, the initializer returns `nil`.
static · iOS 13.0+seconds
TypeScriptstatic seconds(s: number): RunLoop_SchedulerTimeType_Stride
Swift declarationstatic func seconds(_ s: Double) -> RunLoop.SchedulerTimeType.Stride
Converts the specified number of seconds, as a floating-point value, into an instance of this scheduler time type.
static · iOS 13.0+seconds
TypeScriptstatic seconds83121(s: number): RunLoop_SchedulerTimeType_Stride
Swift declarationstatic func seconds(_ s: Int) -> RunLoop.SchedulerTimeType.Stride
Converts the specified number of seconds into an instance of this scheduler time type.
get · iOS 13.0+magnitude
TypeScriptget magnitude(): number
Swift declarationvar magnitude: TimeInterval
The value of this time interval in seconds.
set · iOS 13.0+magnitude
TypeScriptset magnitude(value: number)
Swift declarationvar magnitude: TimeInterval
The value of this time interval in seconds.
init · iOS 13.0+init
TypeScriptstatic init(timeInterval: number): RunLoop_SchedulerTimeType_Stride
Swift declarationinit(_ timeInterval: TimeInterval)
Creates a run loop scheduler time interval from the given time interval.
Skipped declarations
No declarations were skipped in this snapshot.
All Foundation types →