static IntPtr n_ConnectWithResult_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Eclipse.Paho.Client.Mqttv3.IMqttClient __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.IMqttClient> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Eclipse.Paho.Client.Mqttv3.MqttConnectOptions p0 = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.MqttConnectOptions> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.ConnectWithResult(p0)); return(__ret); }
public unsafe void Connect(global::Org.Eclipse.Paho.Client.Mqttv3.MqttConnectOptions p0) { if (id_connect_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_ == IntPtr.Zero) { id_connect_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_ = JNIEnv.GetMethodID(class_ref, "connect", "(Lorg/eclipse/paho/client/mqttv3/MqttConnectOptions;)V"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_connect_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_, __args); }
public unsafe global::Org.Eclipse.Paho.Client.Mqttv3.IMqttToken ConnectWithResult(global::Org.Eclipse.Paho.Client.Mqttv3.MqttConnectOptions p0) { if (id_connectWithResult_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_ == IntPtr.Zero) { id_connectWithResult_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_ = JNIEnv.GetMethodID(class_ref, "connectWithResult", "(Lorg/eclipse/paho/client/mqttv3/MqttConnectOptions;)Lorg/eclipse/paho/client/mqttv3/IMqttToken;"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::Org.Eclipse.Paho.Client.Mqttv3.IMqttToken __ret = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.IMqttToken> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_connectWithResult_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); }
static void n_Connect_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Eclipse.Paho.Client.Mqttv3.IMqttClient __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.IMqttClient> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Eclipse.Paho.Client.Mqttv3.MqttConnectOptions p0 = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.MqttConnectOptions> (native_p0, JniHandleOwnership.DoNotTransfer); __this.Connect(p0); }
public unsafe ConnectActionListener(global::Org.Eclipse.Paho.Client.Mqttv3.MqttAsyncClient client, global::Org.Eclipse.Paho.Client.Mqttv3.IMqttClientPersistence persistence, global::Org.Eclipse.Paho.Client.Mqttv3.Internal.ClientComms comms, global::Org.Eclipse.Paho.Client.Mqttv3.MqttConnectOptions options, global::Org.Eclipse.Paho.Client.Mqttv3.MqttToken userToken, global::Java.Lang.Object userContext, global::Org.Eclipse.Paho.Client.Mqttv3.IMqttActionListener userCallback, bool reconnect) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Lorg/eclipse/paho/client/mqttv3/MqttAsyncClient;Lorg/eclipse/paho/client/mqttv3/MqttClientPersistence;Lorg/eclipse/paho/client/mqttv3/internal/ClientComms;Lorg/eclipse/paho/client/mqttv3/MqttConnectOptions;Lorg/eclipse/paho/client/mqttv3/MqttToken;Ljava/lang/Object;Lorg/eclipse/paho/client/mqttv3/IMqttActionListener;Z)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [8]; __args [0] = new JniArgumentValue((client == null) ? IntPtr.Zero : ((global::Java.Lang.Object)client).Handle); __args [1] = new JniArgumentValue((persistence == null) ? IntPtr.Zero : ((global::Java.Lang.Object)persistence).Handle); __args [2] = new JniArgumentValue((comms == null) ? IntPtr.Zero : ((global::Java.Lang.Object)comms).Handle); __args [3] = new JniArgumentValue((options == null) ? IntPtr.Zero : ((global::Java.Lang.Object)options).Handle); __args [4] = new JniArgumentValue((userToken == null) ? IntPtr.Zero : ((global::Java.Lang.Object)userToken).Handle); __args [5] = new JniArgumentValue((userContext == null) ? IntPtr.Zero : ((global::Java.Lang.Object)userContext).Handle); __args [6] = new JniArgumentValue((userCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)userCallback).Handle); __args [7] = new JniArgumentValue(reconnect); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
public unsafe ConnectActionListener(global::Org.Eclipse.Paho.Client.Mqttv3.MqttAsyncClient client, global::Org.Eclipse.Paho.Client.Mqttv3.IMqttClientPersistence persistence, global::Org.Eclipse.Paho.Client.Mqttv3.Internal.ClientComms comms, global::Org.Eclipse.Paho.Client.Mqttv3.MqttConnectOptions options, global::Org.Eclipse.Paho.Client.Mqttv3.MqttToken userToken, global::Java.Lang.Object userContext, global::Org.Eclipse.Paho.Client.Mqttv3.IMqttActionListener userCallback, bool reconnect) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [8]; __args [0] = new JValue(client); __args [1] = new JValue(persistence); __args [2] = new JValue(comms); __args [3] = new JValue(options); __args [4] = new JValue(userToken); __args [5] = new JValue(userContext); __args [6] = new JValue(userCallback); __args [7] = new JValue(reconnect); if (((object)this).GetType() != typeof(ConnectActionListener)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lorg/eclipse/paho/client/mqttv3/MqttAsyncClient;Lorg/eclipse/paho/client/mqttv3/MqttClientPersistence;Lorg/eclipse/paho/client/mqttv3/internal/ClientComms;Lorg/eclipse/paho/client/mqttv3/MqttConnectOptions;Lorg/eclipse/paho/client/mqttv3/MqttToken;Ljava/lang/Object;Lorg/eclipse/paho/client/mqttv3/IMqttActionListener;Z)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/eclipse/paho/client/mqttv3/MqttAsyncClient;Lorg/eclipse/paho/client/mqttv3/MqttClientPersistence;Lorg/eclipse/paho/client/mqttv3/internal/ClientComms;Lorg/eclipse/paho/client/mqttv3/MqttConnectOptions;Lorg/eclipse/paho/client/mqttv3/MqttToken;Ljava/lang/Object;Lorg/eclipse/paho/client/mqttv3/IMqttActionListener;Z)V", __args); return; } if (id_ctor_Lorg_eclipse_paho_client_mqttv3_MqttAsyncClient_Lorg_eclipse_paho_client_mqttv3_MqttClientPersistence_Lorg_eclipse_paho_client_mqttv3_internal_ClientComms_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_Lorg_eclipse_paho_client_mqttv3_MqttToken_Ljava_lang_Object_Lorg_eclipse_paho_client_mqttv3_IMqttActionListener_Z == IntPtr.Zero) { id_ctor_Lorg_eclipse_paho_client_mqttv3_MqttAsyncClient_Lorg_eclipse_paho_client_mqttv3_MqttClientPersistence_Lorg_eclipse_paho_client_mqttv3_internal_ClientComms_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_Lorg_eclipse_paho_client_mqttv3_MqttToken_Ljava_lang_Object_Lorg_eclipse_paho_client_mqttv3_IMqttActionListener_Z = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/eclipse/paho/client/mqttv3/MqttAsyncClient;Lorg/eclipse/paho/client/mqttv3/MqttClientPersistence;Lorg/eclipse/paho/client/mqttv3/internal/ClientComms;Lorg/eclipse/paho/client/mqttv3/MqttConnectOptions;Lorg/eclipse/paho/client/mqttv3/MqttToken;Ljava/lang/Object;Lorg/eclipse/paho/client/mqttv3/IMqttActionListener;Z)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_eclipse_paho_client_mqttv3_MqttAsyncClient_Lorg_eclipse_paho_client_mqttv3_MqttClientPersistence_Lorg_eclipse_paho_client_mqttv3_internal_ClientComms_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_Lorg_eclipse_paho_client_mqttv3_MqttToken_Ljava_lang_Object_Lorg_eclipse_paho_client_mqttv3_IMqttActionListener_Z, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_eclipse_paho_client_mqttv3_MqttAsyncClient_Lorg_eclipse_paho_client_mqttv3_MqttClientPersistence_Lorg_eclipse_paho_client_mqttv3_internal_ClientComms_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_Lorg_eclipse_paho_client_mqttv3_MqttToken_Ljava_lang_Object_Lorg_eclipse_paho_client_mqttv3_IMqttActionListener_Z, __args); } finally { } }
public unsafe ConnectActionListener(global::Org.Eclipse.Paho.Client.Mqttv3.MqttAsyncClient p0, global::Org.Eclipse.Paho.Client.Mqttv3.IMqttClientPersistence p1, global::Org.Eclipse.Paho.Client.Mqttv3.Internal.ClientComms p2, global::Org.Eclipse.Paho.Client.Mqttv3.MqttConnectOptions p3, global::Org.Eclipse.Paho.Client.Mqttv3.MqttToken p4, global::Java.Lang.Object p5, global::Org.Eclipse.Paho.Client.Mqttv3.IMqttActionListener p6) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [7]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); __args [3] = new JValue(p3); __args [4] = new JValue(p4); __args [5] = new JValue(p5); __args [6] = new JValue(p6); if (((object)this).GetType() != typeof(ConnectActionListener)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lorg/eclipse/paho/client/mqttv3/MqttAsyncClient;Lorg/eclipse/paho/client/mqttv3/MqttClientPersistence;Lorg/eclipse/paho/client/mqttv3/internal/ClientComms;Lorg/eclipse/paho/client/mqttv3/MqttConnectOptions;Lorg/eclipse/paho/client/mqttv3/MqttToken;Ljava/lang/Object;Lorg/eclipse/paho/client/mqttv3/IMqttActionListener;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/eclipse/paho/client/mqttv3/MqttAsyncClient;Lorg/eclipse/paho/client/mqttv3/MqttClientPersistence;Lorg/eclipse/paho/client/mqttv3/internal/ClientComms;Lorg/eclipse/paho/client/mqttv3/MqttConnectOptions;Lorg/eclipse/paho/client/mqttv3/MqttToken;Ljava/lang/Object;Lorg/eclipse/paho/client/mqttv3/IMqttActionListener;)V", __args); return; } if (id_ctor_Lorg_eclipse_paho_client_mqttv3_MqttAsyncClient_Lorg_eclipse_paho_client_mqttv3_MqttClientPersistence_Lorg_eclipse_paho_client_mqttv3_internal_ClientComms_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_Lorg_eclipse_paho_client_mqttv3_MqttToken_Ljava_lang_Object_Lorg_eclipse_paho_client_mqttv3_IMqttActionListener_ == IntPtr.Zero) { id_ctor_Lorg_eclipse_paho_client_mqttv3_MqttAsyncClient_Lorg_eclipse_paho_client_mqttv3_MqttClientPersistence_Lorg_eclipse_paho_client_mqttv3_internal_ClientComms_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_Lorg_eclipse_paho_client_mqttv3_MqttToken_Ljava_lang_Object_Lorg_eclipse_paho_client_mqttv3_IMqttActionListener_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/eclipse/paho/client/mqttv3/MqttAsyncClient;Lorg/eclipse/paho/client/mqttv3/MqttClientPersistence;Lorg/eclipse/paho/client/mqttv3/internal/ClientComms;Lorg/eclipse/paho/client/mqttv3/MqttConnectOptions;Lorg/eclipse/paho/client/mqttv3/MqttToken;Ljava/lang/Object;Lorg/eclipse/paho/client/mqttv3/IMqttActionListener;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_eclipse_paho_client_mqttv3_MqttAsyncClient_Lorg_eclipse_paho_client_mqttv3_MqttClientPersistence_Lorg_eclipse_paho_client_mqttv3_internal_ClientComms_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_Lorg_eclipse_paho_client_mqttv3_MqttToken_Ljava_lang_Object_Lorg_eclipse_paho_client_mqttv3_IMqttActionListener_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_eclipse_paho_client_mqttv3_MqttAsyncClient_Lorg_eclipse_paho_client_mqttv3_MqttClientPersistence_Lorg_eclipse_paho_client_mqttv3_internal_ClientComms_Lorg_eclipse_paho_client_mqttv3_MqttConnectOptions_Lorg_eclipse_paho_client_mqttv3_MqttToken_Ljava_lang_Object_Lorg_eclipse_paho_client_mqttv3_IMqttActionListener_, __args); } finally { } }