Ejemplo n.º 1
0
 /// <summary>Remove a previously installed internal insets computation 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="addOnComputeInternalInsetsListener(OnComputeInternalInsetsListener)
 ///     ">We are not yet ready to commit to this API and support it, so</seealso>
 /// <hide></hide>
 public void removeOnComputeInternalInsetsListener(android.view.ViewTreeObserver.OnComputeInternalInsetsListener
                                                   victim)
 {
     checkIsAlive();
     if (mOnComputeInternalInsetsListeners == null)
     {
         return;
     }
     mOnComputeInternalInsetsListeners.remove(victim);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Register a callback to be invoked when the invoked when it is time to
 /// compute the window's internal insets.
 /// </summary>
 /// <remarks>
 /// Register a callback to be invoked when the invoked when it is time to
 /// compute the window's internal insets.
 /// </remarks>
 /// <param name="listener">The callback to add</param>
 /// <exception cref="System.InvalidOperationException">
 /// If
 /// <see cref="isAlive()">isAlive()</see>
 /// returns false
 /// We are not yet ready to commit to this API and support it, so
 /// </exception>
 /// <hide></hide>
 public void addOnComputeInternalInsetsListener(android.view.ViewTreeObserver.OnComputeInternalInsetsListener
                                                listener)
 {
     checkIsAlive();
     if (mOnComputeInternalInsetsListeners == null)
     {
         mOnComputeInternalInsetsListeners = new java.util.concurrent.CopyOnWriteArrayList
                                             <android.view.ViewTreeObserver.OnComputeInternalInsetsListener>();
     }
     mOnComputeInternalInsetsListeners.add(listener);
 }