Пример #1
0
 public String getErrorDomain() {
   if (has(Keys.ErrorDomain())) {
     NSString val = (NSString) get(Keys.ErrorDomain());
     return val.toString();
   }
   return null;
 }
 /** @since Available in iOS 4.1 and later. */
 public Map<String, NSObject> getMediaMetadata() {
   if (has(Keys.MediaMetadata())) {
     NSDictionary val = (NSDictionary) get(Keys.MediaMetadata());
     return val.asStringMap();
   }
   return null;
 }
 /** @since Available in iOS 3.2 and later. */
 public double getTime() {
   if (has(Keys.Time())) {
     NSNumber val = (NSNumber) get(Keys.Time());
     return val.doubleValue();
   }
   return 0;
 }
 public String getMediaType() {
   if (has(Keys.MediaType())) {
     NSString val = (NSString) get(Keys.MediaType());
     return val.toString();
   }
   return null;
 }
 public NSURL getMediaURL() {
   if (has(Keys.MediaURL())) {
     NSURL val = (NSURL) get(Keys.MediaURL());
     return val;
   }
   return null;
 }
 /** @since Available in iOS 7.0 and later. */
 public AVSampleRateConverterAlgorithm getAlgorithm() {
   if (has(Keys.Algorithm())) {
     NSString val = (NSString) get(Keys.Algorithm());
     return AVSampleRateConverterAlgorithm.valueOf(val);
   }
   return null;
 }
 /** @since Available in iOS 4.0 and later. */
 public NSData getVerbatimSampleDescription() {
   if (has(Keys.VerbatimSampleDescription())) {
     NSData val = get(Keys.VerbatimSampleDescription(), NSData.class);
     return val;
   }
   return null;
 }
 /** @since Available in iOS 4.0 and later. */
 public CMTextFormatDescriptionColor getBackgroundColor() {
   if (has(Keys.BackgroundColor())) {
     CFDictionary val = get(Keys.BackgroundColor(), CFDictionary.class);
     return new CMTextFormatDescriptionColor(val);
   }
   return null;
 }
 /** @since Available in iOS 4.0 and later. */
 public CMTextFormatDescriptionRect getDefaultTextBox() {
   if (has(Keys.DefaultTextBox())) {
     CFDictionary val = get(Keys.DefaultTextBox(), CFDictionary.class);
     return new CMTextFormatDescriptionRect(val);
   }
   return null;
 }
Пример #10
0
 /** @since Available in iOS 4.3 and later. */
 public CGPath getPath() {
   if (has(Keys.Path())) {
     CGPath val = get(Keys.Path(), CGPath.class);
     return val;
   }
   return null;
 }
 /** @since Available in iOS 4.0 and later. */
 public CMTextDisplayFlags getDisplayFlags() {
   if (has(Keys.DisplayFlags())) {
     CFNumber val = get(Keys.DisplayFlags(), CFNumber.class);
     return new CMTextDisplayFlags(val.longValue());
   }
   return null;
 }
Пример #12
0
 /** @since Available in iOS 6.0 and later. */
 public double getMinFeatureSize() {
   if (has(Keys.MinFeatureSize())) {
     NSNumber val = (NSNumber) get(Keys.MinFeatureSize());
     return val.doubleValue();
   }
   return 0;
 }
Пример #13
0
 /** @since Available in iOS 6.0 and later. */
 public boolean isTracking() {
   if (has(Keys.Tracking())) {
     NSNumber val = (NSNumber) get(Keys.Tracking());
     return val.booleanValue();
   }
   return false;
 }
Пример #14
0
 /** @since Available in iOS 5.0 and later. */
 public CIDetectorAccuracy getAccuracy() {
   if (has(Keys.Accuracy())) {
     NSString val = (NSString) get(Keys.Accuracy());
     return CIDetectorAccuracy.valueOf(val);
   }
   return null;
 }
