summaryrefslogtreecommitdiff
path: root/docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml
diff options
context:
space:
mode:
authorKangho <rookiejava+github@gmail.com>2016-12-15 06:24:59 +0900
committerJason Smith <jason.smith@xamarin.com>2016-12-14 13:24:59 -0800
commit1c5de535739e92d0c6dca335c024503b08d1a2af (patch)
tree1ae9ab1eb0608ee4830a8194063dc4b371890833 /docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml
parent2a9c6f75cfab2699cbb398f0439c4451fe180766 (diff)
downloadxamarin-forms-1c5de535739e92d0c6dca335c024503b08d1a2af.tar.gz
xamarin-forms-1c5de535739e92d0c6dca335c024503b08d1a2af.tar.bz2
xamarin-forms-1c5de535739e92d0c6dca335c024503b08d1a2af.zip
Add Tizen to TargetPlatform (#590)
* Add Tizen to TargetPlatform * Adds Device.OnPlatform methods having Tizen
Diffstat (limited to 'docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml')
-rw-r--r--docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml73
1 files changed, 73 insertions, 0 deletions
diff --git a/docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml b/docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml
index d5c3fce4..1c68026b 100644
--- a/docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml
+++ b/docs/Xamarin.Forms.Core/Xamarin.Forms/Device.xml
@@ -168,6 +168,41 @@ 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" />
@@ -210,6 +245,44 @@ button.HeightRequest = Device.OnPlatform (20,30,30);
</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, T Tizen);" />
+ <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!T OnPlatform&lt;T&gt;(!!T iOS, !!T Android, !!T WinPhone, !!T Tizen) cil managed" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo>
+ <AssemblyVersion>2.0.0.0</AssemblyVersion>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType>T</ReturnType>
+ </ReturnValue>
+ <TypeParameters>
+ <TypeParameter Name="T" />
+ </TypeParameters>
+ <Parameters>
+ <Parameter Name="iOS" Type="T" />
+ <Parameter Name="Android" Type="T" />
+ <Parameter Name="WinPhone" Type="T" />
+ <Parameter Name="Tizen" Type="T" />
+ </Parameters>
+ <Docs>
+ <typeparam name="T">The type of the value to be returned.</typeparam>
+ <param name="iOS">The value for iOS.</param>
+ <param name="Android">The value for Android.</param>
+ <param name="WinPhone">The value for WinPhone.</param>
+ <param name="WinPhone">The value for Tizen.</param>
+ <summary>Returns different values depending on the <see cref="T:Xamarin.Forms.TargetOS" /> Xamarin.Forms is working on.</summary>
+ <returns>The value for the current OS.</returns>
+ <remarks>
+ <para>This example shows how to use different heights for a Button on different OS.
+ </para>
+ <example>
+ <code lang="C#"><![CDATA[
+button.HeightRequest = Device.OnPlatform (20,30,30);
+ ]]></code>
+ </example>
+ </remarks>
+ </Docs>
+ </Member>
<Member MemberName="OpenUri">
<MemberSignature Language="C#" Value="public static void OpenUri (Uri uri);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void OpenUri(class System.Uri uri) cil managed" />