Edit

Share via


MTLDrawable_Extensions.AddPresentedHandler Method

Definition

Causes the provided block to be run after the drawable is displayed.

[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

Parameters

This
IMTLDrawable

The instance on which this extension method operates.

block
Action<IMTLDrawable>

The code that will be called after the drawable is displayed.

Attributes

Applies to