Пример #15
0
 public boolean usesSoftwareRenderer() {
   if (has(Keys.UseSoftwareRenderer())) {
     NSNumber val = (NSNumber) get(Keys.UseSoftwareRenderer());
     return val.booleanValue();
   }
   return false;
 }
 /** @since Available in iOS 4.0 and later. */
 public CMTextFormatDescriptionStyle getDefaultStyle() {
   if (has(Keys.DefaultStyle())) {
     CFDictionary val = get(Keys.DefaultStyle(), CFDictionary.class);
     return new CMTextFormatDescriptionStyle(val);
   }
   return null;
 }
Пример #17
0
 /** @since Available in iOS 8.0 and later. */
 public boolean requestsLowPriority() {
   if (has(Keys.PriorityRequestLow())) {
     NSNumber val = (NSNumber) get(Keys.PriorityRequestLow());
     return val.booleanValue();
   }
   return false;
 }
 /** @since Available in iOS 4.0 and later. */
 public Map<String, String> getFontTable() {
   if (has(Keys.FontTable())) {
     CFDictionary val = get(Keys.FontTable(), CFDictionary.class);
     return val.asStringStringMap();
   }
   return null;
 }
 public AVAudioQuality getAudioQuality() {
   if (has(Keys.AudioQuality())) {
     NSNumber val = (NSNumber) get(Keys.AudioQuality());
     return AVAudioQuality.valueOf(val.longValue());
   }
   return null;
 }
 /** @since Available in iOS 4.0 and later. */
 public CMTextJustification getTextJustification() {
   if (has(Keys.TextJustification())) {
     CFNumber val = get(Keys.TextJustification(), CFNumber.class);
     return CMTextJustification.valueOf(val.longValue());
   }
   return null;
 }
Пример #21
0
 /** @since Available in iOS 4.0 and later. */
 public NSData getVerbatimISOSampleEntry() {
   if (has(Keys.VerbatimISOSampleEntry())) {
     NSData val = get(Keys.VerbatimISOSampleEntry(), NSData.class);
     return val;
   }
   return null;
 }
 /** @since Available in iOS 4.0 and later. */
 public String getDefaultFontName() {
   if (has(Keys.DefaultFontName())) {
     CFString val = get(Keys.DefaultFontName(), CFString.class);
     return val.toString();
   }
   return null;
 }
 public CGRect getCropRect() {
   if (has(Keys.CropRect())) {
     NSValue val = (NSValue) get(Keys.CropRect());
     return val.rectValue();
   }
   return null;
 }
Пример #24
0
 public CGColorSpace getOutputColorSpace() {
   if (has(Keys.OutputColorSpace())) {
     CGColorSpace val = get(Keys.OutputColorSpace()).as(CGColorSpace.class);
     return val;
   }
   return null;
 }
 /** @since Available in iOS 4.1 and later. */
 public NSURL getReferenceURL() {
   if (has(Keys.ReferenceURL())) {
     NSURL val = (NSURL) get(Keys.ReferenceURL());
     return val;
   }
   return null;
 }
Пример #26
0
 public CGColorSpace getWorkingColorSpace() {
   if (has(Keys.WorkingColorSpace())) {
     CGColorSpace val = get(Keys.WorkingColorSpace()).as(CGColorSpace.class);
     return val;
   }
   return null;
 }
Пример #27
0
 /** @since Available in iOS 3.2 and later. */
 public UIImage getImage() {
   if (has(Keys.Image())) {
     UIImage val = (UIImage) get(Keys.Image());
     return val;
   }
   return null;
 }
Пример #28
0
 /** @since Available in iOS 8.0 and later. */
 public CIFormat getWorkingFormat() {
   if (has(Keys.WorkingFormat())) {
     NSNumber val = (NSNumber) get(Keys.WorkingFormat());
     return CIFormat.valueOf(val.intValue());
   }
   return null;
 }
Пример #29
0
 /** @since Available in iOS 3.2 and later. */
 public NSError getError() {
   if (has(Keys.Error())) {
     NSError val = (NSError) get(Keys.Error());
     return val;
   }
   return null;
 }
Пример #30
0
 public NSNetServiceErrorCode getErrorCode() {
   if (has(Keys.ErrorCode())) {
     NSNumber val = (NSNumber) get(Keys.ErrorCode());
     return NSNetServiceErrorCode.valueOf(val.longValue());
   }
   return null;
 }