Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (35 sloc) 882 Bytes
using System;
using Xamarin.UITest;
using Xamarin.UITest.Queries;
namespace Xamarin.UITest.POPSample
{
public class PlatformQuery
{
public Func<AppQuery, AppQuery> Android
{
set
{
if (AppManager.Platform == Platform.Android)
current = value;
}
}
public Func<AppQuery, AppQuery> iOS
{
set
{
if (AppManager.Platform == Platform.iOS)
current = value;
}
}
Func<AppQuery, AppQuery> current;
public Func<AppQuery, AppQuery> Current
{
get
{
if (current == null)
throw new NullReferenceException("Trait not set for current platform");
return current;
}
}
}
}
You can’t perform that action at this time.