共用方式為


UITextViewDelegate_Extensions.ShouldInteractWithUrl 方法

定義

多載

ShouldInteractWithUrl(IUITextViewDelegate, UITextView, NSUrl, NSRange)

指定的 UITextView 是否應該允許使用者與指定文字範圍內的指定 URL 互動。

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

指定的 UITextView 是否應該允許使用者與指定文字範圍內的指定 URL 互動。

ShouldInteractWithUrl(IUITextViewDelegate, UITextView, NSUrl, NSRange)

指定的 UITextView 是否應該允許使用者與指定文字範圍內的指定 URL 互動。

[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

參數

This
IUITextViewDelegate

這個擴充方法運作所在的實例。

textView
UITextView
URL
NSUrl
characterRange
NSRange

傳回

屬性

適用於

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

指定的 UITextView 是否應該允許使用者與指定文字範圍內的指定 URL 互動。

[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

參數

This
IUITextViewDelegate

這個擴充方法運作所在的實例。

textView
UITextView

具有附件的文字檢視。

url
NSUrl
characterRange
NSRange

文字檢視中 URL 的字元範圍。

interaction
UITextItemInteraction

要檢查的互動類型。

傳回

屬性

適用於