public override void SendAccessibilityEvent(EventTypes eventType)
        {
            base.SendAccessibilityEvent(eventType);

            AccessibilityManager manager = (AccessibilityManager)Context.GetSystemService(Context.AccessibilityService);

            if (!manager.IsEnabled)
            {
                return;
            }

            switch (eventType)
            {
            case EventTypes.ViewAccessibilityFocused:
                manager.Interrupt();
                AccessibilityFocused?.Invoke(this, EventArgs.Empty);
                break;

            default:
                break;
            }
        }
 public override void AccessibilityElementDidBecomeFocused()
 {
     base.AccessibilityElementDidBecomeFocused();
     AccessibilityFocused?.Invoke(this, EventArgs.Empty);
 }
Example #3
0
 internal void InvokeAccessibilityFocused()
 {
     AccessibilityFocused?.Invoke(this, EventArgs.Empty);
 }