@MarshalsPointer public static AVAudioSessionRouteChangeNotification toObject(Class<AVAudioSessionRouteChangeNotification> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new AVAudioSessionRouteChangeNotification(o); } @MarshalsPointer
@Override public void invoke(NSNotification a) { NSDictionary<?, ?> userInfo = a.getUserInfo(); AVAudioSessionRouteChangeNotification data = null; if (userInfo != null) { data = new AVAudioSessionRouteChangeNotification(userInfo); } block.invoke(data); } });
@MarshalsPointer public static List<AVAudioSessionRouteChangeNotification> 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<AVAudioSessionRouteChangeNotification> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new AVAudioSessionRouteChangeNotification(o.get(i))); } return list; } @MarshalsPointer
@Override public void invoke(NSNotification a) { NSDictionary<?, ?> userInfo = a.getUserInfo(); AVAudioSessionRouteChangeNotification data = null; if (userInfo != null) { data = new AVAudioSessionRouteChangeNotification(userInfo); } block.invoke(data); } });
@MarshalsPointer public static AVAudioSessionRouteChangeNotification toObject(Class<AVAudioSessionRouteChangeNotification> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new AVAudioSessionRouteChangeNotification(o); } @MarshalsPointer
@Override public void invoke(NSNotification a) { NSDictionary<?, ?> userInfo = a.getUserInfo(); AVAudioSessionRouteChangeNotification data = null; if (userInfo != null) { data = new AVAudioSessionRouteChangeNotification(userInfo); } block.invoke(data); } });
@MarshalsPointer public static AVAudioSessionRouteChangeNotification toObject(Class<AVAudioSessionRouteChangeNotification> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new AVAudioSessionRouteChangeNotification(o); } @MarshalsPointer
@MarshalsPointer public static List<AVAudioSessionRouteChangeNotification> 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<AVAudioSessionRouteChangeNotification> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new AVAudioSessionRouteChangeNotification(o.get(i))); } return list; } @MarshalsPointer
@MarshalsPointer public static List<AVAudioSessionRouteChangeNotification> 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<AVAudioSessionRouteChangeNotification> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new AVAudioSessionRouteChangeNotification(o.get(i))); } return list; } @MarshalsPointer