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


UICollectionViewController.ShouldUpdateFocus Метод

Определение

Вызывается this до потери или получения фокуса. Если возвращается falseлюбая из сред фокуса , обновление фокуса отменяется.

[Foundation.Export("collectionView:shouldUpdateFocusInContext:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldUpdateFocus (UIKit.UICollectionView collectionView, UIKit.UICollectionViewFocusUpdateContext context);
override this.ShouldUpdateFocus : UIKit.UICollectionView * UIKit.UICollectionViewFocusUpdateContext -> bool

Параметры

collectionView
UICollectionView

Представление коллекции, из которого был создан запрос.

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

Атрибуты

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