-
Notifications
You must be signed in to change notification settings - Fork 42
/
UITextPasteDelegate.xml
296 lines (296 loc) · 19.5 KB
/
UITextPasteDelegate.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
<Type Name="UITextPasteDelegate" FullName="UIKit.UITextPasteDelegate">
<TypeSignature Language="C#" Value="public class UITextPasteDelegate : Foundation.NSObject, IDisposable, UIKit.IUITextPasteDelegate" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit UITextPasteDelegate extends Foundation.NSObject implements class ObjCRuntime.INativeObject, class System.IDisposable, class UIKit.IUITextPasteDelegate" />
<TypeSignature Language="DocId" Value="T:UIKit.UITextPasteDelegate" />
<TypeSignature Language="F#" Value="type UITextPasteDelegate = class
 inherit NSObject
 interface IUITextPasteDelegate
 interface INativeObject
 interface IDisposable" />
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Foundation.NSObject</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>ObjCRuntime.INativeObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>UIKit.IUITextPasteDelegate</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>Foundation.Model</AttributeName>
</Attribute>
<Attribute>
<AttributeName>Foundation.Protocol</AttributeName>
</Attribute>
<Attribute>
<AttributeName>Foundation.Register("UITextPasteDelegate", false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Interface for pasting and dropping text via item providers.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UITextPasteDelegate ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextPasteDelegate.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("init")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Default constructor, initializes a new instance of this class.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected UITextPasteDelegate (Foundation.NSObjectFlag t);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Foundation.NSObjectFlag t) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextPasteDelegate.#ctor(Foundation.NSObjectFlag)" />
<MemberSignature Language="F#" Value="new UIKit.UITextPasteDelegate : Foundation.NSObjectFlag -> UIKit.UITextPasteDelegate" Usage="new UIKit.UITextPasteDelegate t" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="t" Type="Foundation.NSObjectFlag" />
</Parameters>
<Docs>
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
<remarks>
<para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When developers invoke the constructor that takes the NSObjectFlag.Empty they take advantage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to the developer.</para>
<para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
<para>It is the developer's responsibility to completely initialize the object if they chain up using the NSObjectFlag.Empty path.</para>
<para>In general, if the developer's constructor invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, developers should instead chain to the proper constructor in their class. </para>
<para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
//
// The NSObjectFlag merely allocates the object and registers the
// C# class with the Objective-C runtime if necessary, but no actual
// initXxx method is invoked, that is done later in the constructor
//
// This is taken from Xamarin.iOS's source code:
//
[Export ("initWithFrame:")]
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
{
// Invoke the init method now.
var initWithFrame = new Selector ("initWithFrame:").Handle;
if (IsDirectBinding)
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
else
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
}
]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected internal UITextPasteDelegate (IntPtr handle);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextPasteDelegate.#ctor(System.IntPtr)" />
<MemberSignature Language="F#" Value="new UIKit.UITextPasteDelegate : nativeint -> UIKit.UITextPasteDelegate" Usage="new UIKit.UITextPasteDelegate handle" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="handle" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="handle">Pointer (handle) to the unmanaged object.</param>
<summary>A constructor used when creating managed representations of unmanaged objects; Called by the runtime.</summary>
<remarks>
<para>This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object. Developers should not invoke this method directly, instead they should call the GetNSObject method as it will prevent two instances of a managed object to point to the same native object.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="CombineItemAttributedStrings">
<MemberSignature Language="C#" Value="public virtual Foundation.NSAttributedString CombineItemAttributedStrings (UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, Foundation.NSAttributedString[] itemStrings, UIKit.UITextRange textRange);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Foundation.NSAttributedString CombineItemAttributedStrings(class UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, class Foundation.NSAttributedString[] itemStrings, class UIKit.UITextRange textRange) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextPasteDelegate.CombineItemAttributedStrings(UIKit.IUITextPasteConfigurationSupporting,Foundation.NSAttributedString[],UIKit.UITextRange)" />
<MemberSignature Language="F#" Value="abstract member CombineItemAttributedStrings : UIKit.IUITextPasteConfigurationSupporting * Foundation.NSAttributedString[] * UIKit.UITextRange -> Foundation.NSAttributedString
override this.CombineItemAttributedStrings : UIKit.IUITextPasteConfigurationSupporting * Foundation.NSAttributedString[] * UIKit.UITextRange -> Foundation.NSAttributedString" Usage="uITextPasteDelegate.CombineItemAttributedStrings (textPasteConfigurationSupporting, itemStrings, textRange)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("textPasteConfigurationSupporting:combineItemAttributedStrings:forRange:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSAttributedString</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="textPasteConfigurationSupporting" Type="UIKit.IUITextPasteConfigurationSupporting" />
<Parameter Name="itemStrings" Type="Foundation.NSAttributedString[]" />
<Parameter Name="textRange" Type="UIKit.UITextRange" />
</Parameters>
<Docs>
<param name="textPasteConfigurationSupporting">The receiving object.</param>
<param name="itemStrings">The strings to combine.</param>
<param name="textRange">The range in which to paste or drop the combined strings.</param>
<summary>Method that is called to combine multiple attributed strings.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PerformPaste">
<MemberSignature Language="C#" Value="public virtual UIKit.UITextRange PerformPaste (UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, Foundation.NSAttributedString attributedString, UIKit.UITextRange textRange);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class UIKit.UITextRange PerformPaste(class UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, class Foundation.NSAttributedString attributedString, class UIKit.UITextRange textRange) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextPasteDelegate.PerformPaste(UIKit.IUITextPasteConfigurationSupporting,Foundation.NSAttributedString,UIKit.UITextRange)" />
<MemberSignature Language="F#" Value="abstract member PerformPaste : UIKit.IUITextPasteConfigurationSupporting * Foundation.NSAttributedString * UIKit.UITextRange -> UIKit.UITextRange
override this.PerformPaste : UIKit.IUITextPasteConfigurationSupporting * Foundation.NSAttributedString * UIKit.UITextRange -> UIKit.UITextRange" Usage="uITextPasteDelegate.PerformPaste (textPasteConfigurationSupporting, attributedString, textRange)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("textPasteConfigurationSupporting:performPasteOfAttributedString:toRange:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>UIKit.UITextRange</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="textPasteConfigurationSupporting" Type="UIKit.IUITextPasteConfigurationSupporting" />
<Parameter Name="attributedString" Type="Foundation.NSAttributedString" />
<Parameter Name="textRange" Type="UIKit.UITextRange" />
</Parameters>
<Docs>
<param name="textPasteConfigurationSupporting">The receiving object.</param>
<param name="attributedString">To be added.</param>
<param name="textRange">The range in which to paste or drop the string.</param>
<summary>Method that is called to incorporate the pasted data into the application content.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ShouldAnimatePaste">
<MemberSignature Language="C#" Value="public virtual bool ShouldAnimatePaste (UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, Foundation.NSAttributedString attributedString, UIKit.UITextRange textRange);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool ShouldAnimatePaste(class UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, class Foundation.NSAttributedString attributedString, class UIKit.UITextRange textRange) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextPasteDelegate.ShouldAnimatePaste(UIKit.IUITextPasteConfigurationSupporting,Foundation.NSAttributedString,UIKit.UITextRange)" />
<MemberSignature Language="F#" Value="abstract member ShouldAnimatePaste : UIKit.IUITextPasteConfigurationSupporting * Foundation.NSAttributedString * UIKit.UITextRange -> bool
override this.ShouldAnimatePaste : UIKit.IUITextPasteConfigurationSupporting * Foundation.NSAttributedString * UIKit.UITextRange -> bool" Usage="uITextPasteDelegate.ShouldAnimatePaste (textPasteConfigurationSupporting, attributedString, textRange)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("textPasteConfigurationSupporting:shouldAnimatePasteOfAttributedString:toRange:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="textPasteConfigurationSupporting" Type="UIKit.IUITextPasteConfigurationSupporting" />
<Parameter Name="attributedString" Type="Foundation.NSAttributedString" />
<Parameter Name="textRange" Type="UIKit.UITextRange" />
</Parameters>
<Docs>
<param name="textPasteConfigurationSupporting">The receiving object.</param>
<param name="attributedString">The string to paste.</param>
<param name="textRange">The range in which to paste or drop the string.</param>
<summary>Returns a Boolean value that tells the system whether to animate the paste operation.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TransformPasteItem">
<MemberSignature Language="C#" Value="public virtual void TransformPasteItem (UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, UIKit.IUITextPasteItem item);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void TransformPasteItem(class UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, class UIKit.IUITextPasteItem item) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextPasteDelegate.TransformPasteItem(UIKit.IUITextPasteConfigurationSupporting,UIKit.IUITextPasteItem)" />
<MemberSignature Language="F#" Value="abstract member TransformPasteItem : UIKit.IUITextPasteConfigurationSupporting * UIKit.IUITextPasteItem -> unit
override this.TransformPasteItem : UIKit.IUITextPasteConfigurationSupporting * UIKit.IUITextPasteItem -> unit" Usage="uITextPasteDelegate.TransformPasteItem (textPasteConfigurationSupporting, item)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("textPasteConfigurationSupporting:transformPasteItem:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="textPasteConfigurationSupporting" Type="UIKit.IUITextPasteConfigurationSupporting" />
<Parameter Name="item" Type="UIKit.IUITextPasteItem" />
</Parameters>
<Docs>
<param name="textPasteConfigurationSupporting">The receiving object.</param>
<param name="item">The paste item.</param>
<summary>Method that is called to transform the paste item as it is pasted.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>