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


UITextViewDelegate_Extensions.ShouldInteractWithTextAttachment Метод

Определение

Перегрузки

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange)

Разработчики не должны использовать этот нерекомендуемый метод. Разработчикам следует использовать перегрузку ShouldInteractWithTextAttachment, которая принимает uiTextItemInteraction.

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange, UITextItemInteraction)

Должен ли указанный элемент UITextView разрешать пользователю взаимодействие с указанным URL-адресом в заданном диапазоне текста.

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange)

Разработчики не должны использовать этот нерекомендуемый метод. Разработчикам следует использовать перегрузку ShouldInteractWithTextAttachment, которая принимает uiTextItemInteraction.

[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

Параметры

This
IUITextViewDelegate

Экземпляр, с которым работает этот метод расширения.

textView
UITextView
textAttachment
NSTextAttachment
characterRange
NSRange

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

Атрибуты

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

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange, UITextItemInteraction)

Должен ли указанный элемент UITextView разрешать пользователю взаимодействие с указанным URL-адресом в заданном диапазоне текста.

[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

Параметры

This
IUITextViewDelegate

Экземпляр, с которым работает этот метод расширения.

textView
UITextView

Текстовое представление с вложением.

textAttachment
NSTextAttachment

Вложение.

characterRange
NSRange

Диапазон символов, к которому прикреплено вложение.

interaction
UITextItemInteraction

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

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

Атрибуты

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