static void n_Register_Landroid_content_Context_Lorg_jboss_aerogear_android_core_Callback_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Org.Jboss.Aerogear.Android.Unifiedpush.IPushRegistrar __this = global::Java.Lang.Object.GetObject <global::Org.Jboss.Aerogear.Android.Unifiedpush.IPushRegistrar> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Content.Context p0 = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer); global::Org.Jboss.Aerogear.Android.Core.ICallback p1 = (global::Org.Jboss.Aerogear.Android.Core.ICallback)global::Java.Lang.Object.GetObject <global::Org.Jboss.Aerogear.Android.Core.ICallback> (native_p1, JniHandleOwnership.DoNotTransfer); __this.Register(p0, p1); }
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); }
public static unsafe global::Org.Jboss.Aerogear.Android.Unifiedpush.IPushRegistrar GetRegistrar(string name) { if (id_getRegistrar_Ljava_lang_String_ == IntPtr.Zero) { id_getRegistrar_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "getRegistrar", "(Ljava/lang/String;)Lorg/jboss/aerogear/android/unifiedpush/PushRegistrar;"); } IntPtr native_name = JNIEnv.NewString(name); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_name); global::Org.Jboss.Aerogear.Android.Unifiedpush.IPushRegistrar __ret = global::Java.Lang.Object.GetObject <global::Org.Jboss.Aerogear.Android.Unifiedpush.IPushRegistrar> (JNIEnv.CallStaticObjectMethod(class_ref, id_getRegistrar_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_name); } }
public PushRegistrarCreatedEventArgs(global::Org.Jboss.Aerogear.Android.Unifiedpush.PushConfiguration p0, global::Org.Jboss.Aerogear.Android.Unifiedpush.IPushRegistrar p1) { this.p0 = p0; this.p1 = p1; }
public unsafe void OnPushRegistrarCreated(global::Org.Jboss.Aerogear.Android.Unifiedpush.PushConfiguration p0, global::Org.Jboss.Aerogear.Android.Unifiedpush.IPushRegistrar p1) { if (id_onPushRegistrarCreated_Lorg_jboss_aerogear_android_unifiedpush_PushConfiguration_Lorg_jboss_aerogear_android_unifiedpush_PushRegistrar_ == IntPtr.Zero) { id_onPushRegistrarCreated_Lorg_jboss_aerogear_android_unifiedpush_PushConfiguration_Lorg_jboss_aerogear_android_unifiedpush_PushRegistrar_ = JNIEnv.GetMethodID(class_ref, "onPushRegistrarCreated", "(Lorg/jboss/aerogear/android/unifiedpush/PushConfiguration;Lorg/jboss/aerogear/android/unifiedpush/PushRegistrar;)V"); } JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onPushRegistrarCreated_Lorg_jboss_aerogear_android_unifiedpush_PushConfiguration_Lorg_jboss_aerogear_android_unifiedpush_PushRegistrar_, __args); }
#pragma warning restore 0649 public void OnPushRegistrarCreated(global::Org.Jboss.Aerogear.Android.Unifiedpush.PushConfiguration p0, global::Org.Jboss.Aerogear.Android.Unifiedpush.IPushRegistrar p1) { var __h = Handler; if (__h != null) { __h(sender, new PushRegistrarCreatedEventArgs(p0, p1)); } }