Düzenle

Aracılığıyla paylaş


UITextViewDelegate_Extensions.ShouldInteractWithUrl Method

Definition

Overloads

ShouldInteractWithUrl(IUITextViewDelegate, UITextView, NSUrl, NSRange)

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

ShouldInteractWithUrl(IUITextViewDelegate, UITextView, NSUrl, NSRange, UITextItemInteraction)

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

ShouldInteractWithUrl(IUITextViewDelegate, UITextView, NSUrl, NSRange)

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

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

Parameters

This
IUITextViewDelegate

The instance on which this extension method operates.

textView
UITextView
URL
NSUrl
characterRange
NSRange

Returns

Attributes

Applies to

ShouldInteractWithUrl(IUITextViewDelegate, UITextView, NSUrl, 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 ShouldInteractWithUrl (this UIKit.IUITextViewDelegate This, UIKit.UITextView textView, Foundation.NSUrl url, Foundation.NSRange characterRange, UIKit.UITextItemInteraction interaction);
static member ShouldInteractWithUrl : UIKit.IUITextViewDelegate * UIKit.UITextView * Foundation.NSUrl * 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.

url
NSUrl
characterRange
NSRange

The character range of the URL in the text view.

interaction
UITextItemInteraction

The interaction type to check.

Returns

Attributes

Applies to