Table of Contents

Method GetNativeLibrarySymbol

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

GetNativeLibrarySymbol<T>(string)

Retrieves a delegate of the specified type that represents a symbol with the given name from the SkiaSharp native library.

public static T? GetNativeLibrarySymbol<T>(string name) where T : Delegate

Parameters

name string

The name of the symbol to locate in the native library.

Returns

T

An instance of the delegate of type T representing the symbol, or null if the symbol is not found or the native library handle is not initialized.

Type Parameters

T

The type of the delegate to retrieve. Must be a delegate type.

Remarks

This method attempts to locate the specified symbol in the native library and create a delegate of the specified type. Ensure that the native library is loaded and the handle is valid before calling this method.