Method GetNativeLibrarySymbol
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
namestringThe name of the symbol to locate in the native library.
Returns
- T
An instance of the delegate of type
Trepresenting the symbol, or null if the symbol is not found or the native library handle is not initialized.
Type Parameters
TThe 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.