Пример #1
0
            public unsafe void OnReceiveRecommendations(global::System.Collections.Generic.IList <global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.RecommendationProduct> p0, global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.QueryRecommendationResult p1)
            {
                if (id_onReceiveRecommendations_Ljava_util_List_Lcom_webtrekk_webtrekksdk_WebtrekkRecommendations_QueryRecommendationResult_ == IntPtr.Zero)
                {
                    id_onReceiveRecommendations_Ljava_util_List_Lcom_webtrekk_webtrekksdk_WebtrekkRecommendations_QueryRecommendationResult_ = JNIEnv.GetMethodID(class_ref, "onReceiveRecommendations", "(Ljava/util/List;Lcom/webtrekk/webtrekksdk/WebtrekkRecommendations$QueryRecommendationResult;)V");
                }
                IntPtr native_p0 = global::Android.Runtime.JavaList <global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.RecommendationProduct> .ToLocalJniHandle(p0);

                JValue *__args = stackalloc JValue [2];

                __args [0] = new JValue(native_p0);
                __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onReceiveRecommendations_Ljava_util_List_Lcom_webtrekk_webtrekksdk_WebtrekkRecommendations_QueryRecommendationResult_, __args);
                JNIEnv.DeleteLocalRef(native_p0);
            }
Пример #2
0
            static void n_OnReceiveRecommendations_Ljava_util_List_Lcom_webtrekk_webtrekksdk_WebtrekkRecommendations_QueryRecommendationResult_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
            {
                global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.IRecommendationCallback __this = global::Java.Lang.Object.GetObject <global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.IRecommendationCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                var p0 = global::Android.Runtime.JavaList <global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.RecommendationProduct> .FromJniHandle(native_p0, JniHandleOwnership.DoNotTransfer);

                global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.QueryRecommendationResult p1 = global::Java.Lang.Object.GetObject <global::Com.Webtrekk.Webtrekksdk.WebtrekkRecommendations.QueryRecommendationResult> (native_p1, JniHandleOwnership.DoNotTransfer);
                __this.OnReceiveRecommendations(p0, p1);
            }