MTLDrawable.AddPresentedHandler(Action<IMTLDrawable>) 方法

定义

导致提供的 block 在显示可绘制对象后运行。

[Foundation.Export("addPresentedHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 3, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddPresentedHandler (Action<Metal.IMTLDrawable> block);
abstract member AddPresentedHandler : Action<Metal.IMTLDrawable> -> unit
override this.AddPresentedHandler : Action<Metal.IMTLDrawable> -> unit

参数

block
Action<IMTLDrawable>

显示可绘制对象后将调用的代码。

属性

适用于