SDLRPCResponseNotification Class Reference

Section Contents

Overview

A NSNotification object that makes retrieving internal SDLRPCResponse data easier

response

The response to be included within the userinfo dictionary

Objective-C

@property (nonatomic, copy, readonly) __kindof SDLRPCResponse *_Nonnull response;

Swift

@NSCopying var response: SDLRPCResponse { get }

-initWithName:object:rpcResponse:

Create an NSNotification object containing an SDLRPCResponse

Objective-C

- (nonnull instancetype)initWithName:(nonnull NSString *)name
                              object:(nullable id)object
                         rpcResponse:
                             (nonnull __kindof SDLRPCResponse *)response;

Swift

init(name: String, object: Any?, rpcResponse response: SDLRPCResponse)

Parameters

name

The NSNotification name

object

The NSNotification object

response

The SDLRPCResponse payload

Return Value

The NSNotification

-isResponseMemberOfClass:

Returns whether or not the containing response is equal to a class, not including subclasses.

Objective-C

- (BOOL)isResponseMemberOfClass:(nonnull Class)aClass;

Swift

func isResponseMember(of aClass: AnyClass) -> Bool

Parameters

aClass

the class you are questioning

-isResponseKindOfClass:

Returns whether or not the containing response is a kind of class, including subclasses.

Objective-C

- (BOOL)isResponseKindOfClass:(nonnull Class)aClass;

Swift

func isResponseKind(of aClass: AnyClass) -> Bool

Parameters

aClass

the class you are questioning