public SleepAsyncNotification(global::Orbotix.Robot.Base.Robot p0, byte[] p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } IntPtr native_p1 = JNIEnv.NewArray(p1);; if (GetType() != typeof(SleepAsyncNotification)) { SetHandle(global::Android.Runtime.JNIEnv.CreateInstance(GetType(), "(Lorbotix/robot/base/Robot;[B)V", new JValue(p0), new JValue(native_p1)), JniHandleOwnership.TransferLocalRef); if (p1 != null) { JNIEnv.CopyArray(native_p1, p1); JNIEnv.DeleteLocalRef(native_p1); } return; } if (id_ctor_Lorbotix_robot_base_Robot_arrayB == IntPtr.Zero) { id_ctor_Lorbotix_robot_base_Robot_arrayB = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorbotix/robot/base/Robot;[B)V"); } SetHandle(JNIEnv.NewObject(class_ref, id_ctor_Lorbotix_robot_base_Robot_arrayB, new JValue(p0), new JValue(native_p1)), JniHandleOwnership.TransferLocalRef); if (p1 != null) { JNIEnv.CopyArray(native_p1, p1); JNIEnv.DeleteLocalRef(native_p1); } }
static void n_SetRobot_Lorbotix_robot_base_Robot_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { MacroObject __this = Java.Lang.Object.GetObject <MacroObject> (native__this, JniHandleOwnership.DoNotTransfer); global::Orbotix.Robot.Base.Robot p0 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.Robot> (native_p0, JniHandleOwnership.DoNotTransfer); __this.SetRobot(p0); }
public static void SendCommand(global::Orbotix.Robot.Base.Robot p0) { if (id_sendCommand_Lorbotix_robot_base_Robot_ == IntPtr.Zero) { id_sendCommand_Lorbotix_robot_base_Robot_ = JNIEnv.GetStaticMethodID(class_ref, "sendCommand", "(Lorbotix/robot/base/Robot;)V"); } JNIEnv.CallStaticVoidMethod(class_ref, id_sendCommand_Lorbotix_robot_base_Robot_, new JValue(p0)); }
public static void AchievementCollisionEnabled(bool p0, global::Orbotix.Robot.Base.Robot p1) { if (id_achievementCollisionEnabled_ZLorbotix_robot_base_Robot_ == IntPtr.Zero) { id_achievementCollisionEnabled_ZLorbotix_robot_base_Robot_ = JNIEnv.GetStaticMethodID(class_ref, "achievementCollisionEnabled", "(ZLorbotix/robot/base/Robot;)V"); } JNIEnv.CallStaticVoidMethod(class_ref, id_achievementCollisionEnabled_ZLorbotix_robot_base_Robot_, new JValue(p0), new JValue(p1)); }
public static void SendCommand(global::Orbotix.Robot.Base.Robot p0, int p1, int p2, int p3, bool p4) { if (id_sendCommand_Lorbotix_robot_base_Robot_IIIZ == IntPtr.Zero) { id_sendCommand_Lorbotix_robot_base_Robot_IIIZ = JNIEnv.GetStaticMethodID(class_ref, "sendCommand", "(Lorbotix/robot/base/Robot;IIIZ)V"); } JNIEnv.CallStaticVoidMethod(class_ref, id_sendCommand_Lorbotix_robot_base_Robot_IIIZ, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4)); }
static void n_RemoveResponseListener_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceMessenger_DeviceResponseListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { DeviceMessenger __this = Java.Lang.Object.GetObject <DeviceMessenger> (native__this, JniHandleOwnership.DoNotTransfer); global::Orbotix.Robot.Base.Robot p0 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.Robot> (native_p0, JniHandleOwnership.DoNotTransfer); global::Orbotix.Robot.Base.DeviceMessenger.IDeviceResponseListener p1 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.DeviceMessenger.IDeviceResponseListener> (native_p1, JniHandleOwnership.DoNotTransfer); __this.RemoveResponseListener(p0, p1); }
static void n_PostCommand_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceCommand_J(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, long p2) { DeviceMessenger __this = Java.Lang.Object.GetObject <DeviceMessenger> (native__this, JniHandleOwnership.DoNotTransfer); global::Orbotix.Robot.Base.Robot p0 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.Robot> (native_p0, JniHandleOwnership.DoNotTransfer); global::Orbotix.Robot.Base.DeviceCommand p1 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.DeviceCommand> (native_p1, JniHandleOwnership.DoNotTransfer); __this.PostCommand(p0, p1, p2); }
static void n_PostAsyncData_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceAsyncData_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { DeviceMessenger __this = Java.Lang.Object.GetObject <DeviceMessenger> (native__this, JniHandleOwnership.DoNotTransfer); global::Orbotix.Robot.Base.Robot p0 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.Robot> (native_p0, JniHandleOwnership.DoNotTransfer); global::Orbotix.Robot.Base.DeviceAsyncData p1 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.DeviceAsyncData> (native_p1, JniHandleOwnership.DoNotTransfer); __this.PostAsyncData(p0, p1); }
public static void SendCommand(global::Orbotix.Robot.Base.Robot p0, string p1) { if (id_sendCommand_Lorbotix_robot_base_Robot_Ljava_lang_String_ == IntPtr.Zero) { id_sendCommand_Lorbotix_robot_base_Robot_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "sendCommand", "(Lorbotix/robot/base/Robot;Ljava/lang/String;)V"); } IntPtr native_p1 = JNIEnv.NewString(p1); JNIEnv.CallStaticVoidMethod(class_ref, id_sendCommand_Lorbotix_robot_base_Robot_Ljava_lang_String_, new JValue(p0), new JValue(native_p1)); JNIEnv.DeleteLocalRef(native_p1); }
public static void SendCommand(global::Orbotix.Robot.Base.Robot p0, sbyte p1, sbyte p2, byte[] p3) { if (id_sendCommand_Lorbotix_robot_base_Robot_BBarrayB == IntPtr.Zero) { id_sendCommand_Lorbotix_robot_base_Robot_BBarrayB = JNIEnv.GetStaticMethodID(class_ref, "sendCommand", "(Lorbotix/robot/base/Robot;BB[B)V"); } IntPtr native_p3 = JNIEnv.NewArray(p3); JNIEnv.CallStaticVoidMethod(class_ref, id_sendCommand_Lorbotix_robot_base_Robot_BBarrayB, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(native_p3)); if (p3 != null) { JNIEnv.CopyArray(native_p3, p3); JNIEnv.DeleteLocalRef(native_p3); } }
protected static global::Orbotix.Robot.Base.DeviceAsyncData Create(global::Orbotix.Robot.Base.Robot p0, sbyte p1, byte[] p2) { if (id_create_Lorbotix_robot_base_Robot_BarrayB == IntPtr.Zero) { id_create_Lorbotix_robot_base_Robot_BarrayB = JNIEnv.GetStaticMethodID(class_ref, "create", "(Lorbotix/robot/base/Robot;B[B)Lorbotix/robot/base/DeviceAsyncData;"); } IntPtr native_p2 = JNIEnv.NewArray(p2); global::Orbotix.Robot.Base.DeviceAsyncData __ret = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.DeviceAsyncData> (JNIEnv.CallStaticObjectMethod(class_ref, id_create_Lorbotix_robot_base_Robot_BarrayB, new JValue(p0), new JValue(p1), new JValue(native_p2)), JniHandleOwnership.TransferLocalRef); if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } return(__ret); }
public virtual void SetRobot(global::Orbotix.Robot.Base.Robot p0) { if (id_setRobot_Lorbotix_robot_base_Robot_ == IntPtr.Zero) { id_setRobot_Lorbotix_robot_base_Robot_ = JNIEnv.GetMethodID(class_ref, "setRobot", "(Lorbotix/robot/base/Robot;)V"); } if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_setRobot_Lorbotix_robot_base_Robot_, new JValue(p0)); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_setRobot_Lorbotix_robot_base_Robot_, new JValue(p0)); } }
public virtual void RemoveResponseListener(global::Orbotix.Robot.Base.Robot p0, global::Orbotix.Robot.Base.DeviceMessenger.IDeviceResponseListener p1) { if (id_removeResponseListener_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceMessenger_DeviceResponseListener_ == IntPtr.Zero) { id_removeResponseListener_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceMessenger_DeviceResponseListener_ = JNIEnv.GetMethodID(class_ref, "removeResponseListener", "(Lorbotix/robot/base/Robot;Lorbotix/robot/base/DeviceMessenger$DeviceResponseListener;)V"); } if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_removeResponseListener_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceMessenger_DeviceResponseListener_, new JValue(p0), new JValue(p1)); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_removeResponseListener_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceMessenger_DeviceResponseListener_, new JValue(p0), new JValue(p1)); } }
protected virtual void PostResponse(global::Orbotix.Robot.Base.Robot p0, global::Orbotix.Robot.Base.DeviceResponse p1) { if (id_postResponse_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceResponse_ == IntPtr.Zero) { id_postResponse_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceResponse_ = JNIEnv.GetMethodID(class_ref, "postResponse", "(Lorbotix/robot/base/Robot;Lorbotix/robot/base/DeviceResponse;)V"); } if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_postResponse_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceResponse_, new JValue(p0), new JValue(p1)); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_postResponse_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceResponse_, new JValue(p0), new JValue(p1)); } }
public virtual void PostCommand(global::Orbotix.Robot.Base.Robot p0, global::Orbotix.Robot.Base.DeviceCommand p1, long p2) { if (id_postCommand_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceCommand_J == IntPtr.Zero) { id_postCommand_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceCommand_J = JNIEnv.GetMethodID(class_ref, "postCommand", "(Lorbotix/robot/base/Robot;Lorbotix/robot/base/DeviceCommand;J)V"); } if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_postCommand_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceCommand_J, new JValue(p0), new JValue(p1), new JValue(p2)); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_postCommand_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceCommand_J, new JValue(p0), new JValue(p1), new JValue(p2)); } }
public RobotControl(global::Orbotix.Robot.Base.Robot p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } if (GetType() != typeof(RobotControl)) { SetHandle(global::Android.Runtime.JNIEnv.CreateInstance(GetType(), "(Lorbotix/robot/base/Robot;)V", new JValue(p0)), JniHandleOwnership.TransferLocalRef); return; } if (id_ctor_Lorbotix_robot_base_Robot_ == IntPtr.Zero) { id_ctor_Lorbotix_robot_base_Robot_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorbotix/robot/base/Robot;)V"); } SetHandle(JNIEnv.NewObject(class_ref, id_ctor_Lorbotix_robot_base_Robot_, new JValue(p0)), JniHandleOwnership.TransferLocalRef); }