@MarshalsPointer public static NSPersistentStoreCoordinatorChangeNotification toObject(Class<NSPersistentStoreCoordinatorChangeNotification> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSPersistentStoreCoordinatorChangeNotification(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<NSPersistentStoreCoordinatorChangeNotification> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSPersistentStoreCoordinatorChangeNotification i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; }
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; }
@MarshalsPointer public static List<NSPersistentStoreCoordinatorChangeNotification> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<NSPersistentStoreCoordinatorChangeNotification> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new NSPersistentStoreCoordinatorChangeNotification(o.get(i))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<NSPersistentStoreCoordinatorChangeNotification> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSPersistentStoreCoordinatorChangeNotification i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; }
@Override public void invoke(NSNotification a) { NSDictionary<?, ?> userInfo = a.getUserInfo(); NSPersistentStoreCoordinatorChangeNotification data = null; if (userInfo != null) { data = new NSPersistentStoreCoordinatorChangeNotification(userInfo); } block.invoke((NSPersistentStoreCoordinator)a.getObject(), data); } });
@MarshalsPointer public static long toNative(List<NSPersistentStoreCoordinatorChangeNotification> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSPersistentStoreCoordinatorChangeNotification i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 7.0 and later. */ public NSPersistentStoreUbiquitousTransitionType getUbiquitousTransitionType() { if (has(Keys.UbiquitousTransitionType())) { NSNumber val = (NSNumber) get(Keys.UbiquitousTransitionType()); return NSPersistentStoreUbiquitousTransitionType.valueOf(val.longValue()); } return null; } /*</methods>*/
@Override public void invoke(NSNotification a) { NSDictionary<?, ?> userInfo = a.getUserInfo(); NSPersistentStoreCoordinatorChangeNotification data = null; if (userInfo != null) { data = new NSPersistentStoreCoordinatorChangeNotification(userInfo); } block.invoke((NSPersistentStoreCoordinator)a.getObject(), data); } });
@MarshalsPointer public static NSPersistentStoreCoordinatorChangeNotification toObject(Class<NSPersistentStoreCoordinatorChangeNotification> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSPersistentStoreCoordinatorChangeNotification(o); } @MarshalsPointer
@MarshalsPointer public static NSPersistentStoreCoordinatorChangeNotification toObject(Class<NSPersistentStoreCoordinatorChangeNotification> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSPersistentStoreCoordinatorChangeNotification(o); } @MarshalsPointer
@MarshalsPointer public static List<NSPersistentStoreCoordinatorChangeNotification> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<NSPersistentStoreCoordinatorChangeNotification> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new NSPersistentStoreCoordinatorChangeNotification(o.get(i))); } return list; } @MarshalsPointer