AndroidAccessibilityName.cs 416 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 XAMARINAccessibilityName.Droid;

[assembly: Dependency(typeof(AndroidAccessibilityName))]
namespace XAMARINAccessibilityName.Droid
{
    public class AndroidAccessibilityName : IAccessibilityName
    {

        public void setName(View v, string s)
        {
            v.GetRenderer().View.ContentDescription = s;
        }
    }
}