AndroidAccessibilitySpeak.cs 437 Bytes
Newer Older
Poli97's avatar
Poli97 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
using System;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
using XAMARINAccessibilitySpeech.Droid;

[assembly: Dependency(typeof(AndroidAccessibilitySpeak))]
namespace XAMARINAccessibilitySpeech.Droid
{
    public class AndroidAccessibilitySpeak : IAccessibilitySpeakService
    {

        public void speakText(View v, string s)
        {
            v.GetRenderer().View.AnnounceForAccessibility(s);
        }
    }
}