BlockLiteral.GetDelegateForBlock<T> Method

Definition

This method supports the Xamarin.iOS runtime and is not intended for use by application developers.

public T GetDelegateForBlock<T> () where T : class;
member this.GetDelegateForBlock : unit -> 'T (requires 'T : null)

Type Parameters

T

Desired type to get, the delegate must be compatible with this type.

Returns

T

Returns a delegate of the given type that can be used to invoke the Objective-C block in the provided handle.

Applies to