public void postNotification(String name, NSObject object) { postNotification(new NSString(name), object); } public void postNotification(String name, NSObject object, NSDictionary<?, ?> userInfo) {
public void postNotification(NSString name, NSObject object, UILocalNotification userInfo) { postNotification(name, object, userInfo.getUserInfo()); } public void postNotification(String name, NSObject object, UILocalNotification userInfo) {
public void postNotification(NSString name, NSObject object, UIRemoteNotification userInfo) { postNotification(name, object, userInfo.getDictionary()); } public void postNotification(String name, NSObject object, UIRemoteNotification userInfo) {
public void postNotification(String name, NSObject object, NSDictionary<?, ?> userInfo) { postNotification(new NSString(name), object, userInfo); } public void postNotification(NSString name, NSObject object, UIRemoteNotification userInfo) {
public void postNotification(String name, NSObject object, UILocalNotification userInfo) { postNotification(new NSString(name), object, userInfo.getUserInfo()); } public void removeObserver(NSObject observer, String name, NSObject object) {
public void postNotification(String name, NSObject object, UIRemoteNotification userInfo) { postNotification(new NSString(name), object, userInfo.getDictionary()); } public void postNotification(NSString name, NSObject object, UILocalNotification userInfo) {
public void postNotification(String name, NSObject object) { postNotification(new NSString(name), object); } public void postNotification(String name, NSObject object, NSDictionary<?, ?> userInfo) {
public void postNotification(NSString name, NSObject object, UILocalNotification userInfo) { postNotification(name, object, userInfo.getUserInfo()); } public void postNotification(String name, NSObject object, UILocalNotification userInfo) {
public void postNotification(String name, NSObject object, NSDictionary<?, ?> userInfo) { postNotification(new NSString(name), object, userInfo); } public void postNotification(NSString name, NSObject object, UIRemoteNotification userInfo) {
public void postNotification(String name, NSObject object, NSDictionary<?, ?> userInfo) { postNotification(new NSString(name), object, userInfo); } public void postNotification(NSString name, NSObject object, UIRemoteNotification userInfo) {
public void postNotification(NSString name, NSObject object, UIRemoteNotification userInfo) { postNotification(name, object, userInfo.getDictionary()); } public void postNotification(String name, NSObject object, UIRemoteNotification userInfo) {
public void postNotification(NSString name, NSObject object, UIRemoteNotification userInfo) { postNotification(name, object, userInfo.getDictionary()); } public void postNotification(String name, NSObject object, UIRemoteNotification userInfo) {
public void postNotification(NSString name, NSObject object, UILocalNotification userInfo) { postNotification(name, object, userInfo.getUserInfo()); } public void postNotification(String name, NSObject object, UILocalNotification userInfo) {
public void postNotification(String name, NSObject object) { postNotification(new NSString(name), object); } public void postNotification(String name, NSObject object, NSDictionary<?, ?> userInfo) {
public void postNotification(String name, NSObject object, UILocalNotification userInfo) { postNotification(new NSString(name), object, userInfo.getUserInfo()); } public void removeObserver(NSObject observer, String name, NSObject object) {
public void postNotification(String name, NSObject object, UIRemoteNotification userInfo) { postNotification(new NSString(name), object, userInfo.getDictionary()); } public void postNotification(NSString name, NSObject object, UILocalNotification userInfo) {
public void postNotification(String name, NSObject object, UIRemoteNotification userInfo) { postNotification(new NSString(name), object, userInfo.getDictionary()); } public void postNotification(NSString name, NSObject object, UILocalNotification userInfo) {
public void postNotification(String name, NSObject object, UILocalNotification userInfo) { postNotification(new NSString(name), object, userInfo.getUserInfo()); } public void removeObserver(NSObject observer, String name, NSObject object) {
private void reachabilityChanged(SCNetworkReachabilityFlags flags) { if (reachabilityListener != null) { if (isReachableWithFlags(flags)) { reachabilityListener.onReachable(this); } else { reachabilityListener.onUnreachable(this); } reachabilityListener.onChange(this, flags); } // this makes sure the change notification happens on the MAIN THREAD DispatchQueue.getMainQueue().async( () -> NSNotificationCenter.getDefaultCenter().postNotification(REACHABILITY_CHANGE_NOTIFICATION, this)); }