UITextViewDelegate_Extensions.ShouldInteractWithTextAttachment UITextViewDelegate_Extensions.ShouldInteractWithTextAttachment Method

Definition

Overloads

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange) 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) 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) 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 IUITextViewDelegate

The instance on which this extension method operates.

characterRange
NSRange NSRange

Returns

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange, UITextItemInteraction) 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 IUITextViewDelegate

The instance on which this extension method operates.

textView
UITextView UITextView

The text view that has the attachment.

textAttachment
NSTextAttachment NSTextAttachment

The attachment.

characterRange
NSRange NSRange

The character range where the attachment is attached.

interaction
UITextItemInteraction UITextItemInteraction

The interaction type to check.

Returns

Applies to