SCNView.Prepare 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.
Overloads
Prepare(NSObject[], Action<Boolean>) |
Prepares content for smoothly rendering a new animated scene. |
Prepare(NSObject, Func<Boolean>) |
Supplies a parameterless handler that is used to halt preparation of a scene by returning |
Prepare(NSObject[], Action<Boolean>)
Prepares content for smoothly rendering a new animated scene.
[Foundation.Export("prepareObjects:withCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void Prepare (Foundation.NSObject[] objects, Action<bool> completionHandler);
[Foundation.Export("prepareObjects:withCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void Prepare (Foundation.NSObject[] objects, Action<bool> completionHandler);
abstract member Prepare : Foundation.NSObject[] * Action<bool> -> unit
override this.Prepare : Foundation.NSObject[] * Action<bool> -> unit
Parameters
- objects
- NSObject[]
The objects to prepare.
A handler that receives true
if preparation of all scene resources succeeded, or false
if not.
Implements
- Attributes
Applies to
Prepare(NSObject, Func<Boolean>)
Supplies a parameterless handler that is used to halt preparation of a scene by returning true
, or allowing preparation to continue by returning false
.
[Foundation.Export("prepareObject:shouldAbortBlock:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool Prepare (Foundation.NSObject obj, Func<bool> abortHandler);
[Foundation.Export("prepareObject:shouldAbortBlock:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool Prepare (Foundation.NSObject obj, Func<bool> abortHandler);
abstract member Prepare : Foundation.NSObject * Func<bool> -> bool
override this.Prepare : Foundation.NSObject * Func<bool> -> bool
Parameters
- obj
- NSObject
Returns
Implements
- Attributes