This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathActionAttribute.xml
86 lines (86 loc) · 3.51 KB
/
ActionAttribute.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<Type Name="ActionAttribute" FullName="Foundation.ActionAttribute">
<TypeSignature Language="C#" Value="public sealed class ActionAttribute : Foundation.ExportAttribute" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit ActionAttribute extends Foundation.ExportAttribute" />
<TypeSignature Language="DocId" Value="T:Foundation.ActionAttribute" />
<TypeSignature Language="F#" Value="type ActionAttribute = class
 inherit ExportAttribute" />
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Foundation.ExportAttribute</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>System.AttributeUsage(System.AttributeTargets.Method)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Flags a method to respond to an Objective-C action</summary>
<remarks>
<para>
You can apply this attribute to a method, turning it into an action that can be invoked by the Objective-C world.
</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
[Action ("clicked:")]
void Submit (NSObject sender)
{
// User has clicked on the Submit button, respond to this action
}
]]></code>
</example>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ActionAttribute ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Foundation.ActionAttribute.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of an Action attribute</summary>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ActionAttribute (string selector);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string selector) cil managed" />
<MemberSignature Language="DocId" Value="M:Foundation.ActionAttribute.#ctor(System.String)" />
<MemberSignature Language="F#" Value="new Foundation.ActionAttribute : string -> Foundation.ActionAttribute" Usage="new Foundation.ActionAttribute selector" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="selector" Type="System.String" />
</Parameters>
<Docs>
<param name="selector">Name for the selector to expose</param>
<summary>Creates a new instance of the action attribtue with the given selector.</summary>
<remarks>
</remarks>
</Docs>
</Member>
</Members>
</Type>