UIView.SnapshotView(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a UIView that contains a snapshot image of the current view'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
Boolean that indicates whether the snapshot should be taken subsequent to recent changes being incorporated.
Returns
A new view object that is based upon a snapshot of the rendered contents of the current view.
- Attributes
Remarks
This method is faster than rendering a view into a bitmap context. Application developers can use this method to create a visual proxy for their view before performing animations on a complex view hierarchy.
Applies to
See also
- <xref:UIKit.UIView.ResizableSnapshotView>
- <xref:UIKit.UIView.DrawViewHierarchy>