Freigeben über


MTLDrawable_Extensions.AddPresentedHandler Methode

Definition

Bewirkt, dass das bereitgestellte block ausgeführt wird, nachdem das Zeichnen angezeigt wird.

[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 static void AddPresentedHandler (this Metal.IMTLDrawable This, Action<Metal.IMTLDrawable> block);
static member AddPresentedHandler : Metal.IMTLDrawable * Action<Metal.IMTLDrawable> -> unit

Parameter

This
IMTLDrawable

Die Instanz, auf der diese Erweiterungsmethode ausgeführt wird.

block
Action<IMTLDrawable>

Der Code, der nach dem Zeichnen aufgerufen wird, wird angezeigt.

Attribute

Gilt für: