Share via


IMTLDrawable.AddPresentedHandler(Action<IMTLDrawable>) Method

Definition

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

[Foundation.Export("addPresentedHandler:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void AddPresentedHandler(Action<Metal.IMTLDrawable> block);
[<Foundation.Export("addPresentedHandler:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddPresentedHandler : Action<Metal.IMTLDrawable> -> unit
override this.AddPresentedHandler : Action<Metal.IMTLDrawable> -> unit

Parameters

block
Action<IMTLDrawable>

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

Attributes

Applies to