public NSTextTabOptions set(NSString key, NSObject value) { data.put(key, value); return this; } /*</methods>*/
public NSAttributedStringDocumentAttributes set(String key, NSObject value) { data.put(new NSString(key), value); return this; } /*<methods>*/
public NSProgressUserInfo set(String key, NSObject value) { data.put(new NSString(key), value); return this; } /*<methods>*/
public V setValue(V v) { if (value != map.get(key)) { throw new ConcurrentModificationException(); } return map.put(key, v); }
public NSAttributedStringAttributes set(String key, NSObject value) { data.put(new NSString(key), value); return this; } /*<methods>*/
public NSURLProperties put(NSURLFileProperty property, NSObject value) { data.put(property.value(), value); return this; } public NSURLProperties put(NSURLVolumeProperty property, NSObject value) {
public NSURLProperties put(NSURLFileSystemProperty property, NSObject value) { data.put(property.value(), value); return this; } public NSURLProperties put(NSURLFileProperty property, NSObject value) {
public UIMotionEffectViewerOffsetValues put(String keypath, NSObject value) { data.put(new NSString(keypath), value); return this; } public UIMotionEffectViewerOffsetValues put(String keypath, CGPoint value) {
public NSURLProperties put(NSURLVolumeProperty property, NSObject value) { data.put(property.value(), value); return this; } public NSURLProperties put(NSURLUbiquitousItemProperty property, NSObject value) {
public UIMotionEffectViewerOffsetValues put(String keypath, UIEdgeInsets value) { data.put(new NSString(keypath), NSValue.valueOf(value)); return this; } public UIMotionEffectViewerOffsetValues put(String keypath, UIOffset value) {
public UIMotionEffectViewerOffsetValues put(String keypath, UIOffset value) { data.put(new NSString(keypath), NSValue.valueOf(value)); return this; } public NSObject get(String keypath) {
public UIMotionEffectViewerOffsetValues put(String keypath, CGPoint value) { data.put(new NSString(keypath), NSValue.valueOf(value)); return this; } public UIMotionEffectViewerOffsetValues put(String keypath, CGSize value) {
public UIMotionEffectViewerOffsetValues put(String keypath, CGSize value) { data.put(new NSString(keypath), NSValue.valueOf(value)); return this; } public UIMotionEffectViewerOffsetValues put(String keypath, CGRect value) {
public UIMotionEffectViewerOffsetValues put(String keypath, CGRect value) { data.put(new NSString(keypath), NSValue.valueOf(value)); return this; } public UIMotionEffectViewerOffsetValues put(String keypath, CGAffineTransform value) {
@MarshalsPointer public static long toNative(Map<SCNParticleProperty, SCNParticlePropertyController> o, long flags) { if (o == null) { return 0L; } NSDictionary<NSString, SCNParticlePropertyController> dict = new NSMutableDictionary<>(); for (Map.Entry<SCNParticleProperty, SCNParticlePropertyController> e : o.entrySet()) { dict.put(e.getKey().value(), e.getValue()); } return NSObject.Marshaler.toNative(dict, flags); } }
@MarshalsPointer public static long toNative(Map<SCNShaderModifierEntryPoint, String> o, long flags) { if (o == null) { return 0L; } NSDictionary<NSString, NSString> dict = new NSMutableDictionary<>(); for (Map.Entry<SCNShaderModifierEntryPoint, String> e : o.entrySet()) { dict.put(e.getKey().value(), new NSString(e.getValue())); } return NSObject.Marshaler.toNative(dict, flags); } }
@MarshalsPointer public static long toNative(Map<SCNRenderingTransform, CATransform3D> o, long flags) { if (o == null) { return 0L; } NSDictionary<NSString, NSValue> dict = new NSMutableDictionary<>(); for (Map.Entry<SCNRenderingTransform, CATransform3D> e : o.entrySet()) { dict.put(e.getKey().value(), NSValue.valueOf(e.getValue())); } return NSObject.Marshaler.toNative(dict, flags); } }
@MarshalsPointer public static long toNative(Map<String, String> l, long flags) { if (l == null) { return 0L; } NSDictionary<NSString, NSString> o = new NSMutableDictionary<>(); for (Map.Entry<String, String> e : l.entrySet()) { o.put(new NSString(e.getKey()), new NSString(e.getValue())); } return NSObject.Marshaler.toNative(o, flags); } }
/** * @since Available in iOS 4.0 and later. */ public AVPixelBufferAttributes setPixelAspectRatio(AVPixelAspectRatio pixelAspectRatio) { NSDictionary<NSString, NSObject> val = new NSMutableDictionary<>(); val.put(AVPixelAspectRatio.HorizontalSpacing(), pixelAspectRatio.getHorizontalSpacing()); val.put(AVPixelAspectRatio.VerticalSpacing(), pixelAspectRatio.getVerticalSpacing()); data.put(AVVideoSettings.Keys.PixelAspectRatio(), val); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setPixelAspectRatio(AVPixelAspectRatio pixelAspectRatio) { NSDictionary<NSString, NSObject> val = new NSMutableDictionary<>(); val.put(AVPixelAspectRatio.HorizontalSpacing(), pixelAspectRatio.getHorizontalSpacing()); val.put(AVPixelAspectRatio.VerticalSpacing(), pixelAspectRatio.getVerticalSpacing()); set(Keys.PixelAspectRatio(), val); return this; }