static IntPtr n_AddOnPushRegistrarCreatedListener_Lorg_jboss_aerogear_android_unifiedpush_OnPushRegistrarCreatedListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_listener) { global::Org.Jboss.Aerogear.Android.Unifiedpush.PushConfiguration __this = global::Java.Lang.Object.GetObject <global::Org.Jboss.Aerogear.Android.Unifiedpush.PushConfiguration> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jboss.Aerogear.Android.Unifiedpush.IOnPushRegistrarCreatedListener listener = (global::Org.Jboss.Aerogear.Android.Unifiedpush.IOnPushRegistrarCreatedListener)global::Java.Lang.Object.GetObject <global::Org.Jboss.Aerogear.Android.Unifiedpush.IOnPushRegistrarCreatedListener> (native_listener, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.AddOnPushRegistrarCreatedListener(listener)); return(__ret); }
public virtual unsafe global::Java.Lang.Object AddOnPushRegistrarCreatedListener(global::Org.Jboss.Aerogear.Android.Unifiedpush.IOnPushRegistrarCreatedListener listener) { if (id_addOnPushRegistrarCreatedListener_Lorg_jboss_aerogear_android_unifiedpush_OnPushRegistrarCreatedListener_ == IntPtr.Zero) { id_addOnPushRegistrarCreatedListener_Lorg_jboss_aerogear_android_unifiedpush_OnPushRegistrarCreatedListener_ = JNIEnv.GetMethodID(class_ref, "addOnPushRegistrarCreatedListener", "(Lorg/jboss/aerogear/android/unifiedpush/OnPushRegistrarCreatedListener;)Lorg/jboss/aerogear/android/unifiedpush/PushConfiguration;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(listener); global::Java.Lang.Object __ret; if (((object)this).GetType() == ThresholdType) { __ret = (Java.Lang.Object)global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_addOnPushRegistrarCreatedListener_Lorg_jboss_aerogear_android_unifiedpush_OnPushRegistrarCreatedListener_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = (Java.Lang.Object)global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addOnPushRegistrarCreatedListener", "(Lorg/jboss/aerogear/android/unifiedpush/OnPushRegistrarCreatedListener;)Lorg/jboss/aerogear/android/unifiedpush/PushConfiguration;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }
static void n_OnPushRegistrarCreated_Lorg_jboss_aerogear_android_unifiedpush_PushConfiguration_Lorg_jboss_aerogear_android_unifiedpush_PushRegistrar_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Org.Jboss.Aerogear.Android.Unifiedpush.IOnPushRegistrarCreatedListener __this = global::Java.Lang.Object.GetObject <global::Org.Jboss.Aerogear.Android.Unifiedpush.IOnPushRegistrarCreatedListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jboss.Aerogear.Android.Unifiedpush.PushConfiguration p0 = global::Java.Lang.Object.GetObject <global::Org.Jboss.Aerogear.Android.Unifiedpush.PushConfiguration> (native_p0, JniHandleOwnership.DoNotTransfer); global::Org.Jboss.Aerogear.Android.Unifiedpush.IPushRegistrar p1 = (global::Org.Jboss.Aerogear.Android.Unifiedpush.IPushRegistrar)global::Java.Lang.Object.GetObject <global::Org.Jboss.Aerogear.Android.Unifiedpush.IPushRegistrar> (native_p1, JniHandleOwnership.DoNotTransfer); __this.OnPushRegistrarCreated(p0, p1); }