@Override public void invoke (NSNotification a) { NSDictionary userInfo = a.getUserInfo(); PKPassLibraryNotification data = null; if (userInfo != null) { data = new PKPassLibraryNotification(userInfo); } block.invoke(data); } });
@MarshalsPointer public static long toNative(List<PKPassLibraryNotification> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (PKPassLibraryNotification 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 PKPassLibraryNotification toObject(Class<PKPassLibraryNotification> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new PKPassLibraryNotification(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<PKPassLibraryNotification> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (PKPassLibraryNotification 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; }
/** * @since Available in iOS 6.0 and later. */ @SuppressWarnings("unchecked") public List<PKRemovedPassInfo> getRemovedPassInfos() { if (has(Keys.RemovedPassInfos())) { NSArray<NSDictionary<NSString, NSObject>> val = (NSArray<NSDictionary<NSString, NSObject>>) get(Keys.RemovedPassInfos()); List<PKRemovedPassInfo> list = new ArrayList<>(); for (NSDictionary<NSString, NSObject> v : val) { list.add(new PKRemovedPassInfo(v)); } return list; } return null; }
@Override public void invoke (NSNotification a) { NSDictionary userInfo = a.getUserInfo(); PKPassLibraryNotification data = null; if (userInfo != null) { data = new PKPassLibraryNotification(userInfo); } block.invoke(data); } });
@MarshalsPointer public static long toNative(List<PKPassLibraryNotification> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (PKPassLibraryNotification i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static List<PKPassLibraryNotification> 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<PKPassLibraryNotification> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new PKPassLibraryNotification(o.get(i))); } return list; } @MarshalsPointer
@MarshalsPointer public static PKPassLibraryNotification toObject(Class<PKPassLibraryNotification> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new PKPassLibraryNotification(o); } @MarshalsPointer
@Override public void invoke (NSNotification a) { NSDictionary userInfo = a.getUserInfo(); PKPassLibraryNotification data = null; if (userInfo != null) { data = new PKPassLibraryNotification(userInfo); } block.invoke(data); } });
@Override public void invoke (NSNotification a) { NSDictionary userInfo = a.getUserInfo(); PKPassLibraryNotification data = null; if (userInfo != null) { data = new PKPassLibraryNotification(userInfo); } block.invoke(data); } });