/// <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); }
/// <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); }