예제 #1
0
        public virtual unsafe void SetPublishCallback(global::Org.Eclipse.Paho.Client.Mqttv3.Internal.IDisconnectedBufferCallback @callback)
        {
            const string __id = "setPublishCallback.(Lorg/eclipse/paho/client/mqttv3/internal/IDisconnectedBufferCallback;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
예제 #2
0
        public virtual unsafe void SetPublishCallback(global::Org.Eclipse.Paho.Client.Mqttv3.Internal.IDisconnectedBufferCallback @callback)
        {
            if (id_setPublishCallback_Lorg_eclipse_paho_client_mqttv3_internal_IDisconnectedBufferCallback_ == IntPtr.Zero)
            {
                id_setPublishCallback_Lorg_eclipse_paho_client_mqttv3_internal_IDisconnectedBufferCallback_ = JNIEnv.GetMethodID(class_ref, "setPublishCallback", "(Lorg/eclipse/paho/client/mqttv3/internal/IDisconnectedBufferCallback;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(@callback);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setPublishCallback_Lorg_eclipse_paho_client_mqttv3_internal_IDisconnectedBufferCallback_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setPublishCallback", "(Lorg/eclipse/paho/client/mqttv3/internal/IDisconnectedBufferCallback;)V"), __args);
                }
            } finally {
            }
        }
 static void n_PublishBufferedMessage_Lorg_eclipse_paho_client_mqttv3_BufferedMessage_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Eclipse.Paho.Client.Mqttv3.Internal.IDisconnectedBufferCallback __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Internal.IDisconnectedBufferCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Eclipse.Paho.Client.Mqttv3.BufferedMessage p0 = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.BufferedMessage> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.PublishBufferedMessage(p0);
 }
예제 #4
0
 static void n_SetPublishCallback_Lorg_eclipse_paho_client_mqttv3_internal_IDisconnectedBufferCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native__callback)
 {
     global::Org.Eclipse.Paho.Client.Mqttv3.Internal.DisconnectedMessageBuffer   __this    = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Internal.DisconnectedMessageBuffer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Eclipse.Paho.Client.Mqttv3.Internal.IDisconnectedBufferCallback @callback = (global::Org.Eclipse.Paho.Client.Mqttv3.Internal.IDisconnectedBufferCallback)global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Internal.IDisconnectedBufferCallback> (native__callback, JniHandleOwnership.DoNotTransfer);
     __this.SetPublishCallback(@callback);
 }