/** @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; }
/** @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; }
public boolean usesSoftwareRenderer() { if (has(Keys.UseSoftwareRenderer())) { NSNumber val = (NSNumber) get(Keys.UseSoftwareRenderer()); return val.booleanValue(); } return false; }
/** @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; }
/** @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; }
/** @since Available in iOS 8.0 and later. */ public CIContextOptions setRequestsLowPriority(boolean requestsLowPriority) { set(Keys.PriorityRequestLow(), NSNumber.valueOf(requestsLowPriority)); return this; }
public CIContextOptions setUsesSoftwareRenderer(boolean usesSoftwareRenderer) { set(Keys.UseSoftwareRenderer(), NSNumber.valueOf(usesSoftwareRenderer)); return this; }
/** @since Available in iOS 8.0 and later. */ public CIContextOptions setWorkingFormat(CIFormat workingFormat) { set(Keys.WorkingFormat(), NSNumber.valueOf(workingFormat.value())); return this; }
/** @since Available in iOS 6.0 and later. */ public CIDetectorOptions setMinFeatureSize(double minFeatureSize) { set(Keys.MinFeatureSize(), NSNumber.valueOf(minFeatureSize)); return this; }
/** @since Available in iOS 6.0 and later. */ public CIDetectorOptions setTracking(boolean tracking) { set(Keys.Tracking(), NSNumber.valueOf(tracking)); return this; }