예제 #1
0
 /// <summary>Remove a previously installed focus change callback.</summary>
 /// <remarks>Remove a previously installed focus change callback.</remarks>
 /// <param name="victim">The callback to remove</param>
 /// <exception cref="System.InvalidOperationException">
 /// If
 /// <see cref="isAlive()">isAlive()</see>
 /// returns false
 /// </exception>
 /// <seealso cref="addOnGlobalFocusChangeListener(OnGlobalFocusChangeListener)">addOnGlobalFocusChangeListener(OnGlobalFocusChangeListener)
 ///     </seealso>
 public void removeOnGlobalFocusChangeListener(android.view.ViewTreeObserver.OnGlobalFocusChangeListener
                                               victim)
 {
     checkIsAlive();
     if (mOnGlobalFocusListeners == null)
     {
         return;
     }
     mOnGlobalFocusListeners.remove(victim);
 }
예제 #2
0
 /// <summary>Register a callback to be invoked when the focus state within the view tree changes.
 ///     </summary>
 /// <remarks>Register a callback to be invoked when the focus state within the view tree 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 addOnGlobalFocusChangeListener(android.view.ViewTreeObserver.OnGlobalFocusChangeListener
                                            listener)
 {
     checkIsAlive();
     if (mOnGlobalFocusListeners == null)
     {
         mOnGlobalFocusListeners = new java.util.concurrent.CopyOnWriteArrayList <android.view.ViewTreeObserver
                                                                                  .OnGlobalFocusChangeListener>();
     }
     mOnGlobalFocusListeners.add(listener);
 }
예제 #3
0
 public void removeOnGlobalFocusChangeListener(android.view.ViewTreeObserver.OnGlobalFocusChangeListener arg0)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (!IsClrObject)
     {
         @__env.CallVoidMethod(this.JvmHandle, global::android.view.ViewTreeObserver._removeOnGlobalFocusChangeListener9666, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
     }
     else
     {
         @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.view.ViewTreeObserver.staticClass, global::android.view.ViewTreeObserver._removeOnGlobalFocusChangeListener9666, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
     }
 }