An NSNotification object that makes retrieving internal SDLRPCNotification data easier
The notification within the userinfo dictionary
@property (nonatomic, copy, readonly) __kindof SDLRPCNotification *_Nonnull notification;
@NSCopying var notification: SDLRPCNotification { get }
Create an NSNotification object caontaining an SDLRPCNotification
- (nonnull instancetype)initWithName:(nonnull NSString *)name
object:(nullable id)object
rpcNotification:
(nonnull __kindof SDLRPCNotification *)notification;
init(name: String, object: Any?, rpcNotification notification: SDLRPCNotification)
The NSNotification name
The NSNotification object
The SDLRPCNotification payload
The NSNotification
Returns whether or not the containing notification is equal to a class, not including subclasses.
- (BOOL)isNotificationMemberOfClass:(nonnull Class)aClass;
func isNotificationMember(of aClass: AnyClass) -> Bool
the class you are questioning
Returns whether or not the containing notification is a kind of class, including subclasses.
- (BOOL)isNotificationKindOfClass:(nonnull Class)aClass;
func isNotificationKind(of aClass: AnyClass) -> Bool
the class you are questioning