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