Esempio n. 1
0
 static void n_AddEmojis_Landroid_content_Context_Landroid_text_Spannable_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, int p2)
 {
     global::Com.Applozic.Mobicommons.Emoticon.IEmojiconHandler __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicommons.Emoticon.IEmojiconHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Content.Context p0 = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Android.Text.ISpannable p1 = (global::Android.Text.ISpannable)global::Java.Lang.Object.GetObject <global::Android.Text.ISpannable> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.AddEmojis(p0, p1, p2);
 }
 public static global::Android.Text.ISpannable GetSmiledText(global::Android.Content.Context p0, string p1, global::Com.Applozic.Mobicommons.Emoticon.IEmojiconHandler p2)
 {
     global::Java.Lang.String        jls_p1   = p1 == null ? null : new global::Java.Lang.String(p1);
     global::Android.Text.ISpannable __result = GetSmiledText(p0, jls_p1, p2);
     if (jls_p1 != null)
     {
         jls_p1.Dispose();
     }
     return(__result);
 }
        public static unsafe global::Android.Text.ISpannable GetSmiledText(global::Android.Content.Context p0, global::Java.Lang.ICharSequence p1, global::Com.Applozic.Mobicommons.Emoticon.IEmojiconHandler p2)
        {
            if (id_getSmiledText_Landroid_content_Context_Ljava_lang_CharSequence_Lcom_applozic_mobicommons_emoticon_EmojiconHandler_ == IntPtr.Zero)
            {
                id_getSmiledText_Landroid_content_Context_Ljava_lang_CharSequence_Lcom_applozic_mobicommons_emoticon_EmojiconHandler_ = JNIEnv.GetStaticMethodID(class_ref, "getSmiledText", "(Landroid/content/Context;Ljava/lang/CharSequence;Lcom/applozic/mobicommons/emoticon/EmojiconHandler;)Landroid/text/Spannable;");
            }
            IntPtr native_p1 = CharSequence.ToLocalJniHandle(p1);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                global::Android.Text.ISpannable __ret = global::Java.Lang.Object.GetObject <global::Android.Text.ISpannable> (JNIEnv.CallStaticObjectMethod(class_ref, id_getSmiledText_Landroid_content_Context_Ljava_lang_CharSequence_Lcom_applozic_mobicommons_emoticon_EmojiconHandler_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }