diff options
-rw-r--r-- | Xamarin.Forms.Core/Device.cs | 15 | ||||
-rw-r--r-- | docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml | 35 |
2 files changed, 0 insertions, 50 deletions
diff --git a/Xamarin.Forms.Core/Device.cs b/Xamarin.Forms.Core/Device.cs index 50fdcfc0..5a02bcea 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 1c68026b..5bec0518 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<T>"> <MemberSignature Language="C#" Value="public static T OnPlatform<T> (T iOS, T Android, T WinPhone);" /> <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!T OnPlatform<T>(!!T iOS, !!T Android, !!T WinPhone) cil managed" /> |