UICollectionViewSource.ShouldUpdateFocus 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在失去或接收焦點的 collectionView
儲存格之前呼叫。 如果任一個焦點環境傳 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);
abstract member ShouldUpdateFocus : UIKit.UICollectionView * UIKit.UICollectionViewFocusUpdateContext -> bool
override this.ShouldUpdateFocus : UIKit.UICollectionView * UIKit.UICollectionViewFocusUpdateContext -> bool
參數
- collectionView
- UICollectionView
產生要求的集合檢視。
傳回
- 屬性