/** @since Available in iOS 4.0 and later. */
 public int getFieldCount() {
   if (has(CVImageBufferAttribute.FieldCount)) {
     CFNumber val = get(CVImageBufferAttribute.FieldCount, CFNumber.class);
     return val.intValue();
   }
   return 0;
 }
Exemple #2
0
 public ABSourceType getType() {
   CFNumber val = getValue(ABSourceProperty.Type, CFNumber.class);
   if (val != null) return new ABSourceType(val.intValue());
   return null;
 }