Language

InputStreamInvoker.FromJniHandle(IntPtr, JniHandleOwnership) Method

Definition

Creates a .NET stream from a JNI reference to a Java input stream.

public static System.IO.Stream? FromJniHandle(IntPtr handle, Android.Runtime.JniHandleOwnership transfer);
static member FromJniHandle : nativeint * Android.Runtime.JniHandleOwnership -> System.IO.Stream

Parameters

handle
IntPtr

nativeint

A JNI reference to a Java input stream, or Zero.

transfer
JniHandleOwnership

The ownership of the supplied JNI reference.

Returns

A wrapper for the Java input stream, or null if no Java input stream is obtained.

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