blob: 8e0d9a6165a5f2a337897cc66cb57331a66728bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
//
// SDLRPCNotificationNotification.h
// SmartDeviceLink-iOS
//
// Created by Joel Fischer on 8/25/16.
// Copyright © 2016 smartdevicelink. All rights reserved.
//
#import <Foundation/Foundation.h>
@class SDLRPCNotification;
NS_ASSUME_NONNULL_BEGIN
/**
An NSNotification object that makes retrieving internal SDLRPCNotification data easier
*/
@interface SDLRPCNotificationNotification : NSNotification
/**
The notification within the userinfo dictionary
*/
@property (copy, nonatomic, readonly) __kindof SDLRPCNotification *notification;
/**
Create an NSNotification object caontaining an SDLRPCNotification
@param name The NSNotification name
@param object The NSNotification object
@param notification The SDLRPCNotification payload
@return The NSNotification
*/
- (instancetype)initWithName:(NSString *)name object:(nullable id)object rpcNotification:(__kindof SDLRPCNotification *)notification;
/**
* Returns whether or not the containing notification is equal to a class, not including subclasses.
*
* @param aClass the class you are questioning
*/
- (BOOL)isNotificationMemberOfClass:(Class)aClass;
/**
* Returns whether or not the containing notification is a kind of class, including subclasses.
*
* @param aClass the class you are questioning
*/
- (BOOL)isNotificationKindOfClass:(Class)aClass;
@end
NS_ASSUME_NONNULL_END
|