Bearbeiten

Freigeben über


UITextViewDelegate.ShouldInteractWithUrl Method

Definition

Overloads

ShouldInteractWithUrl(UITextView, NSUrl, NSRange)

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

ShouldInteractWithUrl(UITextView, NSUrl, NSRange, UITextItemInteraction)

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

ShouldInteractWithUrl(UITextView, NSUrl, NSRange)

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

[Foundation.Export("textView:shouldInteractWithURL:inRange:")]
[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 virtual bool ShouldInteractWithUrl (UIKit.UITextView textView, Foundation.NSUrl URL, Foundation.NSRange characterRange);
abstract member ShouldInteractWithUrl : UIKit.UITextView * Foundation.NSUrl * Foundation.NSRange -> bool
override this.ShouldInteractWithUrl : UIKit.UITextView * Foundation.NSUrl * Foundation.NSRange -> bool

Parameters

textView
UITextView
URL
NSUrl
characterRange
NSRange

Returns

Attributes

Applies to

ShouldInteractWithUrl(UITextView, NSUrl, NSRange, UITextItemInteraction)

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

[Foundation.Export("textView:shouldInteractWithURL:inRange:interaction:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldInteractWithUrl (UIKit.UITextView textView, Foundation.NSUrl url, Foundation.NSRange characterRange, UIKit.UITextItemInteraction interaction);
abstract member ShouldInteractWithUrl : UIKit.UITextView * Foundation.NSUrl * Foundation.NSRange * UIKit.UITextItemInteraction -> bool
override this.ShouldInteractWithUrl : UIKit.UITextView * Foundation.NSUrl * Foundation.NSRange * UIKit.UITextItemInteraction -> bool

Parameters

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