/** * @since Available in iOS 8.0 and later. */ public HKMetadata setCoachedWorkout(boolean coachedWorkout) { put(HKMetadataKey.CoachedWorkout, NSNumber.valueOf(coachedWorkout)); return this; } /*<methods>*/
public MPNowPlayingInfo setPersistentID(long id) { set(MPMediaItemProperty.ItemPersistentID, NSNumber.valueOf(id)); return this; } public String getTitle() {
public MPNowPlayingInfo setAlbumTrackNumber(int albumTrackNumber) { set(MPMediaItemProperty.AlbumTrackNumber, NSNumber.valueOf(albumTrackNumber)); return this; } public int getAlbumTrackCount() {
public MPNowPlayingInfo setDiscCount(int discCount) { set(MPMediaItemProperty.DiscCount, NSNumber.valueOf(discCount)); return this; } public MPMediaItemArtwork getArtwork() {
/** * @since Available in iOS 8.0 and later. */ public NSURLProperties setPackage(boolean isPackage) { put(NSURLFileSystemProperty.IsPackage, NSNumber.valueOf(isPackage)); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public NSProgressUserInfo setTotalFileCount(long totalFileCount) { set(NSProgressUserInfoKey.FileTotalCount, NSNumber.valueOf(totalFileCount)); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public GLKTextureLoaderOptions setSRGB(boolean sRGB) { set(Keys.SRGB(), NSNumber.valueOf(sRGB)); return this; } /*</methods>*/
public SCNHitTestOptions setReturnsFirstFoundOnly(boolean returnsFirstFoundOnly) { set(Keys.FirstFoundOnly(), NSNumber.valueOf(returnsFirstFoundOnly)); return this; } public boolean sortsResults() {
public CIContextOptions setUsesSoftwareRenderer(boolean usesSoftwareRenderer) { set(Keys.UseSoftwareRenderer(), NSNumber.valueOf(usesSoftwareRenderer)); return this; } /**
/** * @since Available in iOS 8.0 and later. */ public CIContextOptions setRequestsLowPriority(boolean requestsLowPriority) { set(Keys.PriorityRequestLow(), NSNumber.valueOf(requestsLowPriority)); return this; } /*</methods>*/
/** * @since Available in iOS 5.0 and later. */ public MPNowPlayingInfo setPlaybackQueueIndex(int playbackQueueIndex) { set(Keys.PlaybackQueueIndex(), NSNumber.valueOf(playbackQueueIndex)); return this; } /**
/** * @since Available in iOS 5.0 and later. */ public MPNowPlayingInfo setChapterCount(int chapterCount) { set(Keys.ChapterCount(), NSNumber.valueOf(chapterCount)); return this; } /*</methods>*/
/** * @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 9.0 and later. */ public MTKTextureLoaderOptions setAllocatesMipmaps(boolean allocatesMipmaps) { set(Keys.AllocateMipmaps(), NSNumber.valueOf(allocatesMipmaps)); return this; } /**
/** * @since Available in iOS 9.0 and later. */ public MTKTextureLoaderOptions setSRGB(boolean sRGB) { set(Keys.SRGB(), NSNumber.valueOf(sRGB)); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public UIFontDescriptorTraits setWidthTrait(double widthTrait) { set(Keys.WidthTrait(), NSNumber.valueOf(widthTrait)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoCompressionSettings setMaxKeyFrameInterval(double maxKeyFrameInterval) { set(Keys.MaxKeyFrameInterval(), NSNumber.valueOf(maxKeyFrameInterval)); return this; } /**
public void setLocations(double... locations) { if (locations != null && locations.length > 0) { NSArray<NSNumber> loc = new NSMutableArray<>(); for (double l : locations) { loc.add(NSNumber.valueOf(l)); } setLocations(loc); } } /*<properties>*/
/** * @since Available in iOS 9.0 and later. */ public MTKTextureLoaderOptions setTextureUsage(MTLTextureUsage textureUsage) { set(Keys.TextureUsage(), NSNumber.valueOf(textureUsage.value())); return this; } /**
@MarshalsPointer public static long toNative(List<Integer> l, long flags) { if (l == null) { return 0L; } NSArray<NSNumber> array = new NSMutableArray<>(); for (Integer i : l) { array.add(NSNumber.valueOf(i)); } return NSObject.Marshaler.toNative(array, flags); } }