Beispiel #1
0
        static void n_SetControlHandler_Lorbotix_robot_base_DeviceConnection_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            DirectControlStrategy __this = Java.Lang.Object.GetObject <DirectControlStrategy> (native__this, JniHandleOwnership.DoNotTransfer);

            global::Orbotix.Robot.Base.DeviceConnection p0 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.DeviceConnection> (native_p0, JniHandleOwnership.DoNotTransfer);
            __this.SetControlHandler(p0);
        }
Beispiel #2
0
        public virtual void SetControlHandler(global::Orbotix.Robot.Base.DeviceConnection p0)
        {
            if (id_setControlHandler_Lorbotix_robot_base_DeviceConnection_ == IntPtr.Zero)
            {
                id_setControlHandler_Lorbotix_robot_base_DeviceConnection_ = JNIEnv.GetMethodID(class_ref, "setControlHandler", "(Lorbotix/robot/base/DeviceConnection;)V");
            }

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_setControlHandler_Lorbotix_robot_base_DeviceConnection_, new JValue(p0));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_setControlHandler_Lorbotix_robot_base_DeviceConnection_, new JValue(p0));
            }
        }
Beispiel #3
0
        public DirectControlStrategy(global::Orbotix.Robot.Base.DeviceConnection p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            if (GetType() != typeof(DirectControlStrategy))
            {
                SetHandle(global::Android.Runtime.JNIEnv.CreateInstance(GetType(), "(Lorbotix/robot/base/DeviceConnection;)V", new JValue(p0)), JniHandleOwnership.TransferLocalRef);
                return;
            }

            if (id_ctor_Lorbotix_robot_base_DeviceConnection_ == IntPtr.Zero)
            {
                id_ctor_Lorbotix_robot_base_DeviceConnection_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorbotix/robot/base/DeviceConnection;)V");
            }
            SetHandle(JNIEnv.NewObject(class_ref, id_ctor_Lorbotix_robot_base_DeviceConnection_, new JValue(p0)), JniHandleOwnership.TransferLocalRef);
        }
Beispiel #4
0
            public DeviceSession(global::Orbotix.Robot.Base.DeviceConnection __self, global::Android.Bluetooth.BluetoothSocket p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (Handle != IntPtr.Zero)
                {
                    return;
                }

                if (GetType() != typeof(DeviceSession))
                {
                    SetHandle(global::Android.Runtime.JNIEnv.CreateInstance(GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Landroid/bluetooth/BluetoothSocket;)V", new JValue(__self), new JValue(p1)), JniHandleOwnership.TransferLocalRef);
                    return;
                }

                if (id_ctor_Lorbotix_robot_base_DeviceConnection_Landroid_bluetooth_BluetoothSocket_ == IntPtr.Zero)
                {
                    id_ctor_Lorbotix_robot_base_DeviceConnection_Landroid_bluetooth_BluetoothSocket_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorbotix/robot/base/DeviceConnection;Landroid/bluetooth/BluetoothSocket;)V");
                }
                SetHandle(JNIEnv.NewObject(class_ref, id_ctor_Lorbotix_robot_base_DeviceConnection_Landroid_bluetooth_BluetoothSocket_, new JValue(__self), new JValue(p1)), JniHandleOwnership.TransferLocalRef);
            }