public List < String > deviceTypes ( ) { Integer count = json ( ) . size ( DEVICE_FAMILIES ) ; List < String > deviceTypes = new ArrayList < String > ( count ) ; for ( int i = 0 ; i < count ; i ++ ) { String familyNumber = json ( ) . stringValue ( DEVICE_FAMILIES , i ) ; if ( familyNumber . equals ( "1" ) ) deviceTypes . add ( "iPhone" ) ; if ( familyNumber . equals ( "2" ) ) deviceTypes . add ( "iPad" ) ; } return deviceTypes ; }
The list of device types on which this application can run .