|
| 1 | +<?xml version="1.0"?> |
| 2 | +<docs> |
| 3 | + <member name="T:JavaPeerableExtensions"> |
| 4 | + <summary> |
| 5 | + Extension methods on <see cref="T:Java.Interop.IJavaPeerable" />. |
| 6 | + </summary> |
| 7 | + <remarks /> |
| 8 | + </member> |
| 9 | + <member name="M:GetJniTypeName"> |
| 10 | + <summary>Gets the JNI name of the type of the instance <paramref name="self" />.</summary> |
| 11 | + <param name="self"> |
| 12 | + The <see cref="T:Java.Interop.IJavaPeerable" /> instance |
| 13 | + to get the JNI type name of. |
| 14 | + </param> |
| 15 | + <remarks> |
| 16 | + <para> |
| 17 | + The JNI type name is the name of the Java type, as it would be |
| 18 | + used in Java Native Interface (JNI) API calls. For example, |
| 19 | + instead of the Java name <c>java.lang.Object</c>, the JNI name |
| 20 | + is <c>java/lang/Object</c>. |
| 21 | + </para> |
| 22 | + </remarks> |
| 23 | + </member> |
| 24 | + <member name="M:TryJavaCast"> |
| 25 | + <typeparam name="TResult"> |
| 26 | + The type to coerce <paramref name="self" /> to. |
| 27 | + </typeparam> |
| 28 | + <param name="self"> |
| 29 | + A <see cref="T:Java.Interop.IJavaPeerable" /> instance |
| 30 | + to coerce to type <typeparamref name="TResult" />. |
| 31 | + </param> |
| 32 | + <param name="result"> |
| 33 | + When this method returns, contains a value of type |
| 34 | + <typeparamref name="TResult" /> if <paramref name="self" /> can be |
| 35 | + coerced to the Java type corresponding to <typeparamref name="TResult" />, |
| 36 | + or <c>null</c> if the coercion is not valid. |
| 37 | + </param> |
| 38 | + <summary> |
| 39 | + Try to coerce <paramref name="self" /> to type <typeparamref name="TResult" />, |
| 40 | + checking that the coercion is valid on the Java side. |
| 41 | + </summary> |
| 42 | + <returns> |
| 43 | + <see langword="true" /> if <pramref name="self" /> was converted successfully; |
| 44 | + otherwise, <see langword="false" />. |
| 45 | + </returns> |
| 46 | + <remarks> |
| 47 | + <block subset="none" type="note"> |
| 48 | + Implementations of <see cref="T:Java.Interop.IJavaPeerable" /> consist |
| 49 | + of two halves: a <i>Java peer</i> and a <i>managed peer</i>. |
| 50 | + The <see cref="P:Java.Interop.IJavaPeerable.PeerReference" /> property |
| 51 | + associates the managed peer to the Java peer. |
| 52 | + </block> |
| 53 | + <block subset="none" type="note"> |
| 54 | + The <see cref="T:Java.Interop.JniTypeSignatureAttribute" /> or |
| 55 | + <see cref="T:Android.Runtime.RegisterAttribute" /> custom attributes are |
| 56 | + used to associated a managed type to a Java type. |
| 57 | + </block> |
| 58 | + </remarks> |
| 59 | + <exception cref="T:System.ArgumentException"> |
| 60 | + <para> |
| 61 | + The Java peer type for <typeparamref name="TResult" /> could not be found. |
| 62 | + </para> |
| 63 | + </exception> |
| 64 | + <exception cref="T:System.NotSupportedException"> |
| 65 | + <para> |
| 66 | + The type <typeparamref name="TResult" /> or a <i>Invoker type</i> for |
| 67 | + <typeparamref name="TResult" /> does not provide an |
| 68 | + <i>activation constructor</i>, a constructor with a singature of |
| 69 | + <c>(ref JniObjectReference, JniObjectReferenceOptions)</c> or |
| 70 | + <c>(IntPtr, JniHandleOwnership)</c>. |
| 71 | + </para> |
| 72 | + </exception> |
| 73 | + <seealso cref="M:Java.Interop.JavaPeerableExtensions.JavaAs``1(Java.Interop.IJavaPeerable)" /> |
| 74 | + </member> |
| 75 | + <member name="M:JavaAs"> |
| 76 | + <typeparam name="TResult"> |
| 77 | + The type to coerce <paramref name="self" /> to. |
| 78 | + </typeparam> |
| 79 | + <param name="self"> |
| 80 | + A <see cref="T:Java.Interop.IJavaPeerable" /> instance |
| 81 | + to coerce to type <typeparamref name="TResult" />. |
| 82 | + </param> |
| 83 | + <summary> |
| 84 | + Try to coerce <paramref name="self" /> to type <typeparamref name="TResult" />, |
| 85 | + checking that the coercion is valid on the Java side. |
| 86 | + </summary> |
| 87 | + <returns> |
| 88 | + A value of type <typeparamref name="TResult" /> if the Java peer to |
| 89 | + <paramref name="self" /> can be coerced to the Java type corresponding |
| 90 | + to <typeparamref name="TResult" />; otherwise, <c>null</c>. |
| 91 | + </returns> |
| 92 | + <remarks> |
| 93 | + <block subset="none" type="note"> |
| 94 | + Implementations of <see cref="T:Java.Interop.IJavaPeerable" /> consist |
| 95 | + of two halves: a <i>Java peer</i> and a <i>managed peer</i>. |
| 96 | + The <see cref="P:Java.Interop.IJavaPeerable.PeerReference" /> property |
| 97 | + associates the managed peer to the Java peer. |
| 98 | + </block> |
| 99 | + <block subset="none" type="note"> |
| 100 | + The <see cref="T:Java.Interop.JniTypeSignatureAttribute" /> or |
| 101 | + <see cref="T:Android.Runtime.RegisterAttribute" /> custom attributes are |
| 102 | + used to associated a managed type to a Java type. |
| 103 | + </block> |
| 104 | + </remarks> |
| 105 | + <exception cref="T:System.ArgumentException"> |
| 106 | + <para> |
| 107 | + The Java peer type for <typeparamref name="TResult" /> could not be found. |
| 108 | + </para> |
| 109 | + </exception> |
| 110 | + <exception cref="T:System.NotSupportedException"> |
| 111 | + <para> |
| 112 | + The type <typeparamref name="TResult" /> or a <i>Invoker type</i> for |
| 113 | + <typeparamref name="TResult" /> does not provide an |
| 114 | + <i>activation constructor</i>, a constructor with a singature of |
| 115 | + <c>(ref JniObjectReference, JniObjectReferenceOptions)</c> or |
| 116 | + <c>(IntPtr, JniHandleOwnership)</c>. |
| 117 | + </para> |
| 118 | + </exception> |
| 119 | + <seealso cref="P:Java.Interop.JavaPeerableExtensions.TryJavaCast``1(Java.Interop.IJavaPeerable)" /> |
| 120 | + </member> |
| 121 | +</docs> |
0 commit comments