使用 xamarin android 实现传感器侦听器时出现异常

Exception while implementing sensor Listener with xamarin android

我创建了一个 class,它扩展了接口 ISensorEventListener 以获取传感器的值。你能告诉我在以下与接口 ISensorEventListener 相关的函数中必须做什么吗?

public IntPtr Handle
        {
            get
            {
                throw new NotImplementedException();
            }
        }

此方法是 java 中使用的句柄,您可以实现一些特定的东西,但有时您只需要从此对象扩展即可避免此实现:

  class YourClass: Java.Lang.Object, ISensorEventListener.