Пример #1
0
 /// <summary>Remove a previously installed touch mode change callback</summary>
 /// <param name="victim">The callback to remove</param>
 /// <exception cref="System.InvalidOperationException">
 /// If
 /// <see cref="isAlive()">isAlive()</see>
 /// returns false
 /// </exception>
 /// <seealso cref="addOnTouchModeChangeListener(OnTouchModeChangeListener)">addOnTouchModeChangeListener(OnTouchModeChangeListener)
 ///     </seealso>
 public void removeOnTouchModeChangeListener(android.view.ViewTreeObserver.OnTouchModeChangeListener
                                             victim)
 {
     checkIsAlive();
     if (mOnTouchModeChangeListeners == null)
     {
         return;
     }
     mOnTouchModeChangeListeners.remove(victim);
 }
Пример #2
0
 /// <summary>Register a callback to be invoked when the invoked when the touch mode changes.
 ///     </summary>
 /// <remarks>Register a callback to be invoked when the invoked when the touch mode changes.
 ///     </remarks>
 /// <param name="listener">The callback to add</param>
 /// <exception cref="System.InvalidOperationException">
 /// If
 /// <see cref="isAlive()">isAlive()</see>
 /// returns false
 /// </exception>
 public void addOnTouchModeChangeListener(android.view.ViewTreeObserver.OnTouchModeChangeListener
                                          listener)
 {
     checkIsAlive();
     if (mOnTouchModeChangeListeners == null)
     {
         mOnTouchModeChangeListeners = new java.util.concurrent.CopyOnWriteArrayList <android.view.ViewTreeObserver
                                                                                      .OnTouchModeChangeListener>();
     }
     mOnTouchModeChangeListeners.add(listener);
 }
Пример #3
0
 public void removeOnTouchModeChangeListener(android.view.ViewTreeObserver.OnTouchModeChangeListener arg0)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (!IsClrObject)
     {
         @__env.CallVoidMethod(this.JvmHandle, global::android.view.ViewTreeObserver._removeOnTouchModeChangeListener9674, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
     }
     else
     {
         @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.view.ViewTreeObserver.staticClass, global::android.view.ViewTreeObserver._removeOnTouchModeChangeListener9674, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
     }
 }