Поделиться через


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

Проверяемая тип взаимодействия.

Возвращаемое значение

Атрибуты

Применяется к