iOSScreenReaderEnabled.cs 396 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 SampleApp.DependencyServices;
using SampleApp.iOS;
using UIKit;
using Xamarin.Forms;

[assembly: Dependency(typeof(iOSScreenReaderEnabled))]
namespace SampleApp.iOS
{
    public class iOSScreenReaderEnabled : IScreenReaderEnabled
    {
        

        public bool IsScreenReaderEnabled()
        {
            return UIAccessibility.IsVoiceOverRunning;
        }
    }
}