A NSNotification object that makes retrieving internal SDLRPCRequest data easier
The request to be included in the userinfo dictionary
@property (nonatomic, copy, readonly) __kindof SDLRPCRequest *_Nonnull request;
@NSCopying var request: SDLRPCRequest { get }
Create an NSNotification object containing an SDLRPCRequest
- (nonnull instancetype)initWithName:(nonnull NSString *)name
object:(nullable id)object
rpcRequest:(nonnull __kindof SDLRPCRequest *)request;
init(name: String, object: Any?, rpcRequest request: SDLRPCRequest)
The NSNotification name
The NSNotification object
The SDLRPCRequest payload
The NSNotification
Returns whether or not the containing request is equal to a class, not including subclasses.
- (BOOL)isRequestMemberOfClass:(nonnull Class)aClass;
func isRequestMember(of aClass: AnyClass) -> Bool
the class you are questioning
Returns whether or not the containing request is a kind of class, including subclasses.
- (BOOL)isRequestKindOfClass:(nonnull Class)aClass;
func isRequestKind(of aClass: AnyClass) -> Bool
the class you are questioning