ClassLoader.FindLibrary(String) Method

Definition

Returns the absolute path name of a native library.

C#
[Android.Runtime.Register("findLibrary", "(Ljava/lang/String;)Ljava/lang/String;", "GetFindLibrary_Ljava_lang_String_Handler")]
protected virtual string? FindLibrary (string? libname);

Parameters

libname
String

The library name

Returns

The absolute path of the native library

Attributes

Remarks

Returns the absolute path name of a native library. The VM invokes this method to locate the native libraries that belong to classes loaded with this class loader. If this method returns null, the VM searches the library along the path specified as the "java.library.path" property.

Added in 1.2.

Java documentation for java.lang.ClassLoader.findLibrary(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35