@MarshalsPointer public static long toNative(List<CVPixelFormatType> l, long flags) { if (l == null) { return 0L; } NSMutableArray<NSNumber> array = new NSMutableArray<>(); for (CVPixelFormatType i : l) { array.add(NSNumber.valueOf(i.value())); } return NSObject.Marshaler.toNative(array, flags); }
/** @since Available in iOS 7.0 and later. */ public SKReceiptRefreshRequestOptions setRevoked(boolean revoked) { data.put(IsRevokedKey(), NSNumber.valueOf(revoked)); return this; }
/** @since Available in iOS 7.0 and later. */ public SKReceiptRefreshRequestOptions setExpired(boolean expired) { data.put(IsExpiredKey(), NSNumber.valueOf(expired)); return this; }
public NSNetServiceErrorUserInfo setErrorCode(NSNetServiceErrorCode errorCode) { set(Keys.ErrorCode(), NSNumber.valueOf(errorCode.value())); return this; }
public NSFileSystemAttributes setSize(long size) { set(NSFileSystemAttribute.Size, NSNumber.valueOf(size)); return this; }
public AVSampleRateConverterSettings setAudioQuality(AVAudioQuality audioQuality) { set(Keys.AudioQuality(), NSNumber.valueOf(audioQuality.value())); return this; }
public CIContextOptions setUsesSoftwareRenderer(boolean usesSoftwareRenderer) { set(Keys.UseSoftwareRenderer(), NSNumber.valueOf(usesSoftwareRenderer)); 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 7.0 and later. */ public AVVideoSettings setAllowsFrameReordering(boolean allowsFrameReordering) { set(Keys.AllowFrameReordering(), NSNumber.valueOf(allowsFrameReordering)); return this; }
/** @since Available in iOS 4.0 and later. */ public AVVideoSettings setHeight(long height) { set(Keys.Height(), NSNumber.valueOf(height)); return this; }
/** @since Available in iOS 4.0 and later. */ public AVVideoSettings setWidth(long width) { set(Keys.Width(), NSNumber.valueOf(width)); return this; }
/** @since Available in iOS 4.0 and later. */ @WeaklyLinked public AVVideoSettings setCodec(CMVideoCodecType codec) { set(Keys.Codec(), NSNumber.valueOf(codec.value())); return this; }
public NSFileSystemAttributes setFreeNodes(long freeNodes) { set(NSFileSystemAttribute.FreeNodes, NSNumber.valueOf(freeNodes)); return this; }
public NSFileSystemAttributes setNodes(long nodes) { set(NSFileSystemAttribute.Nodes, NSNumber.valueOf(nodes)); return this; }
public NSFileSystemAttributes setFreeSize(long freeSize) { set(NSFileSystemAttribute.FreeSize, NSNumber.valueOf(freeSize)); return this; }
/** @since Available in iOS 7.0 and later. */ public SKReceiptRefreshRequestOptions setVolumePurchase(boolean volumePurchase) { data.put(IsVolumePurchaseKey(), NSNumber.valueOf(volumePurchase)); return this; }
/** @since Available in iOS 6.0 and later. */ public CIDetectorOptions setTracking(boolean tracking) { set(Keys.Tracking(), NSNumber.valueOf(tracking)); return this; }
/** @since Available in iOS 7.0 and later. */ public AVVideoSettings setExpectedSourceFrameRate(double expectedSourceFrameRate) { set(Keys.ExpectedSourceFrameRate(), NSNumber.valueOf(expectedSourceFrameRate)); 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 7.0 and later. */ public AVVideoSettings setAverageNonDroppableFrameRate(double averageNonDroppableFrameRate) { set(Keys.AverageNonDroppableFrameRate(), NSNumber.valueOf(averageNonDroppableFrameRate)); return this; }
/** @since Available in iOS 8.0 and later. */ public CIContextOptions setRequestsLowPriority(boolean requestsLowPriority) { set(Keys.PriorityRequestLow(), NSNumber.valueOf(requestsLowPriority)); return this; }
/** @since Available in iOS 2.0 and later. */ public NSStream setCurrentOffset(long offset) { setProperty(NSStreamProperty.FileCurrentOffset, NSNumber.valueOf(offset)); return this; }
/** @since Available in iOS 7.0 and later. */ public CBCentralManagerOptions setShowsPowerAlert(boolean showsPowerAlert) { set(Keys.ShowPowerAlert(), NSNumber.valueOf(showsPowerAlert)); return this; }
public NSFileSystemAttributes setSystemNumber(long systemNumber) { set(NSFileSystemAttribute.Number, NSNumber.valueOf(systemNumber)); return this; }