Options that determine how you can use each drawable's textures.
get · iOS 15.0+
width
TypeScript
get width(): Promise<number>
Swift declaration
var width: Int
The width of each drawable's texture in pixels.
set · iOS 15.0+
width
TypeScript
setWidth(value: number): Promise<void>
Swift declaration
var width: Int
The width of each drawable's texture in pixels.
get · iOS 15.0+
height
TypeScript
get height(): Promise<number>
Swift declaration
var height: Int
The height of each drawable's texture in pixels.
set · iOS 15.0+
height
TypeScript
setHeight(value: number): Promise<void>
Swift declaration
var height: Int
The height of each drawable's texture in pixels.
get · iOS 18.0+
timeout
TypeScript
get timeout(): Promise<SDKHandle>
Swift declaration
var timeout: Duration { get set }
Specifies a timeout value in seconds when querying nextDrawable().
nextDrawable() will be blocked for up to the specified timeout period for a drawable to become available else throws `NextDrawableError.timeoutReached`.
By default this is set to 1 second. Note that if `allowsNextDrawableTimeout` is false, then the timeout parameter will be ignored.
set · iOS 18.0+
timeout
TypeScript
setTimeout(value: SDKHandle): Promise<void>
Swift declaration
var timeout: Duration { get set }
Specifies a timeout value in seconds when querying nextDrawable().
nextDrawable() will be blocked for up to the specified timeout period for a drawable to become available else throws `NextDrawableError.timeoutReached`.
By default this is set to 1 second. Note that if `allowsNextDrawableTimeout` is false, then the timeout parameter will be ignored.