Ejemplo n.º 1
0
        static void n_SetRightDriveMode_Lorbotix_macro_RawMotor_DriveMode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            RawMotor __this = Java.Lang.Object.GetObject <RawMotor> (native__this, JniHandleOwnership.DoNotTransfer);

            global::Orbotix.Macro.RawMotor.DriveMode p0 = Java.Lang.Object.GetObject <global::Orbotix.Macro.RawMotor.DriveMode> (native_p0, JniHandleOwnership.DoNotTransfer);
            __this.RightDriveMode = p0;
        }
Ejemplo n.º 2
0
            public static global::Orbotix.Macro.RawMotor.DriveMode ValueOf(string p0)
            {
                if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lorbotix/macro/RawMotor$DriveMode;");
                }
                IntPtr native_p0 = JNIEnv.NewString(p0);

                global::Orbotix.Macro.RawMotor.DriveMode __ret = Java.Lang.Object.GetObject <global::Orbotix.Macro.RawMotor.DriveMode> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, new JValue(native_p0)), JniHandleOwnership.TransferLocalRef);
                JNIEnv.DeleteLocalRef(native_p0);
                return(__ret);
            }
Ejemplo n.º 3
0
        public RawMotor(global::Orbotix.Macro.RawMotor.DriveMode p0, int p1, global::Orbotix.Macro.RawMotor.DriveMode p2, int p3, int p4) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            if (GetType() != typeof(RawMotor))
            {
                SetHandle(global::Android.Runtime.JNIEnv.CreateInstance(GetType(), "(Lorbotix/macro/RawMotor$DriveMode;ILorbotix/macro/RawMotor$DriveMode;II)V", new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4)), JniHandleOwnership.TransferLocalRef);
                return;
            }

            if (id_ctor_Lorbotix_macro_RawMotor_DriveMode_ILorbotix_macro_RawMotor_DriveMode_II == IntPtr.Zero)
            {
                id_ctor_Lorbotix_macro_RawMotor_DriveMode_ILorbotix_macro_RawMotor_DriveMode_II = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorbotix/macro/RawMotor$DriveMode;ILorbotix/macro/RawMotor$DriveMode;II)V");
            }
            SetHandle(JNIEnv.NewObject(class_ref, id_ctor_Lorbotix_macro_RawMotor_DriveMode_ILorbotix_macro_RawMotor_DriveMode_II, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4)), JniHandleOwnership.TransferLocalRef);
        }