init
TypeScriptstatic init(): Promise<WKSnapshotConfiguration>Swift declarationinit()class · iOS 11.0+ · SDK 27.1
@MainActor class WKSnapshotConfigurationstatic init(): Promise<WKSnapshotConfiguration>Swift declarationinit()get afterScreenUpdates(): Promise<boolean>Swift declarationvar afterScreenUpdates: Bool { get set }setAfterScreenUpdates(value: boolean): Promise<void>Swift declarationvar afterScreenUpdates: Bool { get set }get rect(): Promise<{ x: number; y: number; width: number; height: number }>Swift declarationvar rect: CGRect { get set }setRect(value: { x: number; y: number; width: number; height: number }): Promise<void>Swift declarationvar rect: CGRect { get set }get snapshotWidth(): Promise<(_Foundation_NSNumber) | null>Swift declaration@NSCopying var snapshotWidth: NSNumber? { get set }setSnapshotWidth(value?: (_Foundation_NSNumber) | null): Promise<void>Swift declaration@NSCopying var snapshotWidth: NSNumber? { get set }No declarations were skipped in this snapshot.