Bewerken

Delen via


UITextViewDelegate_Extensions.ShouldInteractWithTextAttachment Method

Definition

Overloads

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange)

Developers should not use this deprecated method. Developers should use the 'ShouldInteractWithTextAttachment' overload that takes 'UITextItemInteraction' instead.

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange, UITextItemInteraction)

Whether the specified UITextView should allow user interaction with the specified URL in the given range of text.

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange)

Developers should not use this deprecated method. Developers should use the 'ShouldInteractWithTextAttachment' overload that takes 'UITextItemInteraction' instead.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use the 'ShouldInteractWithTextAttachment' overload that takes 'UITextItemInteraction' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool ShouldInteractWithTextAttachment (this UIKit.IUITextViewDelegate This, UIKit.UITextView textView, UIKit.NSTextAttachment textAttachment, Foundation.NSRange characterRange);
static member ShouldInteractWithTextAttachment : UIKit.IUITextViewDelegate * UIKit.UITextView * UIKit.NSTextAttachment * Foundation.NSRange -> bool

Parameters

This
IUITextViewDelegate

The instance on which this extension method operates.

textView
UITextView
textAttachment
NSTextAttachment
characterRange
NSRange

Returns

Attributes

Applies to

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange, UITextItemInteraction)

Whether the specified UITextView should allow user interaction with the specified URL in the given range of text.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool ShouldInteractWithTextAttachment (this UIKit.IUITextViewDelegate This, UIKit.UITextView textView, UIKit.NSTextAttachment textAttachment, Foundation.NSRange characterRange, UIKit.UITextItemInteraction interaction);
static member ShouldInteractWithTextAttachment : UIKit.IUITextViewDelegate * UIKit.UITextView * UIKit.NSTextAttachment * Foundation.NSRange * UIKit.UITextItemInteraction -> bool

Parameters

This
IUITextViewDelegate

The instance on which this extension method operates.

textView
UITextView

The text view that has the attachment.

textAttachment
NSTextAttachment

The attachment.

characterRange
NSRange

The character range where the attachment is attached.

interaction
UITextItemInteraction

The interaction type to check.

Returns

Attributes

Applies to