共用方式為


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>

顯示可繪製之後所呼叫的程式碼。

屬性

適用於