Language

CharSequence.ToLocalJniHandle Method

Definition

Overloads

Name Description
ToLocalJniHandle(ICharSequence)

Gets a local JNI reference for a Java character sequence.

ToLocalJniHandle(IEnumerable<Char>)

Gets a local JNI reference for a sequence of characters.

ToLocalJniHandle(String)

Creates a Java string for a non-null managed string and gets a local JNI reference to it.

ToLocalJniHandle(ICharSequence)

Gets a local JNI reference for a Java character sequence.

public static IntPtr ToLocalJniHandle(Java.Lang.ICharSequence? value);
static member ToLocalJniHandle : Java.Lang.ICharSequence -> nativeint

Parameters

value
ICharSequence

The Java character sequence, or null.

Returns

IntPtr

nativeint

The local JNI reference. If value is null, the result is Zero.

Remarks

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

ToLocalJniHandle(IEnumerable<Char>)

Gets a local JNI reference for a sequence of characters.

public static IntPtr ToLocalJniHandle(System.Collections.Generic.IEnumerable<char>? value);
static member ToLocalJniHandle : seq<char> -> nativeint

Parameters

value
IEnumerable<Char>

The characters to represent, or null.

Returns

IntPtr

nativeint

The local JNI reference. If value is null, the result is Zero.

Remarks

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

ToLocalJniHandle(String)

Creates a Java string for a non-null managed string and gets a local JNI reference to it.

public static IntPtr ToLocalJniHandle(string? value);
static member ToLocalJniHandle : string -> nativeint

Parameters

value
String

The managed string to represent, or null.

Returns

IntPtr

nativeint

The local JNI reference. If value is null, the result is Zero.

Remarks

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