Condividi tramite


MTLDrawable.AddPresentedHandler(Action<IMTLDrawable>) Metodo

Definizione

Fa sì che l'oggetto specificato block venga eseguito dopo la visualizzazione dell'oggetto drawable.

[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

Parametri

block
Action<IMTLDrawable>

Codice che verrà chiamato dopo la visualizzazione dell'oggetto drawable.

Attributi

Si applica a