summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-12-15 18:48:00 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-12-15 18:48:00 (GMT)
commit3716c57aabc2407b02a8fd724d6ad9074e7b9d8f (patch)
tree1f31ab5c2926611c7da9670a106eedc418763994
parent8f1bb7b4b2ae8fd182c3874f208a12d549d230dd (diff)
downloadxamarin-forms-3716c57aabc2407b02a8fd724d6ad9074e7b9d8f.zip
xamarin-forms-3716c57aabc2407b02a8fd724d6ad9074e7b9d8f.tar.gz
xamarin-forms-3716c57aabc2407b02a8fd724d6ad9074e7b9d8f.tar.bz2
Remove overload causing backwards compatibility issues
-rw-r--r--Xamarin.Forms.Core/Device.cs15
-rw-r--r--docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml35
2 files changed, 0 insertions, 50 deletions
diff --git a/Xamarin.Forms.Core/Device.cs b/Xamarin.Forms.Core/Device.cs
index 50fdcfc..5a02bce 100644
--- a/Xamarin.Forms.Core/Device.cs
+++ b/Xamarin.Forms.Core/Device.cs
@@ -88,21 +88,6 @@ namespace Xamarin.Forms
}
}
- public static void OnPlatform(Action iOS = null, Action Android = null, Action WinPhone = null, Action Default = null, Action Tizen = null)
- {
- if (OS == TargetPlatform.Tizen)
- {
- if (Tizen != null)
- Tizen();
- else if (Default != null)
- Default();
- }
- else
- {
- OnPlatform(iOS, Android, WinPhone, Default);
- }
- }
-
public static T OnPlatform<T>(T iOS, T Android, T WinPhone)
{
switch (OS)
diff --git a/docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml b/docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml
index 1c68026..5bec051 100644
--- a/docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml
+++ b/docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml
@@ -168,41 +168,6 @@ Device.OnPlatform (iOS: () => label.Font = Font.OfSize ("HelveticaNeue-UltraLigh
</remarks>
</Docs>
</Member>
- <Member MemberName="OnPlatform">
- <MemberSignature Language="C#" Value="public static void OnPlatform (Action iOS = null, Action Android = null, Action WinPhone = null, Action Default = null, Action Tizen = null);" />
- <MemberSignature Language="ILAsm" Value=".method public static hidebysig void OnPlatform(class System.Action iOS, class System.Action Android, class System.Action WinPhone, class System.Action Default, class System.Action Tizen) cil managed" />
- <MemberType>Method</MemberType>
- <AssemblyInfo>
- <AssemblyVersion>2.0.0.0</AssemblyVersion>
- </AssemblyInfo>
- <ReturnValue>
- <ReturnType>System.Void</ReturnType>
- </ReturnValue>
- <Parameters>
- <Parameter Name="iOS" Type="System.Action" />
- <Parameter Name="Android" Type="System.Action" />
- <Parameter Name="WinPhone" Type="System.Action" />
- <Parameter Name="Default" Type="System.Action" />
- <Parameter Name="Tizen" Type="System.Action" />
- </Parameters>
- <Docs>
- <param name="iOS">(optional) The Action to execute on iOS.</param>
- <param name="Android">(optional) The Action to execute on Android.</param>
- <param name="WinPhone">(optional) The Action to execute on WinPhone.</param>
- <param name="Default">(optional) The Action to execute if no Action was provided for the current OS.</param>
- <param name="Tizen">(optional) The Action to execute on Tizen.</param>
- <summary>Executes different Actions depending on the <see cref="T:Xamarin.QcuikUI.TargetOS" /> that Xamarin.Forms is working on.</summary>
- <remarks>
- <para>This example shows how to change the font of a Label on a single OS.
- </para>
- <example>
- <code lang="C#"><![CDATA[
-Device.OnPlatform (iOS: () => label.Font = Font.OfSize ("HelveticaNeue-UltraLight", NamedSize.Large));
- ]]></code>
- </example>
- </remarks>
- </Docs>
- </Member>
<Member MemberName="OnPlatform&lt;T&gt;">
<MemberSignature Language="C#" Value="public static T OnPlatform&lt;T&gt; (T iOS, T Android, T WinPhone);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig !!T OnPlatform&lt;T&gt;(!!T iOS, !!T Android, !!T WinPhone) cil managed" />