Playbook Documentation Beta

Class Snapshot​Waiter

public final class SnapshotWaiter 

A snapshot timing manager to wait and fulfillment for the scenario content to be rendered.

Initializers

init()

public init() 

Initialize a new waiter.

Properties

is​Waiting

public var isWaiting: Bool 

Specifies whether currently waiting.

Methods

wait()

public func wait() 

Wait for the snapshot for 10 seconds from now.

wait(until:​)

public func wait(until timeout: DispatchTime) 

Wait for the snapshot until the specified timeout period.

Parameters

timeout Dispatch​Time

A timeout period for waiting the snapshot.

fulfill()

public func fulfill() 

Complete waiting for the snapshot.