public List < Item > getDisplayedItems ( ) { final List < Item > result = new ArrayList <> ( ) ; if ( mInternalItemDisplayedList == null ) { return result ; } for ( int i = 0 ; i < mInternalItemDisplayedList . length ; i ++ ) { if ( mInternalItemDisplayedList [ i ] ) { result . add ( getItem ( i ) ) ; } } return result ; }
Get the list of all the items that are currently drawn on the canvas . The obvious use case is a share or export button on a map restricted to what is displayed . The order of the items is kept