Exemple #1
0
 static void n_OnAccuracyChanged_Landroid_hardware_Sensor_I(IntPtr jnienv, IntPtr native__this, IntPtr native_sensor, int native_accuracy)
 {
     global::Com.Clevertap.Android.Sdk.Ab_testing.Gesture.ConnectionGesture __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Ab_testing.Gesture.ConnectionGesture> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Hardware.Sensor       sensor   = global::Java.Lang.Object.GetObject <global::Android.Hardware.Sensor> (native_sensor, JniHandleOwnership.DoNotTransfer);
     global::Android.Hardware.SensorStatus accuracy = (global::Android.Hardware.SensorStatus)native_accuracy;
     __this.OnAccuracyChanged(sensor, accuracy);
 }
Exemple #2
0
 static void n_OnAccuracyChanged_Landroid_hardware_Sensor_I(IntPtr jnienv, IntPtr native__this, IntPtr native_sensor, int native_accuracy)
 {
     global::Org.Osmdroid.Views.Overlay.Compass.InternalCompassOrientationProvider __this = global::Java.Lang.Object.GetObject <global::Org.Osmdroid.Views.Overlay.Compass.InternalCompassOrientationProvider> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Hardware.Sensor       sensor   = global::Java.Lang.Object.GetObject <global::Android.Hardware.Sensor> (native_sensor, JniHandleOwnership.DoNotTransfer);
     global::Android.Hardware.SensorStatus accuracy = (global::Android.Hardware.SensorStatus)native_accuracy;
     __this.OnAccuracyChanged(sensor, accuracy);
 }
Exemple #3
0
 protected override void OnElementChanged(ElementChangedEventArgs <Page> e)
 {
     base.OnElementChanged(e);
     sensorManager           = (SensorManager)Context.GetSystemService(Android.Content.Context.SensorService);
     sensorLinearAccleration = sensorManager.GetDefaultSensor(Android.Hardware.SensorType.LinearAcceleration);
     sensorManager.RegisterListener(this, sensorLinearAccleration, SensorDelay.Fastest);
 }
Exemple #4
0
 static void n_OnAccuracyChanged_Landroid_hardware_Sensor_I(IntPtr jnienv, IntPtr native__this, IntPtr native_pSensor, int native_pAccuracy)
 {
     global::Osmdroid.SensorEventListenerProxy __this    = global::Java.Lang.Object.GetObject <global::Osmdroid.SensorEventListenerProxy> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Hardware.Sensor           pSensor   = global::Java.Lang.Object.GetObject <global::Android.Hardware.Sensor> (native_pSensor, JniHandleOwnership.DoNotTransfer);
     global::Android.Hardware.SensorStatus     pAccuracy = (global::Android.Hardware.SensorStatus)native_pAccuracy;
     __this.OnAccuracyChanged(pSensor, pAccuracy);
 }
Exemple #5
0
        public virtual unsafe void OnAccuracyChanged(global::Android.Hardware.Sensor sensor, [global::Android.Runtime.GeneratedEnum] global::Android.Hardware.SensorStatus accuracy)
        {
            const string __id = "onAccuracyChanged.(Landroid/hardware/Sensor;I)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((sensor == null) ? IntPtr.Zero : ((global::Java.Lang.Object)sensor).Handle);
                __args [1] = new JniArgumentValue((int)accuracy);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
Exemple #6
0
        public virtual void OnAccuracyChanged(global::Android.Hardware.Sensor sensor, [global::Android.Runtime.GeneratedEnum] global::Android.Hardware.SensorStatus accuracy)
        {
            if (id_onAccuracyChanged_Landroid_hardware_Sensor_I == IntPtr.Zero)
            {
                id_onAccuracyChanged_Landroid_hardware_Sensor_I = JNIEnv.GetMethodID(class_ref, "onAccuracyChanged", "(Landroid/hardware/Sensor;I)V");
            }

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_onAccuracyChanged_Landroid_hardware_Sensor_I, new JValue(sensor), new JValue((int)accuracy));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onAccuracyChanged", "(Landroid/hardware/Sensor;I)V"), new JValue(sensor), new JValue((int)accuracy));
            }
        }