Modifica

Condividi tramite


UIScreen.SnapshotView(Boolean) Method

Definition

Creates a snapshot of the current screen's contents.

[Foundation.Export("snapshotViewAfterScreenUpdates:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIView SnapshotView (bool afterScreenUpdates);
abstract member SnapshotView : bool -> UIKit.UIView
override this.SnapshotView : bool -> UIKit.UIView

Parameters

afterScreenUpdates
Boolean

Returns

A new UIView based on the current screen contents.

Attributes

Remarks

The UIView created by this method will contain an image based on the screen's current contents. Application developers can manipulate the resulting UIView normally, except that attempts to manipulate the T:UIKit.CoreAnimation.CGImage of it's Layer's Contents will silently fail.

Applies to