Ejemplo n.º 1
0
 public String getErrorDomain() {
   if (has(Keys.ErrorDomain())) {
     NSString val = (NSString) get(Keys.ErrorDomain());
     return val.toString();
   }
   return null;
 }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 3
0
 public NSNetServiceErrorCode getErrorCode() {
   if (has(Keys.ErrorCode())) {
     NSNumber val = (NSNumber) get(Keys.ErrorCode());
     return NSNetServiceErrorCode.valueOf(val.longValue());
   }
   return null;
 }
Ejemplo n.º 4
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;
 }
Ejemplo n.º 5
0
 public CGColorSpace getWorkingColorSpace() {
   if (has(Keys.WorkingColorSpace())) {
     CGColorSpace val = get(Keys.WorkingColorSpace()).as(CGColorSpace.class);
     return val;
   }
   return null;
 }
Ejemplo n.º 6
0
 public CGColorSpace getOutputColorSpace() {
   if (has(Keys.OutputColorSpace())) {
     CGColorSpace val = get(Keys.OutputColorSpace()).as(CGColorSpace.class);
     return val;
   }
   return null;
 }
Ejemplo n.º 7
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;
 }
Ejemplo n.º 8
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;
 }
Ejemplo n.º 9
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;
 }
Ejemplo n.º 10
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;
 }
Ejemplo n.º 11
0
 public boolean usesSoftwareRenderer() {
   if (has(Keys.UseSoftwareRenderer())) {
     NSNumber val = (NSNumber) get(Keys.UseSoftwareRenderer());
     return val.booleanValue();
   }
   return false;
 }
Ejemplo n.º 12
0
 /** @since Available in iOS 8.0 and later. */
 public CIContextOptions setWorkingFormat(CIFormat workingFormat) {
   set(Keys.WorkingFormat(), NSNumber.valueOf(workingFormat.value()));
   return this;
 }
Ejemplo n.º 13
0
 public CIContextOptions setWorkingColorSpace(CGColorSpace workingColorSpace) {
   set(Keys.WorkingColorSpace(), workingColorSpace.as(NSObject.class));
   return this;
 }
Ejemplo n.º 14
0
 public CIContextOptions setOutputColorSpace(CGColorSpace outputColorSpace) {
   set(Keys.OutputColorSpace(), outputColorSpace.as(NSObject.class));
   return this;
 }
Ejemplo n.º 15
0
 /** @since Available in iOS 6.0 and later. */
 public CIDetectorOptions setMinFeatureSize(double minFeatureSize) {
   set(Keys.MinFeatureSize(), NSNumber.valueOf(minFeatureSize));
   return this;
 }
Ejemplo n.º 16
0
 /** @since Available in iOS 6.0 and later. */
 public CIDetectorOptions setTracking(boolean tracking) {
   set(Keys.Tracking(), NSNumber.valueOf(tracking));
   return this;
 }
Ejemplo n.º 17
0
 /** @since Available in iOS 5.0 and later. */
 public CIDetectorOptions setAccuracy(CIDetectorAccuracy accuracy) {
   set(Keys.Accuracy(), accuracy.value());
   return this;
 }
Ejemplo n.º 18
0
 public NSNetServiceErrorUserInfo setErrorCode(NSNetServiceErrorCode errorCode) {
   set(Keys.ErrorCode(), NSNumber.valueOf(errorCode.value()));
   return this;
 }
Ejemplo n.º 19
0
 public CIContextOptions setUsesSoftwareRenderer(boolean usesSoftwareRenderer) {
   set(Keys.UseSoftwareRenderer(), NSNumber.valueOf(usesSoftwareRenderer));
   return this;
 }
Ejemplo n.º 20
0
 public NSNetServiceErrorUserInfo setErrorDomain(String errorDomain) {
   set(Keys.ErrorDomain(), new NSString(errorDomain));
   return this;
 }
Ejemplo n.º 21
0
 /** @since Available in iOS 8.0 and later. */
 public CIContextOptions setRequestsLowPriority(boolean requestsLowPriority) {
   set(Keys.PriorityRequestLow(), NSNumber.valueOf(requestsLowPriority));
   return this;
 }
Ejemplo n.º 22
0
 /** @since Available in iOS 4.3 and later. */
 public CTFrameClippingPath setPath(CGPath path) {
   set(Keys.Path(), path);
   return this;
 }