public void Emit(View arg1, AccessibilityManager.FocusOvershotDirection arg2) { Interop.AccessibilityManage.AccessibilityFocusOvershotSignal_Emit(swigCPtr, View.getCPtr(arg1), (int)arg2); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
// Callback for AccessibilityManager FocusOvershotSignal private void OnFocusOvershot(IntPtr currentFocusedView, AccessibilityManager.FocusOvershotDirection direction) { if (accessibilityManagerFocusOvershotEventHandler != null) { FocusOvershotEventArgs e = new FocusOvershotEventArgs(); // Populate all members of "e" (FocusOvershotEventArgs) with real data e.CurrentFocusedView = Registry.GetManagedBaseHandleFromNativePtr(currentFocusedView) as View; e.FocusOvershotDirection = direction; //here we send all data to user event handlers accessibilityManagerFocusOvershotEventHandler(this, e); } }