AndroidHasFocus.cs 413 Bytes
Newer Older
Mattia's avatar
Mattia committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
using System;
using Android.Views;
using fun5.Droid;
using SampleApp.DependencyServices;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;

[assembly: Dependency(typeof(focusAndroid))]
namespace fun5.Droid
{
    public class focusAndroid : IIsFocused
    {

        public bool isFocused(Xamarin.Forms.View v)
        {
            return v.GetRenderer().View.IsAccessibilityFocused;
        }
    }
}