public static NSObject observeDidChange(final VoidBlock1<PKPassLibraryNotification> block) { return NSNotificationCenter.getDefaultCenter().addObserver(DidChangeNotification(), null, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke (NSNotification a) { NSDictionary userInfo = a.getUserInfo(); PKPassLibraryNotification data = null; if (userInfo != null) { data = new PKPassLibraryNotification(userInfo); } block.invoke(data); } }); } public static NSObject observeRemotePaymentPassesDidChange(final VoidBlock1<PKPassLibraryNotification> block) {
public static NSObject observeRemotePaymentPassesDidChange(final VoidBlock1<PKPassLibraryNotification> block) { return NSNotificationCenter.getDefaultCenter().addObserver(RemotePaymentPassesDidChangeNotification(), null, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke (NSNotification a) { NSDictionary userInfo = a.getUserInfo(); PKPassLibraryNotification data = null; if (userInfo != null) { data = new PKPassLibraryNotification(userInfo); } block.invoke(data); } }); } }
public static NSObject observeDidChange(final VoidBlock1<PKPassLibraryNotification> block) { return NSNotificationCenter.getDefaultCenter().addObserver(DidChangeNotification(), null, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke (NSNotification a) { NSDictionary userInfo = a.getUserInfo(); PKPassLibraryNotification data = null; if (userInfo != null) { data = new PKPassLibraryNotification(userInfo); } block.invoke(data); } }); } public static NSObject observeRemotePaymentPassesDidChange(final VoidBlock1<PKPassLibraryNotification> block) {
public static NSObject observeRemotePaymentPassesDidChange(final VoidBlock1<PKPassLibraryNotification> block) { return NSNotificationCenter.getDefaultCenter().addObserver(RemotePaymentPassesDidChangeNotification(), null, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke (NSNotification a) { NSDictionary userInfo = a.getUserInfo(); PKPassLibraryNotification data = null; if (userInfo != null) { data = new PKPassLibraryNotification(userInfo); } block.invoke(data); } }); } }
public static NSObject observeDidChange(final VoidBlock1<PKPassLibraryNotification> block) { return NSNotificationCenter.getDefaultCenter().addObserver(DidChangeNotification(), null, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke (NSNotification a) { NSDictionary userInfo = a.getUserInfo(); PKPassLibraryNotification data = null; if (userInfo != null) { data = new PKPassLibraryNotification(userInfo); } block.invoke(data); } }); } public static NSObject observeRemotePaymentPassesDidChange(final VoidBlock1<PKPassLibraryNotification> block) {
public static NSObject observeRemotePaymentPassesDidChange(final VoidBlock1<PKPassLibraryNotification> block) { return NSNotificationCenter.getDefaultCenter().addObserver(RemotePaymentPassesDidChangeNotification(), null, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke (NSNotification a) { NSDictionary userInfo = a.getUserInfo(); PKPassLibraryNotification data = null; if (userInfo != null) { data = new PKPassLibraryNotification(userInfo); } block.invoke(data); } }); } }