#pragma warning restore 0649

            public void OnNativeFail(global::Com.Mopub.Nativeads.NativeErrorCode p0)
            {
                var __h = OnNativeFailHandler;

                if (__h != null)
                {
                    __h(sender, new NativeFailEventArgs(p0));
                }
            }
Exemplo n.º 2
0
#pragma warning restore 0649

            public void OnImagesFailedToCache(global::Com.Mopub.Nativeads.NativeErrorCode p0)
            {
                var __h = OnImagesFailedToCacheHandler;

                if (__h != null)
                {
                    __h(sender, new ImagesFailedToCacheEventArgs(p0));
                }
            }
Exemplo n.º 3
0
            public unsafe void OnImagesFailedToCache(global::Com.Mopub.Nativeads.NativeErrorCode p0)
            {
                if (id_onImagesFailedToCache_Lcom_mopub_nativeads_NativeErrorCode_ == IntPtr.Zero)
                {
                    id_onImagesFailedToCache_Lcom_mopub_nativeads_NativeErrorCode_ = JNIEnv.GetMethodID(class_ref, "onImagesFailedToCache", "(Lcom/mopub/nativeads/NativeErrorCode;)V");
                }
                JValue *__args = stackalloc JValue [1];

                __args [0] = new JValue(p0);
                JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onImagesFailedToCache_Lcom_mopub_nativeads_NativeErrorCode_, __args);
            }
        public static unsafe global::Com.Mopub.Nativeads.NativeErrorCode ValueOf(string p0)
        {
            if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lcom/mopub/nativeads/NativeErrorCode;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Com.Mopub.Nativeads.NativeErrorCode __ret = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeErrorCode> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
Exemplo n.º 5
0
 public ImagesFailedToCacheEventArgs(global::Com.Mopub.Nativeads.NativeErrorCode p0)
 {
     this.p0 = p0;
 }
Exemplo n.º 6
0
 static void n_OnImagesFailedToCache_Lcom_mopub_nativeads_NativeErrorCode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Mopub.Nativeads.NativeImageHelper.IImageListener __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeImageHelper.IImageListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Mopub.Nativeads.NativeErrorCode p0 = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeErrorCode> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnImagesFailedToCache(p0);
 }
 static void n_OnNativeFail_Lcom_mopub_nativeads_NativeErrorCode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Mopub.Nativeads.MoPubNative.IMoPubNativeNetworkListener __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.MoPubNative.IMoPubNativeNetworkListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Mopub.Nativeads.NativeErrorCode p0 = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeErrorCode> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnNativeFail(p0);
 }
 public NativeFailEventArgs(global::Com.Mopub.Nativeads.NativeErrorCode p0)
 {
     this.p0 = p0;
 }
 static void n_OnNativeAdFailed_Lcom_mopub_nativeads_NativeErrorCode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Mopub.Nativeads.CustomEventNative.ICustomEventNativeListener __this = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.CustomEventNative.ICustomEventNativeListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Mopub.Nativeads.NativeErrorCode p0 = global::Java.Lang.Object.GetObject <global::Com.Mopub.Nativeads.NativeErrorCode> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnNativeAdFailed(p0);
 }