public virtual unsafe void RegisterLocalNotificationManagerCallback(int id, global::Com.Bluecats.Sdk.IBCLocalNotificationManagerCallback @callback) { if (id_registerLocalNotificationManagerCallback_ILcom_bluecats_sdk_BCLocalNotificationManagerCallback_ == IntPtr.Zero) { id_registerLocalNotificationManagerCallback_ILcom_bluecats_sdk_BCLocalNotificationManagerCallback_ = JNIEnv.GetMethodID(class_ref, "registerLocalNotificationManagerCallback", "(ILcom/bluecats/sdk/BCLocalNotificationManagerCallback;)V"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(id); __args [1] = new JValue(@callback); if (((object)this).GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_registerLocalNotificationManagerCallback_ILcom_bluecats_sdk_BCLocalNotificationManagerCallback_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "registerLocalNotificationManagerCallback", "(ILcom/bluecats/sdk/BCLocalNotificationManagerCallback;)V"), __args); } } finally { } }
static void n_OnDidNotify_I(IntPtr jnienv, IntPtr native__this, int p0) { global::Com.Bluecats.Sdk.IBCLocalNotificationManagerCallback __this = global::Java.Lang.Object.GetObject <global::Com.Bluecats.Sdk.IBCLocalNotificationManagerCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.OnDidNotify(p0); }
static void n_RegisterLocalNotificationManagerCallback_ILcom_bluecats_sdk_BCLocalNotificationManagerCallback_(IntPtr jnienv, IntPtr native__this, int id, IntPtr native__callback) { global::Com.Bluecats.Sdk.BCLocalNotificationManager __this = global::Java.Lang.Object.GetObject <global::Com.Bluecats.Sdk.BCLocalNotificationManager> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Bluecats.Sdk.IBCLocalNotificationManagerCallback @callback = (global::Com.Bluecats.Sdk.IBCLocalNotificationManagerCallback)global::Java.Lang.Object.GetObject <global::Com.Bluecats.Sdk.IBCLocalNotificationManagerCallback> (native__callback, JniHandleOwnership.DoNotTransfer); __this.RegisterLocalNotificationManagerCallback(id, @callback); }