public void NotifyOnCancel(global::Com.Google.Protobuf.IRpcCallback p0) { if (id_notifyOnCancel_Lcom_google_protobuf_RpcCallback_ == IntPtr.Zero) { id_notifyOnCancel_Lcom_google_protobuf_RpcCallback_ = JNIEnv.GetMethodID(class_ref, "notifyOnCancel", "(Lcom/google/protobuf/RpcCallback;)V"); } JNIEnv.CallVoidMethod(Handle, id_notifyOnCancel_Lcom_google_protobuf_RpcCallback_, new JValue(p0)); }
public static global::Com.Google.Protobuf.IRpcCallback NewOneTimeCallback(global::Com.Google.Protobuf.IRpcCallback p0) { if (id_newOneTimeCallback_Lcom_google_protobuf_RpcCallback_ == IntPtr.Zero) { id_newOneTimeCallback_Lcom_google_protobuf_RpcCallback_ = JNIEnv.GetStaticMethodID(class_ref, "newOneTimeCallback", "(Lcom/google/protobuf/RpcCallback;)Lcom/google/protobuf/RpcCallback;"); } global::Com.Google.Protobuf.IRpcCallback __ret = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.IRpcCallback> (JNIEnv.CallStaticObjectMethod(class_ref, id_newOneTimeCallback_Lcom_google_protobuf_RpcCallback_, new JValue(p0)), JniHandleOwnership.TransferLocalRef); return(__ret); }
static void n_NotifyOnCancel_Lcom_google_protobuf_RpcCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Google.Protobuf.IRpcController __this = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.IRpcController> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Google.Protobuf.IRpcCallback p0 = (global::Com.Google.Protobuf.IRpcCallback)global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.IRpcCallback> (native_p0, JniHandleOwnership.DoNotTransfer); __this.NotifyOnCancel(p0); }
static void n_Run_Ljava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Google.Protobuf.IRpcCallback __this = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.IRpcCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Lang.Object p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p0, JniHandleOwnership.DoNotTransfer); __this.Run(p0); }