- protected override bool AccessibilityDoAction(string name)
- {
- if (name == AccessibilityActivateAction)
- {
- if (ActivateSignal?.Empty() == false)
- {
- ActivateSignal?.Emit();
- return true;
- }
- else
- {
- return OnAccessibilityActivated();
- }
- }
- else if (name == AccessibilityReadingSkippedAction)
- {
- if (ReadingSkippedSignal?.Empty() == false)
- {
- ReadingSkippedSignal?.Emit();
- return true;
- }
- else
- {
- return OnAccessibilityReadingSkipped();
- }
- }
- else if (name == AccessibilityReadingCancelledAction)
- {
- if (ReadingCancelledSignal?.Empty() == false)
- {
- ReadingCancelledSignal?.Emit();
- return true;
- }
- else
- {
- return OnAccessibilityReadingCancelled();
- }
- }
- else if (name == AccessibilityReadingStoppedAction)
- {
- if (ReadingStoppedSignal?.Empty() == false)
- {
- ReadingStoppedSignal?.Emit();
- return true;
- }
- else
- {
- return OnAccessibilityReadingStopped();
- }
- }
- else if (name == AccessibilityReadingPausedAction)
- {
- if (ReadingPausedSignal?.Empty() == false)
- {
- ReadingPausedSignal?.Emit();
- return true;
- }
- else
- {
- return OnAccessibilityReadingPaused();
- }
- }
- else if (name == AccessibilityReadingResumedAction)
- {
- if (ReadingResumedSignal?.Empty() == false)
- {
- ReadingResumedSignal?.Emit();
- return true;
- }
- else
- {
- return OnAccessibilityReadingResumed();
- }
- }
- else
- {
- return false;
- }
- }
-
- /// <summary>
- /// This method is called when the control accessibility is activated.<br />
- /// Derived classes should override this to perform custom accessibility activation.<br />
- /// </summary>
- /// <returns>True if this control can perform accessibility activation.</returns>
- internal virtual bool OnAccessibilityActivated()