IosAccessibilitySpeak.cs 489 Bytes
Newer Older
Poli97's avatar
Poli97 committed
1 2 3 4
using System;
using Foundation;
using UIKit;
using Xamarin.Forms;
Paolo Pecis's avatar
Paolo Pecis committed
5
using XAMARINAccessibilitySpeech.iOS;
Poli97's avatar
Poli97 committed
6

Paolo Pecis's avatar
Paolo Pecis committed
7
[assembly: Dependency(typeof(IosAccessibilitySpeak))]
Poli97's avatar
Poli97 committed
8 9 10 11 12 13 14 15 16 17
namespace XAMARINAccessibilitySpeech.iOS
{
    public class IosAccessibilitySpeak : IAccessibilitySpeakService
    {
        public void speakText(View v, string s)
        {
            UIAccessibility.PostNotification(notification: UIAccessibilityPostNotification.ScreenChanged, argument: new NSString(s));
        }
    }
}