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


UITextViewDelegate.ShouldInteractWithTextAttachment Метод

Определение

Перегрузки

ShouldInteractWithTextAttachment(UITextView, NSTextAttachment, NSRange)

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

ShouldInteractWithTextAttachment(UITextView, NSTextAttachment, NSRange, UITextItemInteraction)

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

ShouldInteractWithTextAttachment(UITextView, NSTextAttachment, NSRange)

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

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

Параметры

textView
UITextView
textAttachment
NSTextAttachment
characterRange
NSRange

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

Атрибуты

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

ShouldInteractWithTextAttachment(UITextView, NSTextAttachment, NSRange, UITextItemInteraction)

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

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

Параметры

textView
UITextView

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

textAttachment
NSTextAttachment

Вложение.

characterRange
NSRange

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

interaction
UITextItemInteraction

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

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

Атрибуты

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