次の方法で共有


UICollectionViewDelegate_Extensions クラス

定義

プロトコルからUICollectionViewDelegateのすべてのメソッドをIUICollectionViewDelegateサポートする インターフェイスへの拡張メソッド。

public static class UICollectionViewDelegate_Extensions
type UICollectionViewDelegate_Extensions = class
継承
UICollectionViewDelegate_Extensions

注釈

IUICollectionViewDelegate 拡張メソッドを使用すると、開発者はインターフェイスのインスタンスを、元 UICollectionViewDelegate のプロトコルのすべての省略可能なメソッドを持つものとして扱えることができるようになります。 インターフェイスには必要なメンバーのみが含まれるため、これらの拡張メソッドを使用すると、開発者はプロトコルの省略可能なメンバーを呼び出すことができるようになります。

メソッド

CanFocusItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

の項目 indexPath にフォーカスを設定できるかどうか。

CanPerformAction(IUICollectionViewDelegate, UICollectionView, Selector, NSIndexPath, NSObject)

指定した のセルが、指定した indexPath アクションをサポートしているかどうか。

CellDisplayingEnded(IUICollectionViewDelegate, UICollectionView, UICollectionViewCell, NSIndexPath)

指定した indexPath のセルが削除されたことを示します。

DidUpdateFocus(IUICollectionViewDelegate, UICollectionView, UICollectionViewFocusUpdateContext, UIFocusAnimationCoordinator)

の詳細に従ってフォーカスが変更されたことを示します context

GetIndexPathForPreferredFocusedView(IUICollectionViewDelegate, UICollectionView)

オーバーライドされると、開発者は最初にフォーカスを受け取る項目を指定できます。

GetTargetContentOffset(IUICollectionViewDelegate, UICollectionView, CGPoint)

オーバーライドされると、開発者はレイアウトとアニメーションの変更のコンテンツ オフセットを変更できます。

GetTargetIndexPathForMove(IUICollectionViewDelegate, UICollectionView, NSIndexPath, NSIndexPath)

オーバーライドされると、開発者は移動されたアイテムの最終的な場所を変更できます。 (たとえば、特定 proposedIndexPathの への移動を禁止する場合など)。

ItemDeselected(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定した indexPath のセルの選択が解除されたことを示します。

ItemHighlighted(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定した indexPath のセルが強調表示されていることを示します。

ItemSelected(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定した indexPath のセルが選択されていることを示します。

ItemUnhighlighted(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定した indexPath のセルが強調表示されていないことを示します。

PerformAction(IUICollectionViewDelegate, UICollectionView, Selector, NSIndexPath, NSObject)

指定した indexPath のセルが、指定した [コピー] または [貼り付け] アクションをサポートしているかどうか。

ShouldDeselectItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定した indexPath のセルがそれ自体の選択を解除できるようにする必要があるかどうか。

ShouldHighlightItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定した indexPath のセルがそれ自体を強調表示できるようにする必要があるかどうか。

ShouldSelectItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定した indexPath のセルがそれ自体を選択できるかどうかを指定します。

ShouldShowMenu(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定した indexPath のセルに [アクション] メニューが表示されるかどうか。

ShouldSpringLoadItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath, IUISpringLoadedInteractionContext)

指定した項目を指定したコンテキストで読み込む必要があるかどうかを示すために呼び出されるメソッド。

ShouldUpdateFocus(IUICollectionViewDelegate, UICollectionView, UICollectionViewFocusUpdateContext)

オーバーライドされると、開発者は で context指定されたフォーカスの変更を防ぐことができます。

SupplementaryViewDisplayingEnded(IUICollectionViewDelegate, UICollectionView, UICollectionReusableView, NSString, NSIndexPath)

指定した indexPath の補助ビューが削除されたことを示します。

TransitionLayout(IUICollectionViewDelegate, UICollectionView, UICollectionViewLayout, UICollectionViewLayout)

指定した fromLayout から toLayout に移動するときに使用する UICollectionViewTransitionLayout。

WillDisplayCell(IUICollectionViewDelegate, UICollectionView, UICollectionViewCell, NSIndexPath)

cellが表示されようとしています。

WillDisplaySupplementaryView(IUICollectionViewDelegate, UICollectionView, UICollectionReusableView, String, NSIndexPath)

補足 view 情報が表示されようとしています。

適用対象