JniRuntime.JniValueManager.CreatePeer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a managed peer wrapper according to the derived implementation.
public abstract Java.Interop.IJavaPeerable? CreatePeer(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions transfer, Type? targetType);
abstract member CreatePeer : JniObjectReference * Java.Interop.JniObjectReferenceOptions * Type -> Java.Interop.IJavaPeerable
Parameters
- reference
- JniObjectReference
The source JNI reference for the new managed peer.
- transfer
- JniObjectReferenceOptions
Reference-transfer options for the peer implementation.
- targetType
- Type
The requested peer type, or the implementation's default when null.
Returns
The created peer, or null when the implementation cannot produce a compatible peer.
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.