Package org.robovm.apple.uikit
Class UICollectionViewModel
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIScrollViewDelegateAdapter
-
- org.robovm.apple.uikit.UICollectionViewModel
-
- All Implemented Interfaces:
NSObjectProtocol
,UICollectionViewDataSource
,UICollectionViewDelegate
,UIScrollViewDelegate
,org.robovm.objc.ObjCProtocol
public class UICollectionViewModel extends UIScrollViewDelegateAdapter implements UICollectionViewDelegate, UICollectionViewDataSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Constructor Description UICollectionViewModel()
-
Method Summary
-
Methods inherited from class org.robovm.apple.uikit.UIScrollViewDelegateAdapter
didEndDecelerating, didEndDragging, didEndScrollingAnimation, didEndZooming, didScroll, didScrollToTop, didZoom, getViewForZooming, scrollViewDidChangeAdjustedContentInset, shouldScrollToTop, willBeginDecelerating, willBeginDragging, willBeginZooming, willEndDragging
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
Methods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Methods inherited from interface org.robovm.apple.uikit.UIScrollViewDelegate
didEndDecelerating, didEndDragging, didEndScrollingAnimation, didEndZooming, didScroll, didScrollToTop, didZoom, getViewForZooming, scrollViewDidChangeAdjustedContentInset, shouldScrollToTop, willBeginDecelerating, willBeginDragging, willBeginZooming, willEndDragging
-
-
-
-
Method Detail
-
shouldHighlightItem
public boolean shouldHighlightItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
shouldHighlightItem
in interfaceUICollectionViewDelegate
-
didHighlightItem
public void didHighlightItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
didHighlightItem
in interfaceUICollectionViewDelegate
-
didUnhighlightItem
public void didUnhighlightItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
didUnhighlightItem
in interfaceUICollectionViewDelegate
-
shouldSelectItem
public boolean shouldSelectItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
shouldSelectItem
in interfaceUICollectionViewDelegate
-
shouldDeselectItem
public boolean shouldDeselectItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
shouldDeselectItem
in interfaceUICollectionViewDelegate
-
didSelectItem
public void didSelectItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
didSelectItem
in interfaceUICollectionViewDelegate
-
didDeselectItem
public void didDeselectItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
didDeselectItem
in interfaceUICollectionViewDelegate
-
willDisplayCell
public void willDisplayCell(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath)
- Specified by:
willDisplayCell
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 8.0 and later.
-
willDisplaySupplementaryView
public void willDisplaySupplementaryView(UICollectionView collectionView, UICollectionReusableView view, java.lang.String elementKind, NSIndexPath indexPath)
- Specified by:
willDisplaySupplementaryView
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 8.0 and later.
-
didEndDisplayingCell
public void didEndDisplayingCell(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath)
- Specified by:
didEndDisplayingCell
in interfaceUICollectionViewDelegate
-
didEndDisplayingSupplementaryView
public void didEndDisplayingSupplementaryView(UICollectionView collectionView, UICollectionReusableView view, java.lang.String elementKind, NSIndexPath indexPath)
- Specified by:
didEndDisplayingSupplementaryView
in interfaceUICollectionViewDelegate
-
shouldShowMenuForItem
public boolean shouldShowMenuForItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
shouldShowMenuForItem
in interfaceUICollectionViewDelegate
-
canPerformAction
public boolean canPerformAction(UICollectionView collectionView, org.robovm.objc.Selector action, NSIndexPath indexPath, NSObject sender)
- Specified by:
canPerformAction
in interfaceUICollectionViewDelegate
-
performAction
public void performAction(UICollectionView collectionView, org.robovm.objc.Selector action, NSIndexPath indexPath, NSObject sender)
- Specified by:
performAction
in interfaceUICollectionViewDelegate
-
getTransitionLayout
public UICollectionViewTransitionLayout getTransitionLayout(UICollectionView collectionView, UICollectionViewLayout fromLayout, UICollectionViewLayout toLayout)
- Specified by:
getTransitionLayout
in interfaceUICollectionViewDelegate
-
canFocusItem
public boolean canFocusItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
canFocusItem
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
shouldUpdateFocus
public boolean shouldUpdateFocus(UICollectionView collectionView, UICollectionViewFocusUpdateContext context)
- Specified by:
shouldUpdateFocus
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
didUpdateFocus
public void didUpdateFocus(UICollectionView collectionView, UICollectionViewFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)
- Specified by:
didUpdateFocus
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
getIndexPathForPreferredFocusedView
public NSIndexPath getIndexPathForPreferredFocusedView(UICollectionView collectionView)
- Specified by:
getIndexPathForPreferredFocusedView
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
getTargetIndexPathForMoveFromItem
public NSIndexPath getTargetIndexPathForMoveFromItem(UICollectionView collectionView, NSIndexPath originalIndexPath, NSIndexPath proposedIndexPath)
- Specified by:
getTargetIndexPathForMoveFromItem
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
getTargetContentOffsetForProposedContentOffset
public CGPoint getTargetContentOffsetForProposedContentOffset(UICollectionView collectionView, CGPoint proposedContentOffset)
- Specified by:
getTargetContentOffsetForProposedContentOffset
in interfaceUICollectionViewDelegate
- Since:
- Available in iOS 9.0 and later.
-
getNumberOfItemsInSection
public long getNumberOfItemsInSection(UICollectionView collectionView, long section)
- Specified by:
getNumberOfItemsInSection
in interfaceUICollectionViewDataSource
-
getCellForItem
public UICollectionViewCell getCellForItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
getCellForItem
in interfaceUICollectionViewDataSource
-
getNumberOfSections
public long getNumberOfSections(UICollectionView collectionView)
- Specified by:
getNumberOfSections
in interfaceUICollectionViewDataSource
-
getViewForSupplementaryElement
public UICollectionReusableView getViewForSupplementaryElement(UICollectionView collectionView, java.lang.String kind, NSIndexPath indexPath)
- Specified by:
getViewForSupplementaryElement
in interfaceUICollectionViewDataSource
-
canMoveItemAt
public boolean canMoveItemAt(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
canMoveItemAt
in interfaceUICollectionViewDataSource
- Since:
- Available in iOS 9.0 and later.
-
moveItemAt
public void moveItemAt(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
- Specified by:
moveItemAt
in interfaceUICollectionViewDataSource
- Since:
- Available in iOS 9.0 and later.
-
indexTitlesForCollectionView
public NSArray<NSString> indexTitlesForCollectionView(UICollectionView collectionView)
- Specified by:
indexTitlesForCollectionView
in interfaceUICollectionViewDataSource
-
indexPathForIndexTitle
public NSIndexPath indexPathForIndexTitle(UICollectionView collectionView, java.lang.String title, long index)
- Specified by:
indexPathForIndexTitle
in interfaceUICollectionViewDataSource
-
shouldSpringLoadItem
public boolean shouldSpringLoadItem(UICollectionView collectionView, NSIndexPath indexPath, UISpringLoadedInteractionContext context)
- Specified by:
shouldSpringLoadItem
in interfaceUICollectionViewDelegate
-
-