Beispiel #1
0
 public ABSource setType(ABSourceType type) throws NSErrorException {
   if (type == null) {
     setValue(ABSourceProperty.Type, null);
   } else {
     setValue(ABSourceProperty.Type, CFNumber.valueOf((int) type.value()));
   }
   return this;
 }
 /** @since Available in iOS 4.0 and later. */
 public CMTextFormatDescriptionExtension setTextJustification(
     CMTextJustification textJustification) {
   set(Keys.TextJustification(), CFNumber.valueOf(textJustification.value()));
   return this;
 }
 /** @since Available in iOS 4.0 and later. */
 public CMTextFormatDescriptionExtension setHorizontalJustification(
     CMTextJustification horizontalJustification) {
   set(Keys.HorizontalJustification(), CFNumber.valueOf(horizontalJustification.value()));
   return this;
 }
 /** @since Available in iOS 4.0 and later. */
 public CMTextFormatDescriptionExtension setDisplayFlags(CMTextDisplayFlags displayFlags) {
   set(Keys.DisplayFlags(), CFNumber.valueOf(displayFlags.value()));
   return this;
 }
 /** @since Available in iOS 4.0 and later. */
 public CVImageBufferAttributes setGammaLevel(double gammaLevel) {
   set(CVImageBufferAttribute.GammaLevel, CFNumber.valueOf(gammaLevel));
   return this;
 }
 /** @since Available in iOS 4.0 and later. */
 public CVImageBufferAttributes setFieldCount(int fieldCount) {
   set(CVImageBufferAttribute.FieldCount, CFNumber.valueOf(fieldCount));
   return this;
 }
 /** @since Available in iOS 7.0 and later. */
 public CGImageDestinationCopySourceOptions setOrientation(
     CGImagePropertyOrientation orientation) {
   set(Keys.DestinationOrientation(), CFNumber.valueOf(orientation.value()));
   return this;
 